Code: Select all
0bbbbbgggggrrrrrHere is a snippet the code the guide provided that changes the background color to blue:
Code: Select all
SEP #$20 ; Set the A register to 8-bit.
LDA #%00000000 ; Load the low byte of the blue color.
STA $2122
LDA #%01111100 ; Load the high byte of the blue color.
STA $2122
Also according to this wiki article, $2122 is the "Data for CG-RAM Write" and $2121 is the "Address for CG-RAM Write". How does the write to $2122 happen successfully without first writing to $2121?
My main file also has a line:
Code: Select all
.include "Snes_Init.asm"Code: Select all
stz $2121 ; Color number register ($0-ff)Any help clarifying would be appreciated!