www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/13/23:10:24

Date: Sat, 13 May 95 22:34:42 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Dumb Newbie Question Re:Low Memory Accesss
Reply-To: rbabcock AT cfa DOT harvard DOT edu

> Don't worry about pointer types like 'near' or 'far' or 'huge' etc. 
> when you use djgpp.  Memory space is 32-bit linear with djgpp, and
> you can write programs without headache of memory segment.

But, under dpmi, the linear memory space doesn't include the first MB of
memory.  So if you want access to video memory, you have to use library
function calls, sys/farptr.h, assembly language or similar.  This makes your
life a little more difficult if you are porting from DOS to djgpp, but it's
not bad if all your screen output gets routed through a small number of
routines.

- Raw text -


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