(
Bios
CONsole
STATus)
LONG Bconstat( dev )
WORD dev;
Bconstat() queries a device to know if there is any character to read from.
Opcode
1 (0x01)
Availability
Parameters
dev is the device to read a character from:
Name |
dev |
Device |
DEV_PRINTER |
0 |
Parallel port |
DEV_AUX |
1 |
Serial port (or the one mapped with Bconmap?()) |
DEV_CONSOLE |
2 |
Keyboard |
DEV_MIDI |
3 |
MIDI port |
DEV_IKBD |
4 |
IKBD controller (not usable as input device) |
DEV_RAW |
5 |
Raw keyboard |
Other devices |
6 and higher |
Extra character devices (mostly provided through Bconmap?()) |
Binding
move.w #dev,-(sp)
move.w #$01,-(sp)
trap #13
addq.l #4,sp
Return Value
The LONG value returns 0 if no characters are available, and -1 if any present.
See Also