[Coco] Assembly Language - Simple Q

Allen Huffman alsplace at pobox.com
Wed Feb 8 22:42:27 EST 2017


Should this be

	ldx #s001

? I think the # is what you are missing.

> On Feb 8, 2017, at 9:20 PM, William Mikrut <wmikrut72 at gmail.com> wrote:
> 
> org $1200
> start ldy #$0400 Point to the start of VidRam
> sty $88 Position the Cursor
> 
> ldx s001 Load the address of my data
> wrt001 lda ,x+ Get a character from my data
> cmpa #$0d Is it end of data?
> beq e001 If yes, quit
> jsr $a30a Put the character on the screen
> bra wrt001 Go do it again
> e001 rts
> s001 fcc 'THIS IS SOME TEXT!'
> fcb $0d
> end start
> 
> Simple enough -- go print some text on the screen.
> However, one thing bugs me in the compiler output:
> That BE 1216 @ 1207.
> 
> Assuming I loaded the program to another section of memory..
> Well, you see my dilemma.
> 
> I thought there was a way to signal the compiler to look at the fcc
> data xxx bytes down --13 bytes specifically without using a specific memory
> location.



More information about the Coco mailing list