Newsgroups: comp.robotics
Path: brunix!cat.cis.Brown.EDU!noc.near.net!paperboy.wellfleet.com!news-feed-1.peachnet.edu!emory!swrinde!news.dell.com!tadpole.com!uunet!zib-berlin.de!ceres.fokus.gmd.de!jet
From: jet@fokus.gmd.de (J. Tiemann)
Subject: Re: C and the printer port?
Message-ID: <1994Jul19.171157.2777@fokus.gmd.de>
Sender: news@fokus.gmd.de (News system)
Organization: GMD-Fokus (Berlin)
References: <1994Jul17.153810.18312@news.vanderbilt.edu> <30gok2$h5m@search01.news.aol.com>
Date: Tue, 19 Jul 1994 17:11:57 GMT
Lines: 20

In article <30gok2$h5m@search01.news.aol.com>, hgxing@aol.com (Hgxing) writes:
|> In article <1994Jul17.153810.18312@news.vanderbilt.edu>,
|> HEAGYWS@ctrvax.Vanderbilt.Edu () writes:
|> 
|> > I am currently using QuickBasic and the OUT 888,xx command to control
|> > the parallel printer port of a PC.  
|> 
|> From C, you use the "outport(xxx, xx)" command.  Get an IBM PC interface
|> book for exact addresses and bit assignments.  You actually have on the
|> order of 16 output bits available (and maybe 7 input bits).
|> 

And please use the informations/routines that are far as
possible away from your hardware. In your example:
Use the BIOS system variable with the address of the
printer port instead. So it will work also on my
PS/2 notebook :-)

Jens
 
