diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-26 10:24:35 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-26 10:24:35 -0400 |
commit | 2994a7c6a45876b28f30864982244bbd21dc4a57 (patch) | |
tree | 07bfc22f64d431e462c20f9ff5bb35919e78f4be /test.c | |
parent | 986ba80832c3d355352fa3c936199f388f682a46 (diff) | |
download | gb-c-2994a7c6a45876b28f30864982244bbd21dc4a57.tar.bz2 gb-c-2994a7c6a45876b28f30864982244bbd21dc4a57.zip |
add on_mmu_{rb,wb}(), add gpu_is_active(), fix DEC SP
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -135,6 +135,28 @@ on_rst( printf("rst: addr = %04x\n", addr); } +/* + * static void + * on_mmu_rb( + * const gb_t * const ctx, + * const uint16_t addr, + * const uint8_t val + * ) { + * UNUSED(ctx); + * printf("mmu_rb: addr = 0x%04X, val = 0x%02X\n", addr, val); + * } + */ + +static void +on_mmu_wb( + const gb_t * const ctx, + const uint16_t addr, + const uint8_t val +) { + UNUSED(ctx); + printf("mmu_wb: addr = 0x%04X, val = 0x%02X\n", addr, val); +} + static const gb_config_t EXECUTE_CONFIG = { .on_set_rom_bank = on_set_rom_bank, @@ -146,6 +168,8 @@ EXECUTE_CONFIG = { .on_gpu_set_mode = on_gpu_set_mode, .on_set_cpu_state = on_set_cpu_state, .on_rst = on_rst, + // .on_mmu_rb = on_mmu_rb, + .on_mmu_wb = on_mmu_wb, }; static void |