From: Jason Green 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: NNTP-Posting-Host: modem-31.rottweiler.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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.