[Coco] Assembly Language - Simple Q

Brett Gordon beretta42 at gmail.com
Wed Feb 8 22:59:08 EST 2017


Allen's correct.  But, I feel your question seems to ask about PIC
coding... in that case it would be  "leax s001,pcr"

On Wed, Feb 8, 2017 at 10:42 PM, Allen Huffman <alsplace at pobox.com> wrote:

> 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.
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list