gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 8624f1ca53df379007943f875d43a6c7c720eebe parent efb3dccae1c5fc2af62d352a9c04cfd06fb9e998 Author: Toxa <untoxa@mail.ru> Date: Thu, 6 May 2021 18:59:11 +0300 fix broken gb_decompress_sprite_data()/gb_decompress_bkg_data()/gb_decompress_win_data() Diffstat:
| M | gbdk-lib/libc/gb/gb_decompress_tiles.s | 22 | +++++++++++++++++----- |
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/gbdk-lib/libc/gb/gb_decompress_tiles.s b/gbdk-lib/libc/gb/gb_decompress_tiles.s @@ -124,7 +124,7 @@ gb_decompress_vram:: add hl,bc 12$: ld c,a - call 10$ + call repeat_string pop hl inc hl @@ -135,15 +135,16 @@ gb_decompress_vram:: inc a ld c,a - call 10$ + call copy_string jp 1$ ; next command 9$: pop de pop bc ret - -10$: + +repeat_string: +1$: WAIT_STAT ld a,(hl+) ld (de),a @@ -151,5 +152,16 @@ gb_decompress_vram:: inc de WRAP_VRAM d dec c - jr nz,10$ + jr nz, 1$ + ret + +copy_string: +1$: + WAIT_STAT + ld a,(hl+) + ld (de),a + inc de + WRAP_VRAM d + dec c + jr nz, 1$ 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.