PT630 Programming Reference Guide
Page 28 of 59
------------------------------------------------------------------------------------------------------------------
1.5.14 Terminal mode setting function
1.5.14.1 Set
Terminal
ID
Entry Parameter: AH = 1DH
BH
=
0
DS:DX
; pointer to buffer of 8 characters ID string
Return
Value:
None
Example
:
void TT_id(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah=0x1D;
regs.h.bh=0;
int86x(0x21,®s,®s,&segregs);
return(regs.h.al);
}
1.5.14.2 Set ONLINE/LOCAL in Terminal Mode
Entry Parameter: AH = 1DH
BH
=
1
AL = 0/1
; ONLINE/LOCAL
Return
Value:
None
Example
:
void TT_online_local(int status)
{
regs.h.ah=0x1D;
regs.h.bh=1;
regs.h.al=(unsigned char)status;
int86x(0x21,®s,®s,&segregs);
}
1.5.14.3 Set ECHO ON/OFF in Terminal Mode
Entry Parameter: AH = 1DH
BH
=
2
AL = 0/1
; ECHO ON/OFF
Return
Value:
None
Example
:
void TT_echo(int status)
{
regs.h.ah=0x1D;
regs.h.bh=2;
regs.h.al=(unsigned char)status;
int86x(0x21,®s,®s,&segregs);
}