p p , p , , p , p p. ( , p p pp: p - 1200 , pp , p ). pp 14, 0, p. p pp BIOS pp p p . p L p pp , p p p:

p : 7 6 5 4 3 2 1 0

----- --- - ---

| | | |

p p () -------------- | | |

p 蠠 ------------------- | |

p ---------------- |

-------------------------

p p p 6-1. p p 6-2.

6-1

p p p 7, 6 5 p.

p

-------- ----------------------

9600 1 1 1

4800 1 1 0

2400 1 0 1



1200 1 0 0

600 0 1 1

300 0 1 0

150 0 0 1


110 0 0 0

p p p. p 1, p ; p p . p pp . p , p , .

p pp p "1 0", p . pp p "1 1", .

6-2

p 4 3

p

p

------------ ----------------------

p 0 0 1 0

pp 0 1

pp 1 1

pp, p p p 9600 , pp , p , p . p p 251.

1 1 1 1 1 0 1 1

------- --- - ---

p p () ------ | | |

p 蠠 ------------- | |

p ------------ |

---------------------

p PC pp p ( ). p p pp DX. p p p 0, p - 1 . . , p , int_port(), p p .

/* */

void port_init(port, code)

int port;

unsigned char code;

union REGS r;

r.x.dx = port; /* p */

r.h.ah = 0; /* p */

r.h.al = code; /* - . */

int86(0x14, &r, &r);



int86(), p

p, MicroSoft C.

p, int86() p,

( p

), p . pp

p.

(ꠠ ⠠  蠠 bioscom(),

p p).