Mercurial > repos > blastem
changeset 2445:339eff5dc350
Get 68K test harness compiling again
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 13 Feb 2024 21:18:47 -0800 |
parents | ab577e2ed66a |
children | 18555c44a5e7 |
files | trans.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/trans.c Tue Feb 13 21:18:31 2024 -0800 +++ b/trans.c Tue Feb 13 21:18:47 2024 -0800 @@ -23,9 +23,14 @@ { } -#ifndef NEW_CORE +m68k_context *int_ack(m68k_context *context) +{ + return context; +} + m68k_context * sync_components(m68k_context * context, uint32_t address) { +#ifndef NEW_CORE if (context->current_cycle >= context->target_cycle) { puts("hit cycle limit"); exit(0); @@ -34,8 +39,8 @@ context->target_cycle = context->current_cycle; } return context; +#endif } -#endif m68k_context *reset_handler(m68k_context *context) { @@ -82,7 +87,7 @@ memmap[1].flags = MMAP_READ | MMAP_WRITE | MMAP_CODE; memmap[1].buffer = malloc(64 * 1024); memset(memmap[1].buffer, 0, 64 * 1024); - init_m68k_opts(&opts, memmap, 2, 1); + init_m68k_opts(&opts, memmap, 2, 1, sync_components, int_ack); m68k_context * context = init_68k_context(&opts, reset_handler); context->mem_pointers[0] = memmap[0].buffer; context->mem_pointers[1] = memmap[1].buffer;