]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/incsp4.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / incsp4.s
index 0d320fdf2570e0ea5ce922b941f9eb9c0744bede..125c533e7322442b4b797407bf21c9153e94d67d 100644 (file)
@@ -1,23 +1,20 @@
 ;
-; Ullrich von Bassewitz, 2003-05-04
+; Ullrich von Bassewitz, 25.10.2000
 ;
 ; CC65 runtime: Increment the stackpointer by 4
 ;
 
                .export         incsp4
-        .importzp       sp
+       .import         addysp
 
 .proc  incsp4
 
-        lda     sp
-        clc
-        adc     #4
-        sta     sp
-        bcs     @L1
-        rts
-
-@L1:    inc     sp+1
-        rts
+       ldy     #4
+       jmp     addysp
 
 .endproc
 
+
+
+
+