
5D
Send Data to RS232 Port in MULTIPOINT Protocol (Buffered
Output)
---for Host Port Control
Entry Parameter:
AH = 5DH
DS:DX ; pointer to buffer with output data (max. 256
bytes)
Return Value: AL = 0 ; successful
1 ; failed (output buffer already has data to be sent)
Note:
1) Only for MULTIPOINT communication protocol
2) PT600 will send data out when polled by Host computer
Example
:
int TC_str_O(unsigned char *str,int wait)
{
do {
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah=0x5D;
int86x(0x21,®s,®s,&segregs);
return(regs.h.al);
} while (wait && regs.h.al);
return(regs.h.al);
}
5E
Check RS232 Output Buffer Status in MULTIPOINT Protocol
---for Host Port Control
Entry Parameter:
AH = 5EH
Returned Value:
AL = 0
; output buffer is empty
1
; output buffer has data
Note:
1) Only for MULTIPOINT communication protocol
2) The function can be used to check if data has been sent to
Host computer.
Example
:
int TC_ready(int wait)
{
do {
regs.h.ah= 0x5E;
int86(0x21,®s,®s);
} while (wait && regs.h.al);
return(regs.h.al);
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...