Okay, people figured out how to get me to join this site. Let someone's programming question go unanswered.
Try adding one more line of LDA $2007:
Routine:
LDA $2002 ; Clear Hi/Lo Latch
LDA #$3F ; Opening the port $3F00
STA $2006 ; to read palette data
LDA #$00
STA $2006
TAX ; Use #$00 already in A as an X offset.
SaveCurrentPalette:
LDA $2007 ; Probably gibberish
LDA $2007 ; Real value
STA TempPalette, x
INX
CPX #$20 ; Do this 32 times to aquire both palettes
BNE SaveCurrentPalette
Reading Palettes from $2007?
in Programming Codebreakers
Posted · Edited by KHAN Games
Okay, people figured out how to get me to join this site. Let someone's programming question go unanswered.
Try adding one more line of LDA $2007: