Message board for the users of flat assembler.
> DOS > Mode 13h and ROM Fonts ?
I'm quite new to DOS programming, but familiar in general with x86 assembler, so can anybody tell me what is the easiest/shortest way to display text using the ROM fonts while beeing in VGA MODE 13h ?
Where are the fonts located and in which way are they stored ? I couldn't find much by googleing. I guess I got to copy the letters one by one from the ROM location...?
|05 Sep 2013, 22:18||
Try this resource:
If you scroll down to the very bottom -- you may find the location of DOS Font.
|06 Sep 2013, 01:40||
First use this code to retrieve a pointer to the 8x16 systemfont.
You get this information irrespective of the current video mode!
(Use bh=2 to locate the 8x14 font)
You will get output in CX=16, DL and ES:BP
At ES:BP there sits a table of 256 packets of 16 bytes. Each packet represents an ASCII character.
The 1st byte of each packet defines the topline of the character whereas the 16th byte defines its bottomline.
Within every byte bit 7 defines the leftmost pixel on screen and bit 0 defines the rightmost pixel on screen.
All in all it's a very straightforward format. Good luck!
Real Address Mode.
|06 Sep 2013, 20:55||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.