Mercurial > repos > blastem
comparison debug.c @ 2072:cc13c100b027
Merge Sega CD branch now that it sort of works
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Jan 2022 22:29:29 -0800 |
parents | 8ee7ecbf3f21 |
children | ff32a90260c9 |
comparison
equal
deleted
inserted
replaced
2052:3748a2a8a4b7 | 2072:cc13c100b027 |
---|---|
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) { |