if char not ready, Zero = set

unsigned char TS_stdin_out(unsigned char ch)

{

regs.h.ah= 6; regs.h.dl= ch; int86(0x21,®s,®s); if (ch == 0xFF)

{

if ((regs.x.cflag & 0x40) == 0) return(regs.h.al); else return(0);

}

return(0);

}

07 Read stdin (wait if no key)

No check on control keys (ESC)

Entry Parameters:

AH = 07

Returned Values:

AL = 8-bit data

unsigned char TS_stdin_noecho()

{

regs.h.ah= 7; int86(0x21,®s,®s); return(regs.h.al);

}

08 Read stdin (wait if no key)

No check on control keys (ESC)

Entry Parameters:

AH = 08

Returned Values:

AL = 8-bit data

unsigned char TS_stdin_wait()

{

regs.h.ah= 8; int86(0x21,®s,®s); return(regs.h.al);

 

}

 

09

Write character string to stdout

 

Entry Parameters:

AH = 09

 

 

DS:DX = segment:offset of string

 

Returned Values:

None

3-48

Page 49
Image 49
Unitech MR350MKII manual Read stdin wait if no key, Write character string to stdout