]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/incsp5.s
added sleep() implementation
[cc65] / libsrc / runtime / incsp5.s
index 963c0b3aa666a5567f1da499b736ec6447f73d7a..df239cf2192840a62391e76d74fb12c53eb306a4 100644 (file)
@@ -1,24 +1,20 @@
 ;
-; Ullrich von Bassewitz, 2003-05-04
+; Ullrich von Bassewitz, 25.10.2000
 ;
 ; CC65 runtime: Increment the stackpointer by 5
 ;
 
                .export         incsp5
-        .importzp       sp
+       .import         addysp
 
 .proc  incsp5
 
-        lda     sp
-        clc
-        adc     #5
-        sta     sp
-        bcs     @L1
-        rts
-
-@L1:    inc     sp+1
-        rts
+       ldy     #5
+       jmp     addysp
 
 .endproc
 
-                  
+
+
+
+