DL = 8-bit data

Returned Values: None

void TS_stdout(unsigned char ch)

{

regs.h.ah= 2; regs.h.dl= ch; int86(0x21,®s,®s); return;

}

03 Read stdaux (COM2 RS-232 port)

No check on control keys (ESC)

Entry Parameters:

AH = 03

Returned Values:

AL = 8-bit data

unsigned char TS_stdaux_in()

{

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

}

04 Write stdaux (COM2 RS-232 port)

Entry Parameters:

AH = 04

 

DL = 8-bit data

Returned Values:

None

void TS_stdaux_out(unsigned char ch)

{

regs.h.ah= 4; regs.h.dl= ch; int86(0x21,®s,®s); return;

}

06 Read / Write stdin or return 0 if none is ready

Entry Parameters:

AH = 06

 

 

DL = 0~0xFE ; Write this character to stdout

 

FF

; Read stdin

Returned Values:

For Write stdin : none

 

For Read stdin

 

 

if char ready, Zero = clear

 

 

AL = 8-bit data

3-47

Page 48
Image 48
Unitech MR350MKII manual Read stdaux COM2 RS-232 port, Write stdaux COM2 RS-232 port