]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/sprintf.s
Added mouse module from C64
[cc65] / libsrc / common / sprintf.s
index 0788f9f35b23dd4832ab70374e39a9d87ee90e74..c3e29cb7ca6f77e55215fb8f615f8789597dee7e 100644 (file)
@@ -5,7 +5,7 @@
 ;
 
        .export         _sprintf
-       .import         pushax, addysp, subysp, _vsprintf
+       .import         pushax, addysp, decsp4, _vsprintf
        .importzp       sp, ptr1
 
        .macpack        generic
@@ -33,8 +33,7 @@ _sprintf:
 ; of the fixed arguments, this will allow us to calculate the pointer to the
 ; fixed size arguments easier (they're just ParamSize bytes away).
 
-       ldy     #4
-       jsr     subysp
+       jsr     decsp4
 
 ; Calculate a pointer to the Format argument