summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-06-21 20:13:04 -0400
committerPaul Duncan <pabs@pablotron.org>2018-06-21 20:13:04 -0400
commita41aa781303b1ffb4923c3728f5b0dc7e022add4 (patch)
tree0b166aa1e5f5c64bd693092d5faed4ee69c9f7f2 /test.c
parent827be7304a4c40b6465951e55195caab1d666f86 (diff)
downloadgb-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.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