Mail Archives: djgpp/1997/09/27/12:45:17
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 -