]> git.sur5r.net Git - cc65/commitdiff
Oh well. Decided to throw away the separate implementation for leaa0sp,
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 31 Aug 2009 12:22:13 +0000 (12:22 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 31 Aug 2009 12:22:13 +0000 (12:22 +0000)
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
libsrc/runtime/leaa0sp.s [deleted file]
libsrc/runtime/leaaxsp.s

index d7bbe8a38217b140926222f724837d3cb9c11628..b3bfd7876e92a359e5f77c69381f4bf69ee20742 100644 (file)
@@ -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 (file)
index 5dcdc9d..0000000
+++ /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
-
index 79e3e1e4fb4a5cd2f7c42a4a1e79fd4d491a0792..2a92cf00d9b94ef726cd75761de39e836a37bf61 100644 (file)
@@ -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