This'd be in C. To output to the port (where BIOS does all handshaking), I'm doing the following to output to the LPT: void SendToDongle(data, lpt) // Sends a byte to the dongle using BIOS print char. char data; // The byte we want to send char lpt; // LPT port to use { extern unsigned _rax, _rdx; _rax=data; // Interrupt 17, function 0. AH=0, AL=data _rdx=lpt-1; // Shift lpt port down to 0..2 _doint(0x17); // Go print it } I'd like to find a similar BIOS or DOS call to read a byte using byte mode. Thanks! Harold On Mon, 27 Aug 2001 14:04:31 -0400 Andy N1YEW writes: > Is this in assembler or c? > > x=inb(port); > outb(port,x); > > dont hold me to the inb and outb syntax... check it yourself... > > that should work.. > ----- Original Message ----- > From: "Harold M Hallikainen" > To: > Sent: Monday, August 27, 2001 1:58 PM > Subject: [PIC]: BIOS call to read from bidirectional parallel port? > > > > I'm using PSP mode on a PIC to interface to a PC parallel > port. In > the > > PC application, I'm using BIOS interrupt 0x17 to send stuff to the > PIC > > thru the parallel port. My BIOS book is real old (1991) and make > no > > mention of bidirectional parallel ports. Is there a STANDARD BIOS > call to > > read from a parallel port? > > > > Harold > > > > > > FCC Rules Online at http://hallikainen.com/FccRules > > Lighting control for theatre and television at > http://www.dovesystems.com > > > > ________________________________________________________________ > > GET INTERNET ACCESS FROM JUNO! > > Juno offers FREE or PREMIUM Internet access for less! > > Join Juno today! For your FREE software, visit: > > http://dl.www.juno.com/get/tagj. > > > > -- > > http://www.piclist.com hint: The PICList is archived three > different > > ways. See http://www.piclist.com/#archives for details. > > > > > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > FCC Rules Online at http://hallikainen.com/FccRules Lighting control for theatre and television at http://www.dovesystems.com ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.