gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit c3f5af60f1725310af49db449f2752ca6ceb42aa parent a19eebc8d858454f6863ceefc52c5a7124deb1a1 Author: Toxa <untoxa@mail.ru> Date: Wed, 25 Aug 2021 15:27:07 +0300 SMS/GG: save a few bytes and cycles in .set_tile_map_xy_tt/.set_tile_map_xy_tt_compat Diffstat:
| M | gbdk-lib/libc/targets/z80/set_tile_map_xy.s | 8 | ++------ |
| M | gbdk-lib/libc/targets/z80/set_tile_map_xy_compat.s | 8 | ++------ |
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/gbdk-lib/libc/targets/z80/set_tile_map_xy.s b/gbdk-lib/libc/targets/z80/set_tile_map_xy.s @@ -17,12 +17,8 @@ push bc ; Store source ld a, d - rlca - rlca - rlca - rlca - rlca - rlca + rrca ; rrca(2) == rlca(6) + rrca ld d, a and #0x07 add h diff --git a/gbdk-lib/libc/targets/z80/set_tile_map_xy_compat.s b/gbdk-lib/libc/targets/z80/set_tile_map_xy_compat.s @@ -19,12 +19,8 @@ push bc ; Store source ld a, d - rlca - rlca - rlca - rlca - rlca - rlca + rrca ; rrca(2) == rlca(6) + rrca ld d, a and #0x07 add h
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.