gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5e8c4864cf1e187a4edb5924041e1bf14b8105d0 parent 7ae47f6e65052cfd4c4da26c343ce7972375752b Author: Toxa <56631470+untoxa@users.noreply.github.com> Date: Mon, 13 Apr 2026 11:52:13 +0200 Merge pull request #868 from Phidias618/patch-3 Small optimization of ___move_metasprite for the sm83 port Diffstat:
| M | gbdk-lib/libc/targets/sm83/metasprites.s | 15 | ++++++++------- |
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/gbdk-lib/libc/targets/sm83/metasprites.s b/gbdk-lib/libc/targets/sm83/metasprites.s @@ -27,10 +27,8 @@ ___render_shadow_OAM:: ___move_metasprite:: cp #40 - jr c, 0$ - xor a - ret -0$: + jr nc, .sprite_limit + push af add a add a @@ -64,7 +62,7 @@ ___move_metasprite:: ld (bc), a inc c - ld a, (___current_base_prop) + ld a, (___current_base_prop) add (hl) ; props inc hl ld (bc), a @@ -75,9 +73,12 @@ ___move_metasprite:: jr c, 1$ 2$: ld a, c - srl a - srl a + rrca + rrca pop de sub d ret +.sprite_limit: + xor a + ret
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.