delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/18/05:15:53

From: lonniem AT cs DOT utexas DOT edu (Lonnie McCullough)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Geting 8x8 text from rom?
Date: Wed, 17 Dec 1997 02:51:31 GMT
Message-ID: <34973ce2.21836427@news.nol.net>
References: <34938c5f DOT 0 AT pusher DOT student DOT adelaide DOT edu DOT au>
NNTP-Posting-Host: ip38-23.nol.net
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 14 Dec 97 07:35:59 GMT, Matthew
<rocko AT mulder DOT student DOT adelaide DOT edu DOT au> wrote:

>Im rather new to DJGPP so please excuse my ignorance here
>
>I would like to know how I would use farnspeekb for the following address.
>0xF000FA6E which contains the 8x8 font for mode 13h in rom. The only 
>example close to farnspeekb I can find is for writing to the screen
>ie  _farnspokeb(0xA0000 + line_offset, color);
>Im used to writing 0xA0000000 for the screen address!
>How do I write the adress 0xF000FA6E for use with farnspeekb?
>
>Matthew
>
Get Surface (it's my graphics library with 8, 15, 16, and 24 bpp
support) from http://www.cs.utexas.edu/users/lonniem/src.zip.  Unzip
it and look in src/font.c.  In the function fontinit () the 8x8 bios
font is read from conventional memory using movedatal.  It shows how
to use _dos_ds and gives the correct offset.  In case you don't want
to do that...the offset from _dos_ds is 0xFFA6E.  Just read 8 x 256
bytes starting at that address.  Using movedatal and putting it in
your own address space is the easiest way to do this.

Lonnie McCullough
lonniem AT cs DOT utexas DOT edu

- Raw text -


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