Font routines.

Summary
Font routines.
Functions
font_loadLoad 1bpp font to VRAM.
font_set_addrSet font address.
font_set_palSet font palette.
font_8x8_loadLoad default 1bpp 8x8 font.

Functions

font_load

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.

Note

Background color for the font is the palette entry #2.  Whereas foreground color is at index #1.

Parameters

_diVRAM address where the font will be copied.
_blfont bank
_sifont address
_cxnumber of characters to load

font_set_addr

Set font address.

Parameters

XVRAM address LSB.
AVRAM address MSB.

font_set_pal

Set font palette.

Parameters

APalette index.

font_8x8_load

Load default 1bpp 8x8 font.

Parameters

_diVRAM address for the bitmap font.
APalette index.
Close