RosettaCodeData/Task/Operator-precedence/6502-Assembly/operator-precedence.6502

6 lines
242 B
Plaintext

LDX #$02
LDY #$03
LDA ($20,x) ;uses the values stored at $20+x and $21+x as a memory address, and reads the byte at that address.
LDA ($20),y ;uses the values store at $20 and $21 as a memory address, and reads the byte at that address + Y.