git.y1.nz

gbdk-2020

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

commit be8a194f0f170fdcaf960dd873ad0ed1693a0147
parent c20222386079cd24019d79fbf980a7670a544d6e
Author: Toxa <untoxa@mail.ru>
Date:   Thu, 23 Mar 2023 10:37:02 +0300

GB: fix hide_sprites_range(39u, 40u); overflow shadow OAM

Diffstat:
Mgbdk-lib/libc/targets/sm83/metasprites_hide_spr.s4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gbdk-lib/libc/targets/sm83/metasprites_hide_spr.s b/gbdk-lib/libc/targets/sm83/metasprites_hide_spr.s @@ -31,11 +31,11 @@ _hide_sprites_range:: ld de, #4 - rra ; carry is never set here, because of ret c above + srl a jr nc, 0$ ld (hl), d - add hl, de ; carry is reset here because hl can't overflow + add hl, de ret z ; z is not affected by 16-bit add

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