diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-21 23:17:31 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-21 23:17:31 -0400 |
commit | a0b061cb35905c1f09fb07e9ef851280b1663a5b (patch) | |
tree | c2580d2a35fe69dadff8ffe37bc38ef56f712bd7 /test.c | |
parent | 1d5dce07c97ad0b8c7c63239e7ddc6d4cdff2d93 (diff) | |
download | gb-c-a0b061cb35905c1f09fb07e9ef851280b1663a5b.tar.bz2 gb-c-a0b061cb35905c1f09fb07e9ef851280b1663a5b.zip |
more op fixes
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -10,7 +10,8 @@ #include "gb.h" #define NUM_FRAMES 600 -#define NUM_STEPS 20000 +#define SKIP_STEPS 83000000 +#define NUM_STEPS 200000 static uint32_t file_size( @@ -130,12 +131,17 @@ test_execute_steps( gb_init(&ctx, rom_data, rom_size); fprintf(stderr, "gb context initialized\n"); - // render frames - for (size_t j = 0; j < NUM_STEPS; j++) { + for (size_t i = 0; i < SKIP_STEPS; i++) { + // step cpu + gb_step(&ctx); + } + + // run cpu + for (size_t i = 0; i < NUM_STEPS; i++) { // print context gb_dump_context(&ctx); - // render frame + // step cpu gb_step(&ctx); } |