From bf9d36a2fa01ea93fe5e48d57e95f027f4d947c9 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 31 Aug 2009 12:15:51 +0000 Subject: [PATCH] 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 --- libsrc/runtime/Makefile | 3 ++- libsrc/runtime/{leaasp.s => leaa0sp.s} | 0 libsrc/runtime/leaaxsp.s | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) rename libsrc/runtime/{leaasp.s => leaa0sp.s} (100%) create mode 100644 libsrc/runtime/leaaxsp.s diff --git a/libsrc/runtime/Makefile b/libsrc/runtime/Makefile index 134928393..d7bbe8a38 100644 --- a/libsrc/runtime/Makefile +++ b/libsrc/runtime/Makefile @@ -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 \ diff --git a/libsrc/runtime/leaasp.s b/libsrc/runtime/leaa0sp.s similarity index 100% rename from libsrc/runtime/leaasp.s rename to libsrc/runtime/leaa0sp.s diff --git a/libsrc/runtime/leaaxsp.s b/libsrc/runtime/leaaxsp.s new file mode 100644 index 000000000..79e3e1e4f --- /dev/null +++ b/libsrc/runtime/leaaxsp.s @@ -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 + + -- 2.39.5