summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-06-27 23:21:22 -0400
committerPaul Duncan <pabs@pablotron.org>2018-06-27 23:21:22 -0400
commit5362a91b05721940441365c5cf84218e4bdb7549 (patch)
tree8f891f8976c5d7f24c4dafa1ec55c69c525a363f /test.c
parentfa0db0d91035b8ff66bd40608ecf8c835b74799b (diff)
downloadgb-c-5362a91b05721940441365c5cf84218e4bdb7549.tar.bz2
gb-c-5362a91b05721940441365c5cf84218e4bdb7549.zip
add on_oam_wb()HEADmaster
Diffstat (limited to 'test.c')
-rw-r--r--test.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/test.c b/test.c
index c798bba..31d1675 100644
--- a/test.c
+++ b/test.c
@@ -9,7 +9,7 @@
#include "lodepng.h"
#include "gb.h"
-#define SKIP_FRAMES 120
+#define SKIP_FRAMES 1200
#define NUM_FRAMES 60
// #define SKIP_STEPS 1000000
#define NUM_STEPS 300000
@@ -148,14 +148,26 @@ on_rst(
* }
*/
+/*
+ * 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 void
-on_mmu_wb(
+on_oam_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);
+ printf("oam_wb: addr = 0x%04X, val = 0x%02X\n", addr, val);
}
static const gb_config_t
@@ -170,7 +182,8 @@ EXECUTE_CONFIG = {
.on_set_cpu_state = on_set_cpu_state,
.on_rst = on_rst,
// .on_mmu_rb = on_mmu_rb,
- .on_mmu_wb = on_mmu_wb,
+ // .on_mmu_wb = on_mmu_wb,
+ .on_oam_wb = on_oam_wb,
};
static void