]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/decsp4.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / decsp4.s
index e2220bf7424e06489cc6d136add4020c6542032c..8513390723778b2dce9e66e184f03a04c92e9d95 100644 (file)
@@ -5,16 +5,23 @@
 ;
 
                .export         decsp4
-       .import         subysp
+               .importzp       sp
 
 .proc  decsp4
 
-       ldy     #4
-       jmp     subysp
+       lda     sp
+       sec
+       sbc     #4
+       sta     sp
+       bcc     @L1
+       rts
+
+@L1:   dec     sp+1
+       rts
 
 .endproc
 
 
 
 
-       
+