git.y1.nz

gbdk-2020

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

commit c9e0abdb6ff54b477e40ea43ef5527d1471ef6c5
parent 1fc142964e4fa4e5dad42f2dcced3458a08f3069
Author: Toxa <untoxa@mail.ru>
Date:   Sat,  9 Sep 2023 19:58:54 +0300

SMS/GG: fix tilemap wrapping over the low bound of the VDP name table

Diffstat:
Mgbdk-lib/libc/targets/z80/set_tile_map_xy.s4++++
Mgbdk-lib/libc/targets/z80/set_tile_map_xy_compat.s4++++
Mgbdk-lib/libc/targets/z80/set_tile_submap.s4++++
Mgbdk-lib/libc/targets/z80/set_tile_submap_compat.s4++++
Mgbdk-lib/libc/targets/z80/sms_fill_rect_xy.s4++++
Mgbdk-lib/libc/targets/z80/sms_fill_rect_xy_compat.s4++++
6 files changed, 24 insertions(+), 0 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 @@ -95,6 +95,10 @@ ld a, ixh and #0b00000111 + cp #0x07 + jp nz, 8$ + xor a +8$: or iyh ld ixh, a 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 @@ -112,6 +112,10 @@ __map_tile_offset:: ld a, ixh and #0b00000111 + cp #0x07 + jp nz, 9$ + xor a +9$: or iyh ld ixh, a diff --git a/gbdk-lib/libc/targets/z80/set_tile_submap.s b/gbdk-lib/libc/targets/z80/set_tile_submap.s @@ -153,6 +153,10 @@ _set_tile_submap:: ld a, ixh and #0b00000111 + cp #0x07 + jp nz, 8$ + xor a +8$: or iyh ld ixh, a diff --git a/gbdk-lib/libc/targets/z80/set_tile_submap_compat.s b/gbdk-lib/libc/targets/z80/set_tile_submap_compat.s @@ -165,6 +165,10 @@ _set_tile_submap_compat:: ld a, ixh and #0b00000111 + cp #0x07 + jp nz, 9$ + xor a +9$: or iyh ld ixh, a diff --git a/gbdk-lib/libc/targets/z80/sms_fill_rect_xy.s b/gbdk-lib/libc/targets/z80/sms_fill_rect_xy.s @@ -95,6 +95,10 @@ ld a, ixh and #0b00000111 + cp #0x07 + jp nz, 8$ + xor a +8$: or iyh ld ixh, a diff --git a/gbdk-lib/libc/targets/z80/sms_fill_rect_xy_compat.s b/gbdk-lib/libc/targets/z80/sms_fill_rect_xy_compat.s @@ -98,6 +98,10 @@ ld a, ixh and #0b00000111 + cp #0x07 + jp nz, 8$ + xor a +8$: or iyh ld ixh, a

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