Mail Archives: djgpp/1997/12/14/09:31:47
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:
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 -