RosettaCodeData/Task/Jump-anywhere/6502-Assembly/jump-anywhere-2.6502
2023-07-01 13:44:08 -04:00

5 lines
305 B
Text

lda #<PrintChar ;load into A the low byte of the address that PrintChar references.
sta $00
lda #>PrintChar ;load into A the high byte of the address that PrintChar references.
sta $01 ;these need to be stored low then high because the 6502 is a little-endian cpu
JMP ($00) ;dereferences to JMP PrintChar