ldec.o \
ldiv.o \
le.o \
- leaasp.o \
+ leaa0sp.o \
+ leaaxsp.o \
leave.o \
leq.o \
lge.o \
--- /dev/null
+;
+; Ullrich von Bassewitz, 21.08.1998
+;
+; CC65 runtime: Load effective address with offset in A relative to SP
+;
+
+ .export leaasp
+ .importzp sp
+
+.proc leaasp
+
+ ldx sp+1 ; Get high byte
+ clc
+ adc sp
+ bcc @L9
+ inx
+@L9: rts
+
+.endproc
+
+++ /dev/null
-;
-; Ullrich von Bassewitz, 21.08.1998
-;
-; CC65 runtime: Load effective address with offset in A relative to SP
-;
-
- .export leaasp
- .importzp sp
-
-.proc leaasp
-
- ldx sp+1 ; Get high byte
- clc
- adc sp
- bcc @L9
- inx
-@L9: rts
-
-.endproc
-
--- /dev/null
+;
+; 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
+
+