mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-01 02:02:01 +02:00
Missing assertion in GB_safe_read_memory
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user