void TL_change_all_ASCII_font(int type,unsigned char *str)
{
regs.h.ah=4;
regs.h.al=(unsigned char)type;
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
int86x(0x9,®s,®s,&segregs);
}
05
Get Font Data for All Characters
Entry Parameter:
AH= 5
AL= 0/1 ; large/small font
DS:DX
; pointer to the buffer
; ( for large font: buffer size = 16*256 =4096
bytes
; for small font: buffer size = 6*256 =1536
bytes )
Return Value: Font data in the buffer
Example:
void TL_get_all_ASCII_font(int type,unsigned char *str)
{
regs.h.ah=5;
regs.h.al=(unsigned char)type;
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
int86x(0x9,®s,®s,&segregs);
}
06
Set User-Defined Font for One Character
Entry Parameter: AH= 6
AL= 0/1
; large/small font
CL =0 - 255 ; character
DS:DX
; pointer to the buffer with font data
; ( for large font: buffer size = 16 bytes
; for small font: buffer size = 6 bytes )
6
Return Value:
None
Example:
void TL_change_one_ASCII_font(int type,int ascii_code,unsigned char
*str)
Содержание PT600
Страница 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Страница 7: ......
Страница 16: ......
Страница 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Страница 57: ......
Страница 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...