Mail Archives: djgpp/1998/07/22/09:20:20
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
- Raw text -