From a0cd736adb983becf8e0229f67785df6cd68b269 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 22 Feb 2009 14:43:02 +0000 Subject: [PATCH] Must open the command channel before writing to it. git-svn-id: svn://svn.cc65.org/cc65/trunk@3943 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/cbm/sysrename.s | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5