From: Thomas Demmer 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: "Heo,Sung-Gwan" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 * *************************************************************