delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/19/09:01:23

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory mapped I/O in protected mode
Date: Wed, 19 Nov 1997 14:04:53 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 31
Message-ID: <3472E3F5.9E8CBBA9@LSTM.Ruhr-UNI-Bochum.De>
References: <3472DA18 DOT 223AD317 AT turbotek DOT co DOT kr>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
CC: "Heo,Sung-Gwan" <heo AT turbotek DOT co DOT kr>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Heo, Sung-Gwan wrote:
> 
> Hi, there.
> 
> How do I write a program that performs memory mapped I/O in protected
> mode?
> I have a I/O card which use D000:0000 ~ D000:0800 memory space for
> memory mapped I/O, but I must program in 32bit protected mode.
[...] 
> How can I write a 32bit protected mode program which does the same as
> above code?

If you had read the FAQ, Chapter 18.4, you would know the answer
is _farpeekX, _farpokeX, dosmemputX, or dosmemgetX, and alikes.
And, note that under DJGPP an int is 32 bit, not 16 bit, that
might save you some more troubles.

-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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