PT630 Programming Reference Guide
Page 29 of 59
------------------------------------------------------------------------------------------------------------------
1.5.14.4 Set AUTOLF ON/OFF in Terminal Mode
Entry Parameter: AH = 1DH
BH
=
3
AL
=
0/1
;
AUTOLF
ON/OFF
Return
Value:
None
Example
:
void TT_auto_LF(int status)
{
regs.h.ah= 0x1D;
regs.h.al= (unsigned char)status;
regs.h.bh= 3;
int86(0x21,®s,®s);
}
1.5.14.5 Set CHARACTER/BLOCK in Terminal Mode
Entry Parameter: AH = 1DH
BH
=
4
AL = 0
; CHARACTER mode
1 ; BLOCK mode
DX = 0
; block = LINE
1
; block = PAGE
2
; block = LINE or PAGE
Return
Value:
None
Example
:
void TT_mode(int status,int status1)
{
regs.h.ah= 0x1D;
regs.h.bh= 4;
regs.h.al= (unsigned char)status;
regs.x.dx = (unsigned char)status1;
int86(0x21,®s,®s);
}
1.5.14.6 Define LINE Character in Terminal Mode
Entry parameters: AH = 1DH
BH
=
5
AL = 0 – 255
; ASCII character
Return
Value:
None
Example
:
void TT_line_terminal(unsigned char status)
{
regs.h.ah= 0x1D;
regs.h.bh= 5;
regs.h.al = status;
int86(0x21,®s,®s);
}