PT630 Programming Reference Guide
Page 26 of 59
------------------------------------------------------------------------------------------------------------------
1.5.13.4 Hardware Control Flow
Entry parameters: AH = 1CH
BH = 3
AL = 0
; Enable CTS/RTS control flow
1
; Disable CTS/RTS control flow
Return
Value:
None
Note:
Only for NONE communication protocol
1.5.13.5 Set Communication Protocol
Entry Parameter: AH = 1CH
BH
=
4
AL = 2
; Set to MULTIPOINT protocol
3
; Set to NONE protocol
Return
Value:
None
Example
:
void TC_protocol(int status)
{
regs.h.ah = 0x1C;
regs.h.bh = 4;
regs.h.al = (unsigned char)status;
int86(0x21,®s,®s);
}
1.5.13.6 Get
MULTIPOINT
Address
Entry Parameter: AH = 1CH
BH
=
5
Returned Value: AL = Address
; ASCII character ‘A’ - ’Y’ or ’0’ - ’6’
Example
:
char TC_get_address()
{
regs.h.ah = 0x1C;
regs.h.bh = 5;
int86(0x21,®s,®s);
return((char)regs.h.al);
}