summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-31 19:07:04 -0700
committerMichael Pavone <pavone@retrodev.com>2017-03-31 19:07:04 -0700
commit00fcc8fe1721094606844abfd0e43819a512a984 (patch)
treed3c6833f5e22a089da4e7a4f53d14e2ed330ff8e
parent3fc254ce2e330f129ab0a8180946185b2f1f7927 (diff)
Allow printing current frame number in 68K debugger
-rw-r--r--debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 18db34f..1832fe2 100644
--- a/debug.c
+++ b/debug.c
@@ -117,6 +117,9 @@ void debugger_print(m68k_context *context, char format_char, char *param)
}
} else if(param[0] == 'c') {
value = context->current_cycle;
+ } else if(param[0] == 'f') {
+ genesis_context *gen = context->system;
+ value = gen->vdp->frame;
} else if ((param[0] == '0' && param[1] == 'x') || param[0] == '$') {
uint32_t p_addr = strtol(param+(param[0] == '0' ? 2 : 1), NULL, 16);
if ((p_addr & 0xFFFFFF) == 0xC00004) {