You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
321 B
ArmAsm

;
; Ullrich von Bassewitz, 2009-08-31
;
; CC65 runtime: Load effective address with offset in A/X relative to SP
;
.export leaaxsp, leaa0sp
.importzp sp
leaa0sp:
ldx #$00
leaaxsp:
clc
adc sp
pha
txa
adc sp+1
tax
pla
rts