1.4
LCD Control Functions ( INT 10H )
00
Clear LCD Screen
Entry Parameter:
AH = 0
Return Value: None
Example
:
void TL_clrscr()
{
regs.h.ah= 0;
int86(0x10,®s,®s);
}
01
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);
}
02
Set Cursor Position
Entry Parameter:
AH = 2
DH = Row
DL = Column
PT600
6x8
8x16
Row
0~7
0~3
Column
0~15
0~12
Return Value: None
Example
:
void TL_gotoxy(int x,int y)
{
Summary of Contents for PT600
Page 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Page 7: ......
Page 16: ......
Page 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Page 57: ......
Page 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...