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);
| } |
|
|
03 | Get cursor position |
|
|
| Entry Parameters: | AH = 3 |
|
| Returned Values: | DH = 0 ~ 1 | ;row |
|
| DL = 0 ~ 15 | ;column |
void TL_getxy(int *x,int *y)
{
regs.h.ah = 3; int86(0x10,®s,®s); *y = regs.h.dh;
*x = regs.h.dl;
| } |
|
|
04 | Scroll screen |
|
|
| Entry Parameters: | AH = 4 |
|
|
| AL = 0 | ;disable |
|
| = 1 | ;enable |
void TL_scroll(int status)
{
regs.h.ah = 4;
regs.h.al = (unsigned char)status; int86(0x10,®s,®s);
}
1A Enable/disable LCD Backlight INT 21H
Entry Parameters: | AH = 0x1A |
|
| BH = 0 |
|
| AL = 0 | ;disable |
| 1 | ;enable |
Returned Values: | None |
|
void TL_backlight(int status)
{
regs.h.ah = 0x1A;
regs.h.al = (unsigned char)status; regs.h.bh = 0;