Mail Archives: djgpp/2000/03/04/22:37:54
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 -