From c9340928075f9558bbb4817f6c89298ed15ad77f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 25 Jun 2018 16:49:46 -0400 Subject: add on_rst(), minor CALL a16 speedup --- test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test.c') diff --git a/test.c b/test.c index 7a2ea70..824458d 100644 --- a/test.c +++ b/test.c @@ -126,6 +126,15 @@ on_set_cpu_state( printf("cpu state: PC = %04x, state = %d\n", ctx->cpu.rs[5], state); } +static void +on_rst( + const gb_t * const ctx, + const uint16_t addr +) { + UNUSED(ctx); + printf("rst: addr = %04x\n", addr); +} + static const gb_config_t EXECUTE_CONFIG = { .on_set_rom_bank = on_set_rom_bank, @@ -136,6 +145,7 @@ EXECUTE_CONFIG = { // .on_gpu_step = on_gpu_step, .on_gpu_set_mode = on_gpu_set_mode, .on_set_cpu_state = on_set_cpu_state, + .on_rst = on_rst, }; static void -- cgit v1.2.3