Font routines. | |
Functions | |
font_load | Load 1bpp font to VRAM. |
font_set_addr | Set font address. |
font_set_pal | Set font palette. |
font_8x8_load | Load default 1bpp 8x8 font. |
Load 1bpp font to VRAM.
Load a 8x8 1bpp font and set font base address for text display routines. The first 96 characters of the font must match the ones of the [$20,$7A] range of the ASCII table.
Background color for the font is the palette entry #2. Whereas foreground color is at index #1.
_di | VRAM address where the font will be copied. |
_bl | font bank |
_si | font address |
_cx | number of characters to load |