delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/14/09:31:47

Date: Sun, 14 Dec 1997 16:28:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matthew <rocko AT mulder DOT student DOT adelaide DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Geting 8x8 text from rom?
In-Reply-To: <34938c5f.0@pusher.student.adelaide.edu.au>
Message-ID: <Pine.SUN.3.91.971214162457.21051C-100000@is>
MIME-Version: 1.0

On 14 Dec 1997, Matthew wrote:

> 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?

It's not 0xF000FA6E, it's F000:FA6E, i.e. segment=0xF000, offset=0xFA6E.  
So the way to pass this address to farptr functions is like so:

	_farnspeekb(0xFFA6E);

that is, (segment << 4) + offset.

This is all explained in the library docs, btw.  If the docs somehow 
doesn't make this clear, please say exactly what is unclear there.

- Raw text -


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