mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
db69c202a4
because it's not used too much, may sometimes inlined and can easily be replaced by another entry in leaaxsp.s git-svn-id: svn://svn.cc65.org/cc65/trunk@4092 b7a2c559-68d2-44c3-8de9-860c34a00d81
24 lines
321 B
ArmAsm
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
|
|
|
|
|
|
|