diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -111,7 +111,7 @@ gb_dump_context( const gb_t * const ctx ) { for (int i = 0; RWS[i]; i++) { - printf("%s%s: 0x%04x", (!i) ? "" : ", ", RWS[i], ctx->cpu.rs[i]); + printf("%s%s: 0x%04X", (!i) ? "" : ", ", RWS[i], ctx->cpu.rs[i]); } printf("\n"); } @@ -132,11 +132,11 @@ test_execute_steps( // render frames for (size_t j = 0; j < NUM_STEPS; j++) { - // render frame - gb_step(&ctx); + // print context + gb_dump_context(&ctx); // render frame - gb_dump_context(&ctx); + gb_step(&ctx); } // free rom data |