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

6 lines
242 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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.