mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +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
|
.export __sysrename
|
||||||
|
|
||||||
.import fnparse, fnadd, fnparsename
|
.import fnparse, fnadd, fnparsename
|
||||||
.import writefndiskcmd, closecmdchannel
|
.import opencmdchannel, closecmdchannel, writefndiskcmd
|
||||||
.import popax
|
.import popax
|
||||||
|
|
||||||
.import fncmd, fnunit
|
.import fncmd, fnunit
|
||||||
@ -28,6 +28,10 @@
|
|||||||
jsr fnparsename ; Parse second filename
|
jsr fnparsename ; Parse second filename
|
||||||
bne done
|
bne done
|
||||||
|
|
||||||
|
ldx fnunit
|
||||||
|
jsr opencmdchannel
|
||||||
|
bne done
|
||||||
|
|
||||||
lda #'r' ; Rename command
|
lda #'r' ; Rename command
|
||||||
sta fncmd
|
sta fncmd
|
||||||
jsr writefndiskcmd
|
jsr writefndiskcmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user