]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/sysremove.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / atari / sysremove.s
index 423f340923b4054cfde993307b6db3fcb24c4fd6..a11af79fe870eac481b9ee957a9b09d287bb71b1 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
@@ -40,13 +40,13 @@ iocbok:     stx     tmp2            ; remember IOCB index
        jsr     ucase_fn
        bcc     ucok1
 
-       lda     #177            ; see oserror.s
+       lda     #182            ; see oserror.s
        rts
 ucok1:
 
 .endif ; defined UCASE_FILENAME
 
-       ldy     tmp2            ; IOCB index
+       ldy     tmp4            ; IOCB index
        sta     ICBAL,y         ; store pointer to filename
        txa
        sta     ICBAH,y