RosettaCodeData/Task/Gotchas/6502-Assembly/gotchas-1.6502

6 lines
263 B
Plaintext

LDA 'J' ;load the 8-bit value stored at memory address 0x004A into the accumulator.
OR 3 ;bitwise OR the accumulator with the 8-bit value stored at memory address 0x0003
LDA #'7' ;load the ASCII code for the numeral 7 (which is 0x37) into the accumulator.