From 0e6803aaa9d4fe83a53407786d7c3b7989db7295 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Mon, 2 Jan 2023 00:53:51 +0200 Subject: [PATCH] Add comment --- Core/memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/memory.c b/Core/memory.c index 3131b77..d249204 100644 --- 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; }