From: uz Date: Sun, 22 Feb 2009 14:43:02 +0000 (+0000) Subject: Must open the command channel before writing to it. X-Git-Tag: V2.13.0rc1~312 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a0cd736adb983becf8e0229f67785df6cd68b269;p=cc65 Must open the command channel before writing to it. git-svn-id: svn://svn.cc65.org/cc65/trunk@3943 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/cbm/sysrename.s b/libsrc/cbm/sysrename.s index b4211f9b4..4b299d250 100644 --- a/libsrc/cbm/sysrename.s +++ b/libsrc/cbm/sysrename.s @@ -7,7 +7,7 @@ .export __sysrename .import fnparse, fnadd, fnparsename - .import writefndiskcmd, closecmdchannel + .import opencmdchannel, closecmdchannel, writefndiskcmd .import popax .import fncmd, fnunit @@ -28,6 +28,10 @@ jsr fnparsename ; Parse second filename bne done + ldx fnunit + jsr opencmdchannel + bne done + lda #'r' ; Rename command sta fncmd jsr writefndiskcmd