Hello all!
I'm following the nerdy nights tutorials, but in the background section I can not find how to make the loop to pass for the 960 bytes, I mean, I have this code:
so using CPX #$A0 I will go over the first 5 rows, 160 bytes.
The problem that I found is that if I want to go over the 960 bytes.... I don't know how to make the loop to go over 255 bytes (anything bigger than FF).
I'm sure this smells like a proper rookie question, but I can not find an answer, haha
Thanks in advance!
I'm following the nerdy nights tutorials, but in the background section I can not find how to make the loop to pass for the 960 bytes, I mean, I have this code:
Code:
LoadBackground:
LDA $2002
LDA #$20
STA $2006
LDA #$00
STA $2006
LDX #$00
@loop:
LDA background, x
STA $2007
INX
CPX #$A0
BNE @loop
LDA $2002
LDA #$20
STA $2006
LDA #$00
STA $2006
LDX #$00
@loop:
LDA background, x
STA $2007
INX
CPX #$A0
BNE @loop
so using CPX #$A0 I will go over the first 5 rows, 160 bytes.
The problem that I found is that if I want to go over the 960 bytes.... I don't know how to make the loop to go over 255 bytes (anything bigger than FF).
I'm sure this smells like a proper rookie question, but I can not find an answer, haha
Thanks in advance!