delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/30/02:21:38.1

From: "Marp" <marp AT 0 DOT 0 DOT 0 DOT 0>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Parallel port in DJGPP
Date: Thu, 30 Nov 2000 02:19:40 -0500
Organization: MindSpring Enterprises
Lines: 28
Message-ID: <904v0v$dib$1@slb1.atl.mindspring.net>
References: <3A25F4AC DOT 9ADC3516 AT es DOT co DOT nz>
NNTP-Posting-Host: 04.30.99.bc
X-Server-Date: 30 Nov 2000 07:18:55 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

You need to include pc.h and use outportb(port, value) and value =
inportb(port) for reading.

Marp

"Chris" <chrisr AT es DOT co DOT nz> wrote in message
news:3A25F4AC DOT 9ADC3516 AT es DOT co DOT nz...
> Hi,
>
> I'm new to C/C++ and djgpp in general.  What I need to do is write some
> information to the parallel port on a PC (that is to say make pin 2 high
>
> or pin3 or pin2 and pin3 etc).  Can someone give me a few tips on the
> commands I need, how to implement them and the header files to include?
>
> I imagine its something like
>
> portout (portaddress here), (value to write to port),
>
> In basic its just
>
> OUT 888, (value to write out), Where 888 is decimal for 0x 378 I think
>
> Thanks,
> Chris.
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019