VGA Fonts: Difference between revisions
Jump to navigation
Jump to search
→Get the copy stored in the VGA BIOS: That must have been an accident.
[unchecked revision] | [unchecked revision] |
(→Get the copy stored in the VGA BIOS: That must have been an accident.) |
|||
Line 50:
mov cx, 256*16/4
rep movsd
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:
|