debug menu unified, more debug tools

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@545 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-07-14 21:00:24 +00:00
parent 4c436138e4
commit f579f7b891
17 changed files with 759 additions and 622 deletions

View file

@ -10,26 +10,6 @@ extern unsigned int s68k_poll_adclk;
void (*PicoMCDopenTray)(void) = NULL;
int (*PicoMCDcloseTray)(void) = NULL;
#define dump_ram(ram,fname) \
{ \
int i, d; \
FILE *f; \
\
for (i = 0; i < sizeof(ram); i+=2) { \
d = (ram[i]<<8) | ram[i+1]; \
*(unsigned short *)(ram+i) = d; \
} \
f = fopen(fname, "wb"); \
if (f) { \
fwrite(ram, 1, sizeof(ram), f); \
fclose(f); \
} \
for (i = 0; i < sizeof(ram); i+=2) { \
d = (ram[i]<<8) | ram[i+1]; \
*(unsigned short *)(ram+i) = d; \
} \
}
PICO_INTERNAL void PicoInitMCD(void)
{
@ -37,13 +17,9 @@ PICO_INTERNAL void PicoInitMCD(void)
Init_CD_Driver();
}
PICO_INTERNAL void PicoExitMCD(void)
{
End_CD_Driver();
//dump_ram(Pico_mcd->prg_ram, "prg.bin");
//dump_ram(Pico.ram, "ram.bin");
}
PICO_INTERNAL void PicoPowerMCD(void)