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 Precedence: bulk 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!!!!!!! * ****************************************************