TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: FERNANDO ARIEL GONT
from: BRENT FOSTER
date: 1998-04-04 14:59:00
subject: Serial port: BIOS functi

FAG>Hullo All , hope you are having a nice day!!
FAG>I tried to use int 14h func 02h: Receive character from communications
FAG>port.
FAG>The "specification" says: "This function waits for a character",
FAG>But in the few "experiments" I made, it seems that it doesn't _*wait*_ 
he
FAG>character....
FAG>Why?
Because Int14h func 02h is Just "Read Character".  You have to use
Int14h func 03h to check if there is a Character to be read.
Int 14h func 03
IN
        func code    AH =(03h)
        Port Number  DX
OUT
        Line status  AH
        Modem status AL
Line status register
bit
7   timeout
6   Transmit Shift Register Empty
5   Transmit Holding Register Empty
4   Break Detected
3   Framing Error
2   Parity Error
1   Overrun Error
**0   Receive Data Ready
Check bit 0 of Ah after int14h func 03h, if it is set then call func
02h.
Brent.
___
 X OLX 2.1 TD X Press "+" to see another tagline.
--- Maximus 2.02
---------------
* Origin: Digital Encounters * Kamloops BC Canada 250/374-6168 (1:353/710)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.