# HG changeset patch # User Michael Pavone # Date 1446839091 28800 # Node ID 305c85c0b954bb59951a977e57bec9e9771c4483 # Parent 40703069bb68903825710e9c4466595c2e73813a Allow 68K debug print to read from arbitrary memory regions diff -r 40703069bb68 -r 305c85c0b954 debug.c --- a/debug.c Thu Nov 05 19:35:48 2015 -0800 +++ b/debug.c Fri Nov 06 11:44:51 2015 -0800 @@ -123,7 +123,8 @@ 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);