comparison debug.c @ 2054:8ee7ecbf3f21 segacd

Implement enough of Sega CD gate array and Sub CPU to pass Sik's Mode 1 test ROM
author Michael Pavone <pavone@retrodev.com>
date Tue, 18 Jan 2022 00:03:50 -0800
parents 3a46ff899fa6
children ff32a90260c9
comparison
equal deleted inserted replaced
2053:3414a4423de1 2054:8ee7ecbf3f21
738 debugger_print(context, format_char, param, address); 738 debugger_print(context, format_char, param, address);
739 } else { 739 } else {
740 m68k_disasm(&inst, input_buf); 740 m68k_disasm(&inst, input_buf);
741 printf("%X: %s\n", address, input_buf); 741 printf("%X: %s\n", address, input_buf);
742 } 742 }
743 743
744 break; 744 break;
745 case 'n': 745 case 'n':
746 if (inst.op == M68K_RTS) { 746 if (inst.op == M68K_RTS) {
747 after = m68k_read_long(context->aregs[7], context); 747 after = m68k_read_long(context->aregs[7], context);
748 } else if (inst.op == M68K_RTE || inst.op == M68K_RTR) { 748 } else if (inst.op == M68K_RTE || inst.op == M68K_RTR) {
1010 char input_buf[1024]; 1010 char input_buf[1024];
1011 m68kinst inst; 1011 m68kinst inst;
1012 1012
1013 init_terminal(); 1013 init_terminal();
1014 1014
1015 sync_components(context, 0); 1015 context->options->sync_components(context, 0);
1016 genesis_context *gen = context->system; 1016 genesis_context *gen = context->system;
1017 vdp_force_update_framebuffer(gen->vdp); 1017 vdp_force_update_framebuffer(gen->vdp);
1018 //probably not necessary, but let's play it safe 1018 //probably not necessary, but let's play it safe
1019 address &= 0xFFFFFF; 1019 address &= 0xFFFFFF;
1020 if (address == branch_t) { 1020 if (address == branch_t) {