all repos — mgba @ a405ec42b46099ad050735ab797ca55f75dbdb64

mGBA Game Boy Advance Emulator

GB Video: Fix BGPS value after skipping BIOS (fixes #1717)
Vicki Pfau vi@endrift.com
Wed, 13 May 2020 20:00:30 -0700
commit

a405ec42b46099ad050735ab797ca55f75dbdb64

parent

7b34a0a63ce751bdf3fc734d67b3745f57c51886

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -7,6 +7,7 @@ - ARM: Fix ALU reading PC after shifting

- ARM: Fix STR storing PC after address calculation - GB: Fix GBC game registers after skipping BIOS - GB Video: Fix state after skipping BIOS (fixes mgba.io/i/1715 and mgba.io/i/1716) + - GB Video: Fix BGPS value after skipping BIOS (fixes mgba.io/i/1717) - GBA: Add missing RTC overrides for Legendz games - GBA BIOS: Implement dummy sound driver calls - GBA BIOS: Improve HLE BIOS timing
M src/gb/io.csrc/gb/io.c

@@ -203,7 +203,7 @@ if (gb->model & GB_MODEL_CGB) {

GBIOWrite(gb, REG_UNK4C, 0); GBIOWrite(gb, REG_JOYP, 0xFF); GBIOWrite(gb, REG_VBK, 0); - GBIOWrite(gb, REG_BCPS, 0); + GBIOWrite(gb, REG_BCPS, 0x80); GBIOWrite(gb, REG_OCPS, 0); GBIOWrite(gb, REG_SVBK, 1); GBIOWrite(gb, REG_HDMA1, 0xFF);