Returned Values: | AL = 1 | ; Lithium battery low |
| 0 | ; Normal |
int TS_lithium_battery()
{
regs.h.ah= 0x1A; regs.h.bh= 9; int86(0x21,®s,®s); return(regs.h.al);
}
1B Get Address ID of the terminal
Entry Parameters: | AH = 0x1B |
| BH = 6 |
Returned Values: | AL = Address ID |
char TC_get_address()
{
regs.h.ah = 0x1b; regs.h.bh = 6; int86(0x21,®s,®s); return((char)regs.h.al);
| } |
|
25 | Set interrupt vector |
|
| Entry Parameters: | AH = 0x25 |
|
| AL = interrupt number |
|
| DS:DX = address of interrupt routine |
| Returned Values: | none |
void TS_set_interrupt_vector(int vect,unsigned int ds,unsigned int dx)
{
regs.h.ah= 0x25;
regs.h.al= (unsigned char)vect; segregs.ds=ds; regs.x.dx=dx; int86x(0x21,®s,®s,&segregs);
| } |
|
35 | Get interrupt vector |
|
| Entry Parameters: | AH = 0x35 |
|
| AL = interrupt number |
| Returned Values: | ES:BX = address of interrupt routine |