Mail Archives: djgpp/1997/12/18/05:15:53
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 -