Chapter 3. I/O Function Calls
3.I/O Function Calls
The operating system of the MR350MKII supports BIOS/DOS Function to control LCD display, Keyboard input, Proximity/Barcode/Magnetic stripe input, Buzzer, Security alarm,
3.1.LCD Display INT 10H
00 | Clear screen |
|
| Entry Parameters: | AH = 0 |
| Returned Values: | None |
void TL_clrscr()
{
regs.h.ah= 0; int86(0x10,®s,®s);
| } |
|
|
01 | Set cursor type |
|
|
| Entry Parameters: | AH = 1 |
|
|
| AL = 1 | ;set Block cursor |
|
| 0 | ;set Underscore cursor |
|
| 3 | ;set cursor off |
| Returned Values: | None |
|
void TL_cursor_type(int status)
{
regs.h.ah = 1;
regs.h.al = (unsigned char)status; int86(0x10,®s,®s);
| } |
|
|
02 | Set cursor position |
|
|
| Entry Parameters: | AH = 2 |
|
|
| DH = 0 ~ 1 | ;row |
|
| DL = 0 ~ 15 | ;column |
| Returned Values: | None |
|