]> git.sur5r.net Git - cc65/commitdiff
fix cleanup of stack 22/head
authorChristian Groessler <chris@groessler.org>
Wed, 24 Jul 2013 08:24:47 +0000 (10:24 +0200)
committerChristian Groessler <chris@groessler.org>
Wed, 24 Jul 2013 08:25:36 +0000 (10:25 +0200)
libsrc/atari/sysrename.s

index d3e430ada5b879605be5bb25583c7e0f0d9b0d8b..fef18bded9f4e0c171057b5683c45074a9007ecf 100644 (file)
@@ -164,13 +164,14 @@ copend2:ldx     tmp4
         clc
         adc     sspc
         sta     sp
-        bcc     L2
-        inc     sp+1
-L2:     pla
-        tay
+        lda     sp+1
+        adc     sspc+1
+        sta     sp+1
 
 ; handle status
 
+        pla
+        tay
         bmi     cioerr
         lda     #0
         rts