mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
allow compiling without 32x and sms code
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@877 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
46bcb89971
commit
f3a57b2d6c
10 changed files with 74 additions and 13 deletions
|
@ -188,10 +188,11 @@ enum cmd_ret_e {
|
|||
|
||||
static int do_print(struct pdb_cpu *cpu, const char *args)
|
||||
{
|
||||
int i;
|
||||
elprintf(EL_STATUS, "cpu %d (%s)", cpu->id, cpu->name);
|
||||
#ifndef NO_32X
|
||||
if (cpu->type == PDBCT_SH2) {
|
||||
SH2 *sh2 = cpu->context;
|
||||
int i;
|
||||
printf("PC,SR %08x, %03x\n", sh2->pc, sh2->sr & 0x3ff);
|
||||
for (i = 0; i < 16/2; i++)
|
||||
printf("R%d,%2d %08x,%08x\n", i, i + 8, sh2->r[i], sh2->r[i + 8]);
|
||||
|
@ -200,6 +201,7 @@ static int do_print(struct pdb_cpu *cpu, const char *args)
|
|||
Pico32x.sh2irq_mask[sh2->is_slave]);
|
||||
printf("cycles %d/%d (%d)\n", sh2->cycles_done, sh2->cycles_aim, (signed int)sh2->sr >> 12);
|
||||
}
|
||||
#endif
|
||||
return CMDRET_DONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue