BBS: Inland Empire Archive Date: 06-16-92 (10:35) Number: 197 From: JERRY COFFIN Refer#: NONE To: SIMON KIRBY Recvd: NO Subj: Re: VGA Text characters ( Conf: (1) 80xxx
SK> DOES ANYONE <I repeat> ANYONE KNOW (or think they think SK> that they know) where the VGA text characters are located? Well people don't, but the BIOS does. Luckily, it's happy to tell you. However, you first have to realize that a VGA has more than one set of characters, and you have to decide which one you want - there are 8X8, 8X14, 9X14 and 9X16 pixel fonts. Or, you can simply deal with the current font, whichever that happens to be. The BIOS function is int 10h, AX = 1130h, BL = font number from following table: 00 current text mode font 01 current graphics mode font 02 default 8 X 14 font 03 lower half of 8 X 8 font ( characters 00 - 7f ) 04 upper half of 8 X 8 font ( characters 80 - ff ) 05 9 X 14 font 06 8 X 16 07 9 X 16 The address of the font is returned in ES:BP, the number of bytes per character in CL and number of character rows per screen -1 in dl. Later, Jerry. The universe is a figment of its own imagination --- EZPoint V2.1 * Origin: Point Pointedly Pointless (1:128/60.2)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET