delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/07/02:40:08

Date: Sun, 7 Jan 1996 09:32:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Henri P. Gavin" <hpgavin AT acpub DOT duke DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: read/write hardware registers?

On 5 Jan 1996, Henri P. Gavin wrote:

> Are there functions available in djgpp
> similar to the turbo-c functions inport() and outport()
> which can be used to read and write words and bytes to hardware register
> addresses?

Yes, there are.  They are called `inportb', `inportw', etc.  They are 
prototyped on the <pc.h> header file.  You should append `-lpc' to your 
link command line to have the linker find them.

- Raw text -


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