Mercurial > repos > blastem
comparison debug.c @ 548:a3afee2271ce
Initial work on the x86-32 target
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 18 Feb 2014 21:37:31 -0800 |
parents | 62860044337d |
children | 9324f721efa6 |
comparison
equal
deleted
inserted
replaced
547:3090d016c9e9 | 548:a3afee2271ce |
---|---|
79 *buf = 0; | 79 *buf = 0; |
80 return; | 80 return; |
81 } | 81 } |
82 } | 82 } |
83 } | 83 } |
84 | |
85 #ifdef X86_64 | |
84 | 86 |
85 void zdebugger_print(z80_context * context, char format_char, char * param) | 87 void zdebugger_print(z80_context * context, char format_char, char * param) |
86 { | 88 { |
87 uint32_t value; | 89 uint32_t value; |
88 char format[8]; | 90 char format[8]; |
457 break; | 459 break; |
458 } | 460 } |
459 } | 461 } |
460 return context; | 462 return context; |
461 } | 463 } |
464 | |
465 #endif | |
462 | 466 |
463 m68k_context * debugger(m68k_context * context, uint32_t address) | 467 m68k_context * debugger(m68k_context * context, uint32_t address) |
464 { | 468 { |
465 static char last_cmd[1024]; | 469 static char last_cmd[1024]; |
466 char input_buf[1024]; | 470 char input_buf[1024]; |
699 vdp_print_reg_explain(gen->vdp); | 703 vdp_print_reg_explain(gen->vdp); |
700 break; | 704 break; |
701 } | 705 } |
702 break; | 706 break; |
703 } | 707 } |
708 #ifdef X86_64 | |
704 case 'z': { | 709 case 'z': { |
705 genesis_context * gen = context->system; | 710 genesis_context * gen = context->system; |
706 //Z80 debug commands | 711 //Z80 debug commands |
707 switch(input_buf[1]) | 712 switch(input_buf[1]) |
708 { | 713 { |
729 } | 734 } |
730 zdebugger_print(gen->z80, input_buf[2] == '/' ? input_buf[3] : 0, param); | 735 zdebugger_print(gen->z80, input_buf[2] == '/' ? input_buf[3] : 0, param); |
731 } | 736 } |
732 break; | 737 break; |
733 } | 738 } |
739 #endif | |
734 case 'q': | 740 case 'q': |
735 puts("Quitting"); | 741 puts("Quitting"); |
736 exit(0); | 742 exit(0); |
737 break; | 743 break; |
738 default: | 744 default: |