From: uz Date: Mon, 27 Jul 2009 18:42:37 +0000 (+0000) Subject: Be sure to read disk errors after sending the command on the command channel. X-Git-Tag: V2.13.0rc1~282 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=087ae8173a88258fa9a985c55777e4b53116d2b8;p=cc65 Be sure to read disk errors after sending the command on the command channel. git-svn-id: svn://svn.cc65.org/cc65/trunk@3973 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/cbm/sysrename.s b/libsrc/cbm/sysrename.s index 574023d7d..86cb37011 100644 --- a/libsrc/cbm/sysrename.s +++ b/libsrc/cbm/sysrename.s @@ -7,7 +7,8 @@ .export __sysrename .import fnparse, fnadd, fnparsename - .import opencmdchannel, closecmdchannel, writefndiskcmd + .import opencmdchannel, closecmdchannel + .import writefndiskcmd, readdiskerror .import popax .import fncmd, fnunit @@ -40,6 +41,9 @@ sta fncmd jsr writefndiskcmd +; ldx fnunit +; jsr readdiskerror + pha ldx fnunit jsr closecmdchannel