Newsgroups: comp.robotics
Path: brunix!cat.cis.Brown.EDU!agate!darkstar.UCSC.EDU!news.hal.COM!olivea!uunet!hobbes!earth.armory.com!rstevew
From: rstevew@armory.com (Richard Steven Walz)
Subject: Re: Printer Port I/O
Organization: The Armory
Date: Mon, 25 Jul 1994 15:56:03 GMT
Message-ID: <CtI6xH.546@armory.com>
References: <30vfba$pe0@wumpus.cc.uow.edu.au>
Sender: news@armory.com (Usenet News)
Nntp-Posting-Host: deeptht.armory.com
Lines: 29

In article <30vfba$pe0@wumpus.cc.uow.edu.au>,
Peter Williamson <peterw@wumpus.cc.uow.edu.au> wrote:
>I have noted a few articles lately relating to using the PC's printer
>port for general I/O from C, BASIC etc. I have developed a language
>independent interface to control the printer port.
>You just load the CPU registers with various parameters and execute
>a INT 17h. This interface also fixes the problems usually associated
>with using the printer port e.g inverted bits, bits left justified
>etc.
>Functions include:
>
>readport, writeport, readbit, setbit(hi/lo/toggle), selectprn,
>verifyhardware etc.
>
>This interface can and has been used with C, PASCAL, QBASIC, VBDOS,
>CLARION, FORTRAN, PROLOG if the language can generate a INT 17 then 
>it can use it. (QBASIC needs a little asm support in the form of a
>small routine to allow INT generation)
>
>If people are interested I can properly document the usage and upload to]
>SIMTEL-20.
>
>Peter
>peterw@uow.edu.au
-------------------------------
Please do!!! But publish it all here first, if you would. One shot is a
fair chance, eh?
-Steve Walz   rstevew@armory.com

