git.y1.nz

gbdk-2020

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

commit c909ac84db73b4f652857ca0768aa38b4557b82c
parent 8cf112460b22e147c6d70fca6b6176e183ee646c
Author: Toxa <56631470+untoxa@users.noreply.github.com>
Date:   Thu, 14 Sep 2023 10:49:43 +0300

Merge pull request #578 from michel-iwaniec/nes_set_bkg_based_tiles

NES bugfix: Actually apply _map_tile_offset for set_bkg_based_tiles
Diffstat:
Mgbdk-lib/libc/targets/mos6502/nes/set_bk_ts.s5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/gbdk-lib/libc/targets/mos6502/nes/set_bk_ts.s b/gbdk-lib/libc/targets/mos6502/nes/set_bk_ts.s @@ -8,6 +8,7 @@ .ypos: .ds 1 .num_rows: .ds 1 .src_tiles: .ds 2 + __map_tile_offset: .ds 1 .area _HOME @@ -54,6 +55,8 @@ _set_bkg_tiles_horizontalStripes: ldy #0 2$: lda [*.src_tiles],y + clc + adc *__map_tile_offset iny jsr .ppu_stripe_write_byte dex @@ -108,6 +111,8 @@ _set_bkg_tiles_verticalStripes:: ldx *.height 2$: lda [*.src_tiles],y + clc + adc *__map_tile_offset jsr .ppu_stripe_write_byte ; .src_tiles += width lda *.width

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