delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/04/22:37:54

To: djgpp AT delorie DOT com
Subject: Re: _bios_serialcom() in djgpp
References: <89m367$mjn$1 AT nnrp1 DOT deja DOT com> <t953cs440h0jlop43eu25f6emh7hurkkli AT 4ax DOT com>
From: Prashant TR <prashant_tr AT yahoo DOT com>
In-Reply-To: Jason Green's message of "Sat, 04 Mar 2000 23:11:11 +0000"
Date: 05 Mar 2000 07:54:33 +0500
Message-ID: <lsvh3215zq.fsf@midpec.com>
Lines: 22
X-Mailer: Gnus v5.7/Emacs 20.4
Reply-To: djgpp AT delorie DOT com

Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk> writes:

> wsimpson AT my-deja DOT com wrote:
> 
> > My current problem is that when I try to read the device hooked up to
> > com1, I get nothing really. If I print it as
> > %d the value is 32768
> > %c prints a vertical space
> > %s garbage
> > I think it is because the initialization of the port failed, or because
> > the reading of the data from the port failed, or both. Hence my
> > questions.

Yes. It is most likely that the COM port failed. It is also possible that
you are running under Windows. If you aren't, then try this:

* Load a mouse driver.
* Hook IRQ4 and read port 3F8h on every movement of the mouse.

If some random data appears, you can be sure that your initialization
didn't work.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019