Ive been trying to run a demo, been able to display a sprite and use palletes but everytime i run the nametable code in the code it only displays the first and second row on the screen. Heres the code:
I have this code right after the pallete load and .incbin(ed) to a nametable file from NGC? Ive tryed 8pnes with same results. What is worng in the code that only displays the first two rows?
Thanks in Advance,
EL
Code:
lda #$20
sta $2006 ; give $2006 both parts of address $2020.
sta $2006
ldx #$00
loadNames:
lda ourMap, X ; load A with a byte from address (ourMap + X)
inx
sta $2007
cpx #64 ; map in previous section 64 bytes long
bne loadNames ; if not all 64 done, loop and do some more
sta $2006 ; give $2006 both parts of address $2020.
sta $2006
ldx #$00
loadNames:
lda ourMap, X ; load A with a byte from address (ourMap + X)
inx
sta $2007
cpx #64 ; map in previous section 64 bytes long
bne loadNames ; if not all 64 done, loop and do some more
I have this code right after the pallete load and .incbin(ed) to a nametable file from NGC? Ive tryed 8pnes with same results. What is worng in the code that only displays the first two rows?
Thanks in Advance,
EL