Q1. Consider the below 6502 code:
lda #<bg
sta tmpada ;store address of screen data in tmpada
lda #>bg
What does the character '<' or '>' in the operand part does. When should we prefix the operand field with this character?
Q2. To access the memory as an array of bytes I have so far used something like this:
LDA Map,x
but this code can access the bytes upto x=255. What if we have to access the bytes beyond x=255 using the same variable name "Map" ?
lda #<bg
sta tmpada ;store address of screen data in tmpada
lda #>bg
What does the character '<' or '>' in the operand part does. When should we prefix the operand field with this character?
Q2. To access the memory as an array of bytes I have so far used something like this:
LDA Map,x
but this code can access the bytes upto x=255. What if we have to access the bytes beyond x=255 using the same variable name "Map" ?