www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/22/17:38:00

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Need help loading BIOS fonts...
Date: Mon, 22 Jan 2001 22:19:20 +0000
Organization: Customer of Energis Squared
Lines: 24
Message-ID: <7fap6tgp82nm3gv7g0ld96fl2cefhknabu@4ax.com>
References: <U%_a6.21321$K8 DOT 1029143 AT news1 DOT rdc1 DOT ab DOT home DOT com>
NNTP-Posting-Host: modem-31.rottweiler.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg1.svr.pol.co.uk 980201974 8819 62.25.200.31 (22 Jan 2001 22:19:34 GMT)
NNTP-Posting-Date: 22 Jan 2001 22:19:34 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Darryl Gates" <gatesjd AT cadvision DOT com> wrote:

> Hi all,
> 
> I'm trying to load the BIOS fonts (which I've been told are at 0xffa6e) into
> an array of my own so that they can be drawn to the screen in graphics mode
> (I'm using mode 105h). Anyway, I have no problem doing this when I use
> __djgpp_nearptr_enable(), but I want to be able to do it with _farpeekb(). I
> try setting my segment base address to 0xffa6e and then copying them over,
> but it doesn't seem to be working. Here is my chunk of code that I'm using.
> I've tried to search this ng and look through the FAQ, and I still haven't
> got it right. Any help or insight into what I'm doing wrong would be greatly
> appreciated...

[snip code with near ptrs]

I can't tell what is wrong with your code but you should know that you
could do this without resorting to near pointers.

The FAQ tells how to allocate a transfer buffer in conventional
memory, which you could then use to save/load the font data.  DJGPP
uses this technique in conio.c to achieve a 30 line text mode display,
the source code is free for inspection if you want an example of how
it can be done.

- Raw text -


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