Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Net - <b>ncb_retcode</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NCB_RETCODE

Length: 1
Type:   DB
Description: NCB Retun code field

Description
NCB_RET_CODE is a 1 byte field indicating the return code of a coomand. If the
return code is hex 00, the operation was successful. Any other number
indicates the operation failed or has not completed. If the no-wait option is
used without being interrupted on command completion (with NCB_POST@=00), the
NCB_CMD_CPLT field, not the NCB_RETCODE field, should be used to determine
when the command completes. Until the command executes, NCB_CMD_CPLT will
contain hex FF.

When a command has completed, the main program is interrupted by the adapter
at the POST@ address. You can choose to check the AL register or the
NCB_CMD_CPLT field instead of the NCB_RETCODE field.

Loop on the NCB_CMD_CPLT field instead of going into a program loop on the
NCB_RETCODE field when waiting for a command to complete its execution.

See Also:

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson