Mail Archives: djgpp/1997/02/26/05:01:12
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 -