Mercurial > repos > blastem
diff debug.c @ 865:305c85c0b954
Allow 68K debug print to read from arbitrary memory regions
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 06 Nov 2015 11:44:51 -0800 |
parents | 1416c4261d5b |
children | bacd67a82d58 |
line wrap: on
line diff
--- 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);