User`s manual
36 PCL-848AB User's Manual
3.4.18. STATUS Purpose :
Purpose :
This command reads the status from the interface and returns this value to the
calling statement.
Offset :
STATUS%=42
Syntax :
CALL STATUS%(CONDITION%,5%) ----BASIC
CALL ABSOLUTE(CONDITION%,5%,5TATUS%) ----BASIC Compiler
Parameter :
CONDITION% - This number specifies which status is read.
0 - 7 : NEC7210 read register 0 - 7.
8 : Error Number of last called command.
9 : Count of string bytes that are output or entered.
10 : Timeout interval in milliseconds.
11 : I/O port address of NEC7210.
12 : DMA & IRQ setting.
S% - Variable which represents interface status 3 response.
Bus Activity :
None.
Remark :
The error number returned with condition 8 represents different types of errors.
Error Number Error Type
0 No error
l Handshake timeout
2 Interface error
3 Call ABORT when non-system controller
4 Invalid passed parameter(s)