summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-06-23 11:27:38 -0400
committerPaul Duncan <pabs@pablotron.org>2018-06-23 11:27:38 -0400
commitf3cafdfecc7a3b7b256c150b5c5452214a5af099 (patch)
treec7d6e8326a7ec857ae242b5dd3b0c0fee74b78d7 /test.c
parentc5615c88bd1a1db2088f52c8ba28dc3182ea245e (diff)
downloadgb-c-f3cafdfecc7a3b7b256c150b5c5452214a5af099.tar.bz2
gb-c-f3cafdfecc7a3b7b256c150b5c5452214a5af099.zip
add implementation for several missing instructions (still missing DAA)
Diffstat (limited to 'test.c')
-rw-r--r--test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test.c b/test.c
index e6d4cec..f20301c 100644
--- a/test.c
+++ b/test.c
@@ -10,7 +10,7 @@
#include "gb.h"
#define NUM_FRAMES 600
-#define SKIP_STEPS 83000000
+// #define SKIP_STEPS 1000000
#define NUM_STEPS 200000
static uint32_t
@@ -131,10 +131,12 @@ test_execute_steps(
gb_init(&ctx, rom_data, rom_size);
fprintf(stderr, "gb context initialized\n");
+#ifdef SKIP_STEPS
for (size_t i = 0; i < SKIP_STEPS; i++) {
// step cpu
gb_step(&ctx);
}
+#endif /* SKIP_STEPS */
// run cpu
for (size_t i = 0; i < NUM_STEPS; i++) {