Date: Sun, 14 Dec 1997 16:28:17 +0200 (IST) From: Eli Zaretskii To: Matthew 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.