www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/27/12:45:17

Date: Sat, 27 Sep 1997 09:44:41 -0700 (PDT)
Message-Id: <199709271644.JAA15977@adit.ap.net>
Mime-Version: 1.0
To: phreadd AT powerup DOT com DOT au, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: rom accessing

At 05:07  9/26/1997 GMT, David Orme wrote:
>Hi!
>
>I got a program which does SVGA graphics, so I know all about accessing RAM 
>and the offset you have to give it (0xA000+_dpmi_somthing_or_other)
Is this with nearptr?  I usually use farptr functions and _dos_ds, which is
safer.
>
>What I'd like to know is:
>
>Do I have to offset my address when accessing the ROM part of the memory? 
>The DOS text is stored at F000:FA6E (real mode access I think...) and I'd 
>like to use it (I'm too lazy to design my own).
Yeah, the BIOS ROM is mapped at real-mode address F0000. You can access it
just like any other conventional memory. I.E:

movedata(_dos_ds,0xFFA6E,_my_ds(),buffer,length);

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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