www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/22/09:20:20

Message-Id: <m0yyylB-000S4tC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
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
Subject: Re: far pointers and fp_seg
In-reply-to: <1998072204252300.AAA15565@ladder03.news.aol.com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019