mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 15:05:14 +00:00
24 lines
310 B
ArmAsm
24 lines
310 B
ArmAsm
|
;
|
||
|
; Ullrich von Bassewitz, 2009-08-31
|
||
|
;
|
||
|
; CC65 runtime: Load effective address with offset in A/X relative to SP
|
||
|
;
|
||
|
|
||
|
.export leaaxsp
|
||
|
.importzp sp
|
||
|
|
||
|
.proc leaaxsp
|
||
|
|
||
|
clc
|
||
|
adc sp
|
||
|
pha
|
||
|
txa
|
||
|
adc sp+1
|
||
|
tax
|
||
|
pla
|
||
|
rts
|
||
|
|
||
|
.endproc
|
||
|
|
||
|
|