PT630 Programming Reference Guide
Page 7 of 59
------------------------------------------------------------------------------------------------------------------
1.2.6 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);
}
1.2.7 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 )
Return Value: None
Example:
void TL_change_one_ASCII_font(int type,int ascii_code,unsigned char *str)
{
regs.h.ah=6;
regs.h.al=(unsigned char)type;
regs.h.cl=(unsigned char)ascii_code;
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
int86x(0x9,®s,®s,&segregs);
}
1.2.8 Reverse character display (only available on small font mode)
Use printf or character display to output “%c7r[“ to force PT600 to display reverse
character display. E.x
printf("%c7r[",27); ---- show REVERSE character
Use printf or character display to output “%c8r[“ to force PT600 to show normal
character. E.x
printf("%c0r[",27); ---- show normal character