diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-23 11:27:38 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-23 11:27:38 -0400 |
commit | f3cafdfecc7a3b7b256c150b5c5452214a5af099 (patch) | |
tree | c7d6e8326a7ec857ae242b5dd3b0c0fee74b78d7 /test.c | |
parent | c5615c88bd1a1db2088f52c8ba28dc3182ea245e (diff) | |
download | gb-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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++) { |