It depends on the assembler, so you should always refer to your assembler documentation.
>thing usually means "get the high byte of
thing". Likewise,
<thing means "get the low byte of
thing". The
# obviously means immediate addressing, thus the accumulator will end up holding the high (or low) byte of wherever
thing is located. The high and low bytes are calculated at assemble-time,
not run-time. Better demonstrated with pseudocode, I suppose:
Assume
oam is a variable that resides somewhere -- say in RAM, at address $0520. Thus:
Code: Select all
lda #<oam ; equivalent to lda #$20
lda #>oam ; equivalent to lda #$05
Likewise, if you were to not use immediate addressing, and had this instead...
Code: Select all
lda <oam ; equivalent to lda $20
lda >oam ; equivalent to lda $05
Make sense?