09
Write Character String to LCD
Entry Parameter:
AH = 9
DS:DX
; pointer to string buffer
Return Value: None
Example:
void TS_stdout_string(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah= 9;
int86x(0x21,®s,®s,&segregs);
return;
}
0A
Buffered Keypad Input
Entry parameter:
AH = 0AH
DS:DX
; pointer to data buffer
Return value:
DS:DX
; pointer to data buffer
Data format in buffer:
Input buffer with CR at last
number of characters actual input
number of characters requested to be input
n
m
Example:
void TS_stdin_string(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah= 0x0a;
int86x(0x21,®s,®s,&segregs);
return;
}
0B
Check Keypad Status
Entry Parameter:
AH = 0BH
Returned Value:
AL = 0
; no keys were pressed
0FFH
; key was pressed and input character
is Ready
Example:
unsigned char TS_kbhit()
{
Summary of Contents for PT600
Page 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Page 7: ......
Page 16: ......
Page 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Page 57: ......
Page 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...