Bill Lange Posted February 14, 2002 Share Posted February 14, 2002 I am trying to port my Atari Assembler Editor code to DASM. I was able to assemble and execute the 5200 Hello World program. I wasn't able to run it as an 400/800 cart after make some modifications to it using Mapping The Atari as a reference. When I try to assemble my code with DASM, I get one error with the HLIST ... any suggestions? ----- PROCESSOR 6502 SDMCTL equ $022F SDLSTL equ $0230 SDLSTH equ $0231 COLOR0 equ $02C4; OS COLOR REGISTERS COLOR1 equ $02C5 COLOR2 equ $02C6 COLOR3 equ $02C7 COLOR4 equ $02C8 ORG $A000 ;START OF CARTRIDGE AREA SEI ;DISABLE INTERRUPTS CLD ;CLEAR DECIMAL MODE JMP DISPLAY START LINE1 .BYTE $00,$00,$00,$00,$00,$00 .BYTE $68,$61,$75,$6E,$74,$65,$64 .BYTE $00,$00,$00,$00 LINE2 .BYTE $00,$00,$00,$00,$00,$00,$00 .BYTE $68,$6F,$75,$73,$65 .BYTE $00,$00,$00,$00,$00 LINE3 .BYTE $00,$00,$00,$00,$00,$00 .BYTE $2E,$2F,$36,$29,$23,$25 .BYTE $00,$00,$00,$00,$00 LINE4 .BYTE $00,$00,$00,$00,$00,$00 .BYTE $27,$21,$2D,$25,$00,$19 .BYTE $00,$00,$00,$00,$00 LINE5 .BYTE $00,$00,$00 .BYTE $23,$2F,$30,$39,$32,$29,$27,$28,$34 .BYTE $00 .BYTE $12,$10,$10,$12 LINE6 .BYTE $00,$00,$00 .BYTE $00,$00,$00,$00 .BYTE $21,$34,$21,$32,$29 .BYTE $00,$00,$00,$00 .BYTE $00,$00,$00,$00 HLIST .BYTE $70,$70,$70 .BYTE $47 .WORD LINE1 .BYTE $47 .WORD LINE2 .BYTE $70,$70,$70 .BYTE $70,$70,$70 .BYTE $70,$70,$70 .BYTE $70,$70,$70 .BYTE $46 .WORD LINE3 .BYTE $70,$46 .WORD LINE4 .BYTE $70,$70,$70,$70,$46 .WORD LINE5 .BYTE $46 .WORD LINE6 .BYTE $70,$70,$70,$70,$70 .BYTE $41 .WORD HLIST DISPLAY LDA #0 STA SDMCTL LDA #HLIST&255 STA SDLSTL LDA #HLIST/256 STA SDLSTH LDA #$22 STA SDMCTL INFI JMP INFI ---- Quote Link to comment Share on other sites More sharing options...
Eckhard Stolberg Posted February 14, 2002 Share Posted February 14, 2002 HLIST is a 16-bit address, which you can't load into a 8-bit register. I think you are trying to generate the high-byte and the low-byte of this address here, right? DASM has special operators for this. The "greater-as" sign gets you the high-byte of a 16-bit values, and the "smaller-as" sign gets you the low-byte. (Sorry, but this message board doesn't allow you to post these characters, as it seems to interpret them as html code or something.) Ciao, Eckhard Stolberg Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted February 14, 2002 Author Share Posted February 14, 2002 I seem to be having a little trouble with getting a ROM image to work in 400/800 mode, but have no trouble at all getting one to work in 5200 mode. I think for now, I'll continue development as a 5200 cart image until I get it figured out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.