Mail Archives: djgpp/1997/11/19/09:01:23
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 -