www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/11/07:30:25

Xref: news2.mv.net comp.os.msdos.djgpp:5856
From: Enrico Horn <enrico DOT horn AT prakinf DOT tu-ilmenau DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Need help to get start with Djgpp V.2.0
Date: Thu, 11 Jul 1996 12:25:48 +0200
Organization: Technische Universitaet Ilmenau
Lines: 21
Message-ID: <31E4D6AC.F2F@prakinf.tu-ilmenau.de>
References: <4r9thf$29u AT clark DOT zippo DOT com> <4rfhf6$3b5 AT news6 DOT erols DOT com> <4ru9r5$6je AT mark DOT ucdavis DOT edu>
NNTP-Posting-Host: classic1.prakinf.tu-ilmenau.de
Mime-Version: 1.0
To: Jeffrey Taylor <elric AT wheel DOT dcn DOT davis DOT ca DOT us>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jeffrey Taylor wrote:
> Why do you want to?  Are you trying to access video memory or someother
> hardware adapter with memory?  If so, remember that protected mode memory
> is virtual and does not map directly into physical memory addresses.
> There are a few extra hoops to jump through to get a pointer to a real
> address.

Protected mode memory is virtual, right. But the memory below 1M is
mapped to the right adresses. That means you can compute your adress
that way: segment * 16 + offset (which is the protected mode adress).
Now you can farpoke/farpeek to that adresses (or use dosmemput or near
pointers, whatever you like). 

Regards,
Enrico.
-- 
/---------------------------------------------------------------------\
|Enrico Horn               Tel. 036738/41929                          |
|07426 Lichta              E-mail: enrico DOT horn AT prakinf DOT tu-ilmenau DOT de  |
|Ortsstrasse Nr. 14        http://www.prakinf.tu-ilmenau.de/~ehorn    |
\---------------------------------------------------------------------/

- Raw text -


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