From db69c202a44201c2c2e229f5a03aa0fbf85d5386 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 31 Aug 2009 12:22:13 +0000 Subject: [PATCH] Oh well. Decided to throw away the separate implementation for leaa0sp, 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 --- libsrc/runtime/Makefile | 1 - libsrc/runtime/leaa0sp.s | 20 -------------------- libsrc/runtime/leaaxsp.s | 8 ++++---- 3 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 libsrc/runtime/leaa0sp.s diff --git a/libsrc/runtime/Makefile b/libsrc/runtime/Makefile index d7bbe8a38..b3bfd7876 100644 --- a/libsrc/runtime/Makefile +++ b/libsrc/runtime/Makefile @@ -117,7 +117,6 @@ OBJS = add.o \ ldec.o \ ldiv.o \ le.o \ - leaa0sp.o \ leaaxsp.o \ leave.o \ leq.o \ diff --git a/libsrc/runtime/leaa0sp.s b/libsrc/runtime/leaa0sp.s deleted file mode 100644 index 5dcdc9d14..000000000 --- a/libsrc/runtime/leaa0sp.s +++ /dev/null @@ -1,20 +0,0 @@ -; -; 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 - diff --git a/libsrc/runtime/leaaxsp.s b/libsrc/runtime/leaaxsp.s index 79e3e1e4f..2a92cf00d 100644 --- a/libsrc/runtime/leaaxsp.s +++ b/libsrc/runtime/leaaxsp.s @@ -4,11 +4,12 @@ ; CC65 runtime: Load effective address with offset in A/X relative to SP ; - .export leaaxsp + .export leaaxsp, leaa0sp .importzp sp -.proc leaaxsp - +leaa0sp: + ldx #$00 +leaaxsp: clc adc sp pha @@ -18,6 +19,5 @@ pla rts -.endproc -- 2.39.2