PT630 Programming Reference Guide
Page 30 of 59
------------------------------------------------------------------------------------------------------------------
1.5.14.7 Define Page Character in Terminal Mode
Entry Parameter: AH = 1DH
BH
=
6
AL = 0 – 255
; ASCII character
Return
Value:
None
Example
:
void TT_page_terminal(unsigned char status)
{
regs.h.ah= 0x1D;
regs.h.bh= 6;
regs.h.al= status;
int86(0x21,®s,®s);
}
1.5.14.8 Get
Terminal
ID
Entry Parameter: AH = 1DH
BH
=
0x10
Returned Value:
DS:DX = output buffer pointer
1.5.15 Set User-defined Key-map
Entry Parameter: AH = 1EH
AL = 0
DS:DX
;
pointer
to
Key-map
buffer
with
5*32
characters
;
corresponding
to
keypad
in
5
input
modes
Return
Value:
None
Example
:
void TD_key_map(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah=0x1E;
regs.h.al=0;
int86x(0x21,®s,®s,&segregs);
}
Note:
Default system key-map: