1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-12 07:07:19 +00:00
cc65/libsrc/runtime/leaaxsp.s

24 lines
339 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