diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-21 20:13:04 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-21 20:13:04 -0400 |
commit | a41aa781303b1ffb4923c3728f5b0dc7e022add4 (patch) | |
tree | 0b166aa1e5f5c64bd693092d5faed4ee69c9f7f2 /test.c | |
parent | 827be7304a4c40b6465951e55195caab1d666f86 (diff) | |
download | gb-c-a41aa781303b1ffb4923c3728f5b0dc7e022add4.tar.bz2 gb-c-a41aa781303b1ffb4923c3728f5b0dc7e022add4.zip |
add auto-pc handling, implement pc for ops
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 |