delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/11/09:48:28

From: gautam AT interlog DOT com (Gautam N. Lad)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What's Segment and Offset?
Date: Mon, 05 May 97 17:08:38 GMT
Organization: InterLog Internet Services
Lines: 29
Message-ID: <5kl3u1$98n@news.interlog.com>
References: <5kdl4b$lis AT news DOT interlog DOT com> <336DEC7B DOT 5782 AT cam DOT org>
NNTP-Posting-Host: ip203-156.cc.interlog.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,
>> Can someone tell me what Segment (FP_SEG) and Offset (FP_OFF)?
>If you use DJGPP those things don't exist because DJGPP has a flat
>memory model.
Thanks!  I asked this, 'cause I'm using TC (I have to :( ) for a school prjoect ; I've 
to make a game.  I wish I could use Allegro and DJGPP, but our school doesn't 
have fast systems in the programming department (286, and 3 486).  Sheesh!

> Now, in this segment, your data has a relative (to the
>segment start address) adress called the offset. FP_OFF gives you the
>offset  of the data relative to the address that FP_SEG gives you.

Ok, what's the 'definition' fo the term OFFSET!?


Thanks!
Bye!

****************************************************
* Gautam N. Lad                                    *
*--------------------------------------------------*
*                                                  *
* E-Mail    : gautam AT interlog DOT com                  *
* Website   : http://www.interlog.com/~gautam      *
*                                                  *
* OS/2, DOS/Windows, Graphics Gallery, Software,   *
* Links, Rayzor Editor/2, POV-Ray, TexturEyes,     *
* POV-PAK and lots lots lots more!!!!!!!           *
****************************************************

- Raw text -


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