mirror of https://github.com/LIJI32/SameBoy.git
Missing assertion in GB_safe_read_memory
This commit is contained in:
parent
117da602ca
commit
c3d83eae22
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue