diff options
author | YamaArashi <shadow962@live.com> | 2015-10-07 06:48:45 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2015-10-07 06:48:45 -0700 |
commit | 0f1e6fbfa4300c3f8ecf4258e118a6d5f5fb82d0 (patch) | |
tree | 4687f5879596cad4a5a8c7f46481c2022c4b781d /asm/macros.s | |
parent | 69f436b393277f73a2306e0baf2629170d95ea32 (diff) |
add text renderer data
Diffstat (limited to 'asm/macros.s')
-rw-r--r-- | asm/macros.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/asm/macros.s b/asm/macros.s index 96f79195d..7629f747e 100644 --- a/asm/macros.s +++ b/asm/macros.s @@ -37,3 +37,25 @@ .byte \palette .2byte \vram_tile_offset .endm + + .macro font_width_func font_id, func + .4byte \font_id + .4byte \func + .endm + + .macro keypad_icon tile_offset, width, height + .2byte \tile_offset + .byte \width + .byte \height + .endm + + .macro font_info func, max_glyph_width, glyph_height, glyph_spacing, line_spacing, text_color, shadow_color, bg_color + .4byte \func + .byte \max_glyph_width + .byte \glyph_height + .byte \glyph_spacing + .byte \line_spacing + .byte \text_color << 4 @ low nybble seems unused + .byte (\shadow_color << 4) | \bg_color + .2byte 0 @ padding + .endm |