PT630 Programming Reference Guide
Page 9 of 59
------------------------------------------------------------------------------------------------------------------
1.4
LCD Control Functions ( INT 10H )
1.4.1 Clear LCD Screen
Entry Parameter: AH = 0
Return
Value:
None
Example
:
void TL_clrscr()
{
regs.h.ah= 0;
int86(0x10,®s,®s);
}
1.4.2 Enable/Disable Screen Scroll
Entry Parameter: AH = 1
AL
=
0/1
;
disable/enable
screen
scroll
Return
Value:
None
Example
:
void
TL_scroll(int
status)
{
regs.h.ah = 1;
regs.h.al = (unsigned char)status;
int86(0x10,®s,®s);
}
1.4.3 Set Cursor Position
Entry Parameter: AH = 2
DH
=
Row
DL = Column
PT630
6x8 8x16
Row
0~7 0~3
Column
0~19 0~15
Return Value: None
Example
:
void TL_gotoxy(int x,int y)
{
regs.h.ah = 2;
regs.h.dh = (unsigned char)y;
regs.h.dl = (unsigned char)x;
int86(0x10,®s,®s);
}