diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-03-31 19:07:04 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-03-31 19:07:04 -0700 |
commit | 00fcc8fe1721094606844abfd0e43819a512a984 (patch) | |
tree | d3c6833f5e22a089da4e7a4f53d14e2ed330ff8e /debug.c | |
parent | 3fc254ce2e330f129ab0a8180946185b2f1f7927 (diff) |
Allow printing current frame number in 68K debugger
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |