in the following code:
when writing twice to $2006, on the first write A = #$3f. On the second write does A = #$00? I forgot how this works.
Thank You
matthew
Code:
; load palette into $3f00
load_palette:
lda #$3f
ldx #$00
sta $2006
sta $2006
* lda palette, x
sta $2007
inx
cpx #$20
bne -
rts
load_palette:
lda #$3f
ldx #$00
sta $2006
sta $2006
* lda palette, x
sta $2007
inx
cpx #$20
bne -
rts
when writing twice to $2006, on the first write A = #$3f. On the second write does A = #$00? I forgot how this works.
Thank You
matthew