Renamed leaasp.s again, this time to leaa0sp.s. Added a new module leaaxsp.s.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4091 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
a1dd468291
commit
bf9d36a2fa
3 changed files with 25 additions and 1 deletions
|
@ -117,7 +117,8 @@ OBJS = add.o \
|
|||
ldec.o \
|
||||
ldiv.o \
|
||||
le.o \
|
||||
leaasp.o \
|
||||
leaa0sp.o \
|
||||
leaaxsp.o \
|
||||
leave.o \
|
||||
leq.o \
|
||||
lge.o \
|
||||
|
|
23
libsrc/runtime/leaaxsp.s
Normal file
23
libsrc/runtime/leaaxsp.s
Normal file
|
@ -0,0 +1,23 @@
|
|||
;
|
||||
; 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
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue