VGA Fonts: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Combuster (talk | contribs)
→‎Get the copy stored in the VGA BIOS: That must have been an accident.
Line 50:
mov cx, 256*16/4
rep movsd
loop @b
pop ds
</source>
 
=== Get from VGA RAM directly ===
Maybe you're already in protected mode, so cannot access BIOS functions. In this case you can still get the bitmap by programming VGA registers. Be careful that the VGA always reserves space for 8x32 fonts so you will need to trim off the bottom 16 bytes of each character during the copy: