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