summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.c b/test.c
index 247529c..8979a99 100644
--- a/test.c
+++ b/test.c
@@ -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