RosettaCodeData/Task/Jump-anywhere/6502-Assembly/jump-anywhere-2.6502

6 lines
305 B
Plaintext

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