diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-11-06 11:44:51 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-11-06 11:44:51 -0800 |
commit | 60f60cd2c5236b0ba5654174c5faeb4a2d218fc9 (patch) | |
tree | 190db69cae5e45edda2d226280ad63426d638d9a /debug.c | |
parent | 7f6f656a622c0fb0de10273a6e476b1545a17b96 (diff) |
Allow 68K debug print to read from arbitrary memory regions
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -123,7 +123,8 @@ void debugger_print(m68k_context *context, char format_char, char *param) genesis_context * gen = context->system; value = vdp_hv_counter_read(gen->vdp); } else { - value = read_dma_value(p_addr/2); + uint16_t *word = get_native_pointer(p_addr & 0xFFFFFE, (void **)context->mem_pointers, &context->options->gen); + value = *word; } } else { fprintf(stderr, "Unrecognized parameter to p: %s\n", param); |