www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/26/05:01:12

From: peuha AT cc DOT helsinki DOT fi (Esa A E Peuha)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [q]: Getting access to BIOS font data
Date: 26 Feb 1997 08:21:12 GMT
Organization: University of Helsinki
Lines: 33
Message-ID: <5f0rpo$ghm@oravannahka.Helsinki.FI>
References: <856518100 DOT 402472 AT red DOT parallax DOT co DOT uk>
Reply-To: Esa DOT Peuha AT helsinki DOT fi
NNTP-Posting-Host: kruuna-ether.helsinki.fi
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Eccleston (johne AT parallax DOT co DOT uk) wrote:
: Hi All,

: I am trying to get the bios font data so that I can write text to my
: double buffer.  I have written a little piece of inline ASM to call
: int 10 function 11 to get the address of the font data but when I run
: the program, even though it works the data it brings back is not as
: expected.

: When I try using the data obtained the characters are all gibberish.
: On my PC even an 8x8 character set reports that it is stored as
: 16 bytes per character, and for font heights of 8, 14 and 16 they are
: all stored at the same address.

: The program to get the font data is added below, if anyone has any
: experience of doing this and could tell me what I have obviously
: done wrong then I would be very grateful.  The problem may lie in
: my inline ASM which I am not used to yet.

: Thanks in advance

: John

[code snipped]

You can't call int functions directly in protected mode program. Does
your program actually execute (I had thought that an int opcode would
crash any PM program)?

--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


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