Jump to content
IGNORED

8-Bit Cart Framework


Recommended Posts

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

 

----

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...