More VFS OSWORD



OSWORD &63 reads the last disc error, reporting the error number and the disc sector where the error occurred.

To get this to work correctly, we have to contrive things a little. We need a LV-ROM controller error, not a higher-level VFS error. The easiest way to do this is to try to read from a disc which has been unmounted without VFS knowing about it. If we use *EJECT, VFS knows that a disc isn't loaded, so it will report a "Drive not ready" error. Using the Standby Unload F-code of ",0" which is equivalent to a SCSI stop unit commmand, VFS will still attempt the read, so we can get a proper nice LV-ROM error like this.



Click here to return to More VFS OSWORD