mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Renamed module, part of code no longer needed
git-svn-id: svn://svn.cc65.org/cc65/trunk@48 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
61ca3a4abe
commit
78b07cc6f4
@ -18,7 +18,7 @@ OBJS = runtime.o mul.o div.o push.o inc.o dec.o shl.o shr.o add.o\
|
||||
uge.o lt.o ult.o le.o ule.o eq.o ne.o test.o subeqsp.o\
|
||||
udiv.o umod.o mod.o shelp.o aslax1.o asrax1.o shrax1.o\
|
||||
aslax2.o asrax2.o shrax2.o aslax3.o asrax3.o shrax3.o\
|
||||
enter.o leave.o leaysp.o popsreg.o ldai.o ldaxi.o ldauisp.o\
|
||||
enter.o leave.o leasp.o popsreg.o ldai.o ldaxi.o ldauisp.o\
|
||||
ldaui.o pushw.o pushb.o staxsp.o ldaxsp.o addeqsp.o\
|
||||
bpushbsp.o pushwsp.o pushbsp.o
|
||||
|
||||
|
@ -4,18 +4,16 @@
|
||||
; CC65 runtime: Load effective address with offset in Y relative to SP
|
||||
;
|
||||
|
||||
.export lea0sp, leaysp, plea0sp, pleaysp
|
||||
.import pushax
|
||||
.importzp sp
|
||||
.export leaasp, plea0sp, pleaysp
|
||||
.import pushax
|
||||
.importzp sp
|
||||
|
||||
lea0sp: ldy #0 ; Load offset zero
|
||||
leaysp: tya
|
||||
ldx sp+1 ; Get high byte
|
||||
leaasp: ldx sp+1 ; Get high byte
|
||||
clc
|
||||
adc sp
|
||||
bcc L8
|
||||
bcc @L1
|
||||
inx
|
||||
L8: rts
|
||||
@L1: rts
|
||||
|
||||
|
||||
plea0sp:
|
Loading…
x
Reference in New Issue
Block a user