www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/16/21:03:13

From: "John M. Aldrich" <fighteer AT NO DOT SPAM DOT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: segment operator
Date: Wed, 16 Apr 1997 05:56:19 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 22
Message-ID: <33546A03.7F8@NO.SPAM.cs.com>
References: <33550745 DOT B59 AT netime DOT com>
NNTP-Posting-Host: ppp102.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Derek Greene wrote:
> 
> is tehre any kind of segment operator or or function in djgpp?

It depends on what you need one for.  DJGPP runs in flat model 32-bit
protected mode, meaning that the entire program fits in a single segment
with an upper limit of 4 GB.  You don't need segments to access anything
inside your address space.

To access memory outside of your address space, you need to use one of
several techniques to prevent your programs from violating memory
protection.  You cannot, for instance, directly access the VGA memory at
0xa0000 without one of these techniques.  Please download the DJGPP FAQ
(v2/faq210b.zip from SimTel) and read chapters 10, 17, and 18 - all the
information you need should be there.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |     mailto:fighteer AT cs DOT com      |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


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