delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/28/11:51:00

Sender: lhm AT huey DOT voicenet DOT com
Message-ID: <36B0942A.37EFFDB1@voicenet.com>
Date: Thu, 28 Jan 1999 11:45:30 -0500
From: Lee Marzke <tallyho AT voicenet DOT com>
X-Mailer: Mozilla 4.04C-Caldera [en] (X11; I; Linux 2.0.33 i686)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: DJGPP and IO Port Programming.
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990128094757 DOT 2355P-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Wed, 27 Jan 1999, Lee Marzke wrote:
> 
> > If this needs to run in a dos BOX in Windows, can you do this with
> > DJGPP ?
> > I know talking directly to hardware is supposed to be a problem in
> > Windows environments.
> 
> You didn't tell which version of Windows is that.  Windows 3.X and 9X
> allow access to ports, while Windows/NT doesn't.

I am using Win95.

I just found the pc.h library which has the functions

inportb, inportw, inportl, inportsb, inportsl, inp, inpw

and similiar for the output functions.  Are these the correct
functions to use ?  What is the difference between
inportb and inpb, which have the same parameters ?

Thanks,


-- 

--------------------------------
Lee Marzke         <lee AT n99 DOT com>

--------------------------------

- Raw text -


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