NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectIndirect indexed addressing  
Posted byRans
Posted on10/2/03 00:09 AM
From IP24.203.71.173  



Hello,

I need you guys understanding indirect indexed addressing. In the following suppose that "backg" is the label of where some name table data is included.

lda #low(backg)
sta $10
lda #high(backg)
sta $11

ldx #4
ldy #0
loop:
lda [$10],y
sta $2007
iny
bne loop
inc $11 ; This is what i don't understand
dex
bne loop

I understand that this is loading 4 chunks of 256 bytes. But the instruction i don't get is the inc $11. I know that this increments the high byte address of the data to the next 256 bytes chunk. But let's say that the address of "backg" is $82C5. When incrementing the high byte of the address, does it becomes $82C6? If yes then it's not a step of 256 bytes! If no then, what is the address after it's incremented?



-
Entire Thread
Subject  Posted byPosted On
.Indirect indexed addressing  Rans10/2/03 00:09 AM
.*Re: Indirect indexed addressing  Memblers10/2/03 00:17 AM
..*Re: Indirect indexed addressing  Rans10/2/03 00:35 AM
...*Re: Indirect indexed addressing  Disch10/2/03 00:44 AM
....*Re: Indirect indexed addressing  Rans10/2/03 00:48 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo