PT630 Programming Reference Guide
Page 10 of 59
------------------------------------------------------------------------------------------------------------------
1.4.4 Get Cursor Position
Entry Parameter: AH = 3
;
Return
Value:
DH
=
Row
DL
=
Column
Example
:
void TL_getxy(int *x,int *y)
{
regs.h.ah = 3;
int86(0x10,®s,®s);
*y = regs.h.dh;
*x = regs.h.dl;
}
1.4.5 Display 16x16 Bitmap
Entry Parameter: AH = 4
DH
=
Row
DL
=
Column
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_location(int x,int y,unsigned char *str)
{
regs.h.ah=4;
regs.h.dh=(unsigned
char)y;
regs.h.dl=(unsigned
char)x;
segregs.ds
=
FP_SEG(str);
regs.x.bx
=
FP_OFF(str);
int86x(0x10,®s,®s,&segregs);
}