delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/18/09:56:16

Date: Fri, 18 Sep 92 09:39:09 EDT
From: DJ Delorie <dj AT athena DOT ctron DOT com>
To: long AT vax DOT ox DOT ac DOT uk
Cc: DJGPP AT sun DOT soe DOT clarkson DOT edu, long AT vax DOT ox DOT ac DOT uk
Subject: accessing PC memory at D000:0000 directly

>Could someone point me at a specific doc or just send me a couple of lines of
>example code so that I can read/write to a data acquisition card which is dual
>ported to the D000 segment. It is exactly like writing directly to video memory
>except that I cannot see how GO32 deals with this area of memory. 
>For standard PC C compilers I set a (char far) pointer to 0xd000000.

  char *ptr = (char *)0xe00d0000;

See doc/internals.doc, I think.

DJ
dj AT ctron DOT com
Life is a banana.

- Raw text -


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