]> git.sur5r.net Git - cc65/commitdiff
Must open the command channel before writing to it.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 22 Feb 2009 14:43:02 +0000 (14:43 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 22 Feb 2009 14:43:02 +0000 (14:43 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3943 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/sysrename.s

index b4211f9b4850b0ab76bb636a96d7c9d7ab7b4f34..4b299d250e7fb588e5a28eacb4db5df942a0c4d0 100644 (file)
@@ -7,7 +7,7 @@
         .export         __sysrename
 
         .import         fnparse, fnadd, fnparsename
-        .import         writefndiskcmd, closecmdchannel
+        .import         opencmdchannel, closecmdchannel, writefndiskcmd
         .import         popax
 
         .import         fncmd, fnunit
         jsr     fnparsename     ; Parse second filename
         bne     done
 
+        ldx     fnunit
+        jsr     opencmdchannel
+        bne     done
+
         lda     #'r'            ; Rename command
         sta     fncmd
         jsr     writefndiskcmd