]> git.sur5r.net Git - cc65/commitdiff
use tmp4 instead of tmp2; tmp2 might now be used by ucase_fn()
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 14 Nov 2003 22:37:17 +0000 (22:37 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 14 Nov 2003 22:37:17 +0000 (22:37 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2666 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/sysremove.s

index 423f340923b4054cfde993307b6db3fcb24c4fd6..a169004498274aafbc5c8d665823064800ebdef2 100644 (file)
@@ -7,7 +7,7 @@
        .include "atari.inc"
        .include "errno.inc"
        .import findfreeiocb
-       .importzp tmp2
+       .importzp tmp4
 .ifdef UCASE_FILENAME
        .importzp tmp3
        .import addysp
@@ -30,7 +30,7 @@
        lda     #TMOF           ; too many open files
        rts
 
-iocbok:        stx     tmp2            ; remember IOCB index
+iocbok:        stx     tmp4            ; remember IOCB index
        pla
        tax
        pla                     ; get argument again
@@ -46,7 +46,7 @@ ucok1:
 
 .endif ; defined UCASE_FILENAME
 
-       ldy     tmp2            ; IOCB index
+       ldy     tmp4            ; IOCB index
        sta     ICBAL,y         ; store pointer to filename
        txa
        sta     ICBAH,y