From: almichvl AT aol DOT com (ALMICHVL) Newsgroups: comp.os.msdos.djgpp Subject: far pointers and fp_seg Lines: 22 Message-ID: <1998072204252300.AAA15565@ladder03.news.aol.com> NNTP-Posting-Host: ladder03.news.aol.com Date: 22 Jul 1998 04:25:23 GMT Organization: AOL http://www.aol.com References: <6p2gnc$5tc$1 AT plug DOT news DOT pipex DOT net> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi i want to do the following in djgpp but i having problems is there anyone out there that can help by perhaps offering a good tip or just a little piece of code? Macros that extract the segment and the offset from a far pointer (called `FP_SEG' and `FP_OFF') poke(0x0000, 0x010e, FP_SEG(font)); poke(0x0000, 0x010c, FP_OFF(font)); } //////////////////////////////////////////////////// // OLDFONT // // ReInstalls user's original font pointer // //////////////////////////////////////////////////// void OldFont() { poke(0x0000, 0x010e, FP_SEG(UserFont)); poke(0x0000, 0x010c, FP_OFF(UserFont)); }