]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/leaaxsp.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / leaaxsp.s
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