mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +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:
parent
828b4226cf
commit
a0cd736adb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user