git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 0e6803aaa9d4fe83a53407786d7c3b7989db7295
parent bd6843444f7e3cf3d67a312a93110af8fea9148e
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Mon,  2 Jan 2023 00:53:51 +0200

Add comment

Diffstat:
MCore/memory.c3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/Core/memory.c b/Core/memory.c @@ -777,6 +777,9 @@ uint8_t GB_read_memory(GB_gameboy_t *gb, uint16_t addr) if (unlikely(gb->read_memory_callback)) { data = gb->read_memory_callback(gb, addr, data); } + + /* TODO: this is very naïve due to my lack of a cart that properly handles open-bus scnenarios, + but should be good enough */ if ((addr & 0xE000) != 0xA000 && bus_for_addr(gb, addr) == GB_BUS_MAIN && addr < 0xFF00) { gb->data_bus = data; }

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