(
Bios
CONsole
OUTput)
LONG Bconout( dev, ch )
WORD dev,ch;
Opcode
3 (0x03)
Availability
Parameters
dev is the device to send a character to:
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?()) |
ch is the character to send.
Binding
move.w #ch,-(sp)
move.w #dev,-(sp)
move.w #$03,-(sp)
trap #13
addq.l #6,sp
Return Value
The LONG value contains 0 if the operation was successful, and a non-zero value if any error occured, or the character could not be send.
See Also