git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 66b52d05e7815da272c7e49269ea5be3801c1a46
parent 10ed2e6f9d0bd341df376d666a24c6051ed1cd2e
Author: Toxa <untoxa@mail.ru>
Date:   Wed,  8 Sep 2021 22:07:48 +0300

SMS/GG: optimize font_color()

Diffstat:
Mgbdk-lib/libc/targets/z80/font.s10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/gbdk-lib/libc/targets/z80/font.s b/gbdk-lib/libc/targets/z80/font.s @@ -5,7 +5,7 @@ .globl .memset_small .globl _font_ibm - .globl .fg_colour, .bg_colour + .globl __current_1bpp_colors, .fg_colour, .bg_colour ; Structure offsets sfont_handle_sizeof = 3 @@ -68,14 +68,10 @@ font_set:: ret _font_color:: - pop hl pop de + ex (sp), hl push de - push hl - ld hl, #.fg_colour - ld (hl), e - inc hl - ld (hl), d + ld (__current_1bpp_colors), hl ret font_load_ibm::

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.