SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit c3d83eae228c300178ba6eefb223b304346d04b0 parent 117da602ca1de742a61221790646da6241adf6b0 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 23 Nov 2024 15:45:54 +0200 Missing assertion in GB_safe_read_memory Diffstat:
| M | Core/memory.c | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/Core/memory.c b/Core/memory.c @@ -819,6 +819,8 @@ uint8_t GB_read_memory(GB_gameboy_t *gb, uint16_t addr) uint8_t GB_safe_read_memory(GB_gameboy_t *gb, uint16_t addr) { + GB_ASSERT_NOT_RUNNING_OTHER_THREAD(gb) + if (unlikely(addr == 0xFF00 + GB_IO_JOYP)) { return gb->io_registers[GB_IO_JOYP]; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.