Mercurial > repos > blastem
comparison debug.c @ 2459:cb62730d5c99
Initial work on Copera emulation
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 21 Feb 2024 23:42:19 -0800 |
parents | 1978bd770023 |
children | d74d3998482c |
comparison
equal
deleted
inserted
replaced
2458:09c9d2c6bac0 | 2459:cb62730d5c99 |
---|---|
4828 debug_var *var; | 4828 debug_var *var; |
4829 switch (current_system->type) | 4829 switch (current_system->type) |
4830 { | 4830 { |
4831 case SYSTEM_GENESIS: | 4831 case SYSTEM_GENESIS: |
4832 case SYSTEM_SEGACD: | 4832 case SYSTEM_SEGACD: |
4833 case SYSTEM_PICO: | |
4834 case SYSTEM_COPERA: | |
4833 //check if this is the main CPU | 4835 //check if this is the main CPU |
4834 if (context->system == current_system) { | 4836 if (context->system == current_system) { |
4835 genesis_context *gen = context->system; | 4837 genesis_context *gen = context->system; |
4836 root->other_roots = tern_insert_ptr(root->other_roots, "z80", find_z80_root(gen->z80)); | 4838 if (current_system->type == SYSTEM_GENESIS || current_system->type == SYSTEM_SEGACD) { |
4839 root->other_roots = tern_insert_ptr(root->other_roots, "z80", find_z80_root(gen->z80)); | |
4840 root->other_roots = tern_insert_ptr(root->other_roots, "io", find_io_root(&gen->io)); | |
4841 } | |
4837 root->other_roots = tern_insert_ptr(root->other_roots, "vdp", find_vdp_root(gen->vdp)); | 4842 root->other_roots = tern_insert_ptr(root->other_roots, "vdp", find_vdp_root(gen->vdp)); |
4838 root->other_roots = tern_insert_ptr(root->other_roots, "ym", find_ym2612_root(gen->ym)); | |
4839 root->other_roots = tern_insert_ptr(root->other_roots, "psg", find_psg_root(gen->psg)); | 4843 root->other_roots = tern_insert_ptr(root->other_roots, "psg", find_psg_root(gen->psg)); |
4840 root->other_roots = tern_insert_ptr(root->other_roots, "io", find_io_root(&gen->io)); | 4844 uint32_t num_commands = NUM_GENESIS; |
4841 add_commands(root, genesis_commands, NUM_GENESIS); | 4845 if (current_system->type == SYSTEM_PICO || current_system->type == SYSTEM_COPERA) { |
4846 num_commands -= 3; | |
4847 } else { | |
4848 root->other_roots = tern_insert_ptr(root->other_roots, "ym", find_ym2612_root(gen->ym)); | |
4849 } | |
4850 add_commands(root, genesis_commands, num_commands); | |
4842 var = calloc(1, sizeof(debug_var)); | 4851 var = calloc(1, sizeof(debug_var)); |
4843 var->get = debug_frame_get; | 4852 var->get = debug_frame_get; |
4844 var->ptr = gen->vdp; | 4853 var->ptr = gen->vdp; |
4845 root->variables = tern_insert_ptr(root->variables, "frame", var); | 4854 root->variables = tern_insert_ptr(root->variables, "frame", var); |
4846 if (current_system->type == SYSTEM_SEGACD) { | 4855 if (current_system->type == SYSTEM_SEGACD) { |