Whoops, this function was missing

This commit is contained in:
Lior Halphon 2019-11-08 16:14:16 +02:00
parent 143e1f88a8
commit c802361800
1 changed files with 5 additions and 0 deletions

View File

@ -422,6 +422,11 @@ static GB_read_function_t * const read_map[] =
read_ram, read_high_memory, /* EXXX FXXX */
};
void GB_set_read_memory_callback(GB_gameboy_t *gb, GB_read_memory_callback_t callback)
{
gb->read_memory_callback = callback;
}
uint8_t GB_read_memory(GB_gameboy_t *gb, uint16_t addr)
{
if (gb->n_watchpoints) {