Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: almichvl AT aol DOT com (ALMICHVL), djgpp AT delorie DOT com Date: Wed, 22 Jul 1998 10:25:54 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: far pointers and fp_seg In-reply-to: <1998072204252300.AAA15565@ladder03.news.aol.com> Precedence: bulk almichvl AT aol DOT com (ALMICHVL) wrote: > > 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)); > } Please read the FAQ, djgpp programs are protected mode one and in protected mode the things are different. The FAQ is in the same directory from where you got djgpp. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013