From: almichvl AT aol DOT com (ALMICHVL) Newsgroups: comp.os.msdos.djgpp Subject: far pointers and fp_seg Lines: 24 Message-ID: <1998072204331500.AAA16520@ladder03.news.aol.com> NNTP-Posting-Host: ladder03.news.aol.com Date: 22 Jul 1998 04:33:15 GMT Organization: AOL http://www.aol.com References: <01bdb4ae$f7f6d5a0$9805a8c0 AT stg1> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk hi i tried to run the following code in DJGPP but i having trouble is there anyone that can help ME? THANKS ALMICHVL AT AOL DOT COM i want to extract the segment and the offset from a far pointer -USER FRONT USING FP_SEG' and `FP_OFF) . _farpokeb(0x0000, 0x010e, FP_SEG(font)); _farpokeb(0x0000, 0x010c, FP_OFF(font)); } //////////////////////////////////////////////////// // OLDFONT // // ReInstalls user's original font pointer // //////////////////////////////////////////////////// void OldFont() { _farpokeb(0x0000, 0x010e, FP_SEG(UserFont)); _farpokeb(0x0000, 0x010c, FP_OFF(UserFont)); }