Re: [stella] 6 digit code: Question 3

Subject: Re: [stella] 6 digit code: Question 3
From: "Andrew Davie" <atari2600@xxxxxxxxxxxxx>
Date: Thu, 11 Sep 2003 14:44:12 +1000
You haven't initialised the high byte of the last pointer.
    lda     #>l_a         ; 2
    sta     digitPtr+1      ; 3
    sta     digitPtr+3      ; 3
    sta     digitPtr+5      ; 3
    sta     digitPtr+7      ; 3
    sta     digitPtr+9      ; 3
That's your high byte init.  It's doing 5 pointers.
You should probably add
    sta digitPtr+$b
----- Original Message -----
Sent: Thursday, September 11, 2003 2:24 PM
Subject: [stella] 6 digit code: Question 3

OK... almost there
Final question on this subject... Then I'll quit :-)
When I load the pointers manually:
lda <letter
sta ptr
lda >letter
sta ptr+1
it works perfectly... however when I try to load the pointers from a table
table: .byte <letter
ldx #0
lda table,x
sta ptr
The last graphic does not draw correctly... why could this be?
Two sources attatched... works.s and broke.s
I'm sure it's something silly, any help is always appreciated
Current Thread