From f3cafdfecc7a3b7b256c150b5c5452214a5af099 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 23 Jun 2018 11:27:38 -0400 Subject: add implementation for several missing instructions (still missing DAA) --- test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test.c') 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++) { -- cgit v1.2.3