SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 40b7e2512640952e8559829d9ae96a0762da778c parent 06621d1dfe63ff3b7ef27c670ad5899ed3c65ec8 Author: Lior Halphon <LIJI32@gmail.com> Date: Wed, 10 May 2023 00:55:04 +0300 Accurate emulation of SVBK, fixes audio in Flyeyes (unlicensed game) Diffstat:
| M | Core/memory.c | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Core/memory.c b/Core/memory.c @@ -665,7 +665,8 @@ static uint8_t read_high_memory(GB_gameboy_t *gb, uint16_t addr) if (!gb->cgb_mode) { return 0xFF; } - return gb->cgb_ram_bank | ~0x7; + + return gb->io_registers[GB_IO_SVBK]; case GB_IO_VBK: if (!GB_is_cgb(gb)) { return 0xFF; @@ -1593,6 +1594,7 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value) if (!gb->cgb_ram_bank) { gb->cgb_ram_bank++; } + gb->io_registers[GB_IO_SVBK] = value | ~0x7; } return; case GB_IO_VBK:
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.