1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-29 10:29:30 +00:00

Must open the command channel before writing to it.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3943 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-02-22 14:43:02 +00:00
parent 828b4226cf
commit a0cd736adb

View File

@ -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