PT630 Programming Reference Guide
Page 13 of 59
------------------------------------------------------------------------------------------------------------------
1.4.8 Display
Character
Entry Parameter: AH = 0AH
AL = 0 - 255 ; character to display
Return
Value:
None
Example
regs.h.ah = 0x0A;
regs.h.al = cc;
int86(0x10,®s,®s);
1.4.9 Display 16*16 Bitmap at Current Cursor Position
Entry Parameter: AH = 4FH
DS:BX
;
pointer
to
bitmap
(32-bytes
pattern
data)
Return
Value:
None
Note:
This function is available only in large font.
Example
:
void
TL_display_16x16(unsigned
char
*str)
{
regs.h.ah=0x4F;
segregs.ds
=
FP_SEG(str);
regs.x.bx
=
FP_OFF(str);
int86x(0x10,®s,®s,&segregs);
}
1.4.10 Read Pixel from screen
Entry Parameter: INT 0x10
AH= 0x40
Return
DH=row
; 0-63
DL=column
;
0-127
AL= 0
; No Pixel
1 ;
With
Pixel
Example:
int TL_get_pixel(int x, int y)
{
regs.h.ah= 0x40;
regs.h.dl= (unsigned char)x;
regs.h.dh= (unsigned char)y;
int86(0x10,®s,®s);
return(regs.h.al);
}