To: djgpp AT delorie DOT com Subject: Re: _bios_serialcom() in djgpp References: <89m367$mjn$1 AT nnrp1 DOT deja DOT com> From: Prashant TR 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: Lines: 22 X-Mailer: Gnus v5.7/Emacs 20.4 Reply-To: djgpp AT delorie DOT com Jason Green 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.