RosettaCodeData/Task/Generic-swap/6502-Assembly/generic-swap-3.6502
2023-07-01 13:44:08 -04:00

12 lines
202 B
Text

temp equ $00
temp2 equ $01 ;these values don't matter.
lda temp
pha ;push temp
lda temp2
pha ;push temp2
pla
sta temp ;pop temp2 into temp
pla
sta temp2 ;pop temp into temp2