...
If you set the default to $FFFF then when the default is used (by setting a timeout value of $FFFF in get and put byte routines) then the system will wait forever. A soft reset sets the default timeout to 10 minutes. This timeout is completely independent of the system timeout, which is set by the Panel.
SI_GX
Code Block |
---|
title | SI_GX (L = $1B), get multiple bytes from serial port, using default timeout (SI_TMO) |
---|
|
IN:
BC = number of byte to get from serial port, maximum 16384, one bank
DE = destination
DE = 0, write bytes to a file opened with its handle in IX
DE > 0, write bytes to memory at (DE)
IX = file handle (if DE = 0)
Out if call succeeded:
Fc = 0
BC = remaining time (SI_TMO)
DE = points at last byte fetched + 1 (if DE(IN) > 0)
Out if call failed:
Fc = 1
A = RC_TIME, timeout elapsed
A = RC_EOF, end of file reached
A = RC_WP, input device is read protected
BC = number of bytes not read
Registers changed after return:
......../IXIY same
AFBCDEHL/.... different |
SI_PX
Code Block |
---|
title | SI_PX (L = $1E), put multiple bytes to serial port, using default timeout (SI_TMO) |
---|
|
IN:
BC = number of byte to write to serial port, maximum 16384, one bank
DE = input
DE = 0, input is a file/device opened with its handle in IX
DE > 0, input is memory at (DE)
IX = file handle (if DE = 0)
Out if call succeeded:
Fc = 0
BC = remaining time (SI_TMO)
Out if call failed:
Fc = 1
A = RC_TIME, timeout elapsed
A = RC_EOF, end of file reached
A = RC_RP, input device is read protected
BC = number of bytes not written
Registers changed after return:
......../IXIY same
AFBCDEHL/.... different
|
...