]> git.sur5r.net Git - cc65/commitdiff
Squeezed a few bytes out of the code
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Oct 2003 21:09:24 +0000 (21:09 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Oct 2003 21:09:24 +0000 (21:09 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2480 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/incsp2.s

index 9893bebdcf475c9dad7d1ee38183e74fa2a5979a..deb29863139e098a593d77a76021c2ac1254351a 100644 (file)
@@ -14,7 +14,7 @@
        ldy     #1
        lda     (sp),y          ; get hi byte
                tax                     ; into x
-.ifpc02        
+.ifpc02
        lda     (sp)            ; get lo byte
 .else
        dey
 
 .proc  incsp2
 
-       ldy     sp              ; 3
-               iny                     ; 2
-               beq     @L1             ; 2
-               iny                     ; 2
-               beq     @L2             ; 2
-               sty     sp              ; 3
-               rts
-
-@L1:           iny                     ; 2
-@L2:           sty     sp              ; 3
-               inc     sp+1            ; 5
-               rts
+        inc     sp              ; 5
+        beq     @L1             ; 2
+        inc     sp              ; 5
+        beq     @L2             ; 2
+        rts
+
+@L1:    inc     sp              ; 5
+@L2:    inc     sp+1            ; 5
+        rts
 
 .endproc