CALL USBERROR
Contents |
Effect
Displays the error code stored whenever a USB transaction fails for any reason.
Note: only the error for the last executed USB transaction is stored and can therefore be displayed.
If the error happened at the USB physical or protocol level, you will see it as `USB error`.
If what failed was the execution of an UFI command, you will see the ASC and ASCQ codes (as defined by the UFI specification).
Syntax
CALL USBERROR
Example
You can try this instruction by executing `FILES` without a disk in the drive; after getting the "Disk offline" error, CALL USBERROR should present you this (3Ah is the UFI error "MEDIUM NOT PRESENT"):
ASC: 3Ah ASCQ: 00h
Links
- UFI Command Specification (see especially pages 49 to 53)