Unitech MR350MKII Barcode Reader User Manual


 
3-49
void TS_stdout_string(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah= 9;
int86x(0x21,&regs,&regs,&segregs);
return;
}
0A Keyboard buffer input
Entry Parameters: AH = 0A
DS:DX = pointer to input buffer area
Returned Values: Buffer filled with last character by a CR
void TS_stdin_string(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah= 0x0a;
int86x(0x21,&regs,&regs,&segregs);
return;
}
0B Keyhit check
Entry Parameters: AH = 0B
Returned Values: AL = 00 if char not ready
AL = FF if char ready
unsigned char TS_kbhit()
{
regs.h.ah= 0x0b;
int86(0x21,&regs,&regs);
return(regs.h.al);
}
Date/Time
The four function calls below are used to set/retrieve the system time and data by
directly accessing the real-time-clock chip.
2A Get System date
Entry Parameters: AH = 2A
Returned Values: AL = Week