Code: Select all
;; Tell the PPU to write from $3F00 on
lda #$3F
sta $2006
lda #$00
sta $2006
;; Palette loading
ldx #$00
LoadPalette:
lda PaletteData, x
sta $2007
inx
cpx #$20
bne LoadPalette
If I understand correctly, we are telling the PPU to store our Palettes from the memory addresses $3F00 on.
Now, if I open the .nes file with FCEUX, I see that the Palettes are loaded correctly (PPU viewer).
Despite this fact, the addresses $3F00 do not seem to contain my palette Bytes, rather they are like:
Code: Select all
:3F00: 00 BRK
:3F01: 80 UNDEFINED
:3F02: 9A TXS
.dw $0F,$31,$32, ...
In other words, why don't I see in my memory a structure like the following?
Code: Select all
:3F00: 0F
:3F01: 31
:3F02: 32, ....
EDIT: I modified the post title in order to facilitate possible future readers.