]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 4 Nov 2001 19:38:35 +0000 (19:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 4 Nov 2001 19:38:35 +0000 (19:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1096 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/sub.s

index 1cefd9ac76668510a78076023757b489f9637119..cb7ae6de716d066f1960a744485af765afa0adbc 100644 (file)
@@ -18,14 +18,14 @@ tossubax:
        sta     ptr1
        stx     ptr1+1
 .ifpc02
-       lda     (sp),y          ; Get lo byte
+               lda     (sp)            ; Get lo byte
        ldy     #1              ; Hi index
 .else
        ldy     #0
        lda     (sp),y          ; Lo byte
        iny                     ; Hi index
 .endif
-       sec                        
+       sec
        sbc     ptr1
        sta     ptr1            ; save lo byte
        lda     (sp),y