mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
more sms wip, better ROM detect, line callback change
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@762 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
200772b790
commit
87b0845f37
19 changed files with 414 additions and 186 deletions
25
pico/debug.c
25
pico/debug.c
|
@ -270,11 +270,19 @@ void PDebugShowSprite(unsigned short *screen, int stride, int which)
|
|||
|
||||
void PDebugDumpMem(void)
|
||||
{
|
||||
dump_ram(Pico.ram, "dumps/ram.bin");
|
||||
dump_ram_noswab(Pico.zram, "dumps/zram.bin");
|
||||
dump_ram(Pico.vram, "dumps/vram.bin");
|
||||
dump_ram(Pico.cram, "dumps/cram.bin");
|
||||
dump_ram(Pico.vsram,"dumps/vsram.bin");
|
||||
|
||||
if (PicoAHW & PAHW_SMS)
|
||||
{
|
||||
dump_ram_noswab(Pico.vramb, "dumps/vram.bin");
|
||||
}
|
||||
else
|
||||
{
|
||||
dump_ram(Pico.ram, "dumps/ram.bin");
|
||||
dump_ram(Pico.vram, "dumps/vram.bin");
|
||||
dump_ram(Pico.vsram,"dumps/vsram.bin");
|
||||
}
|
||||
|
||||
if (PicoAHW & PAHW_MCD)
|
||||
{
|
||||
|
@ -296,6 +304,9 @@ void PDebugZ80Frame(void)
|
|||
{
|
||||
int lines, line_sample;
|
||||
|
||||
if (PicoAHW & PAHW_SMS)
|
||||
return;
|
||||
|
||||
if (Pico.m.pal) {
|
||||
lines = 312;
|
||||
line_sample = 68;
|
||||
|
@ -332,3 +343,11 @@ void PDebugZ80Frame(void)
|
|||
timers_cycle();
|
||||
}
|
||||
|
||||
void PDebugCPUStep(void)
|
||||
{
|
||||
if (PicoAHW & PAHW_SMS)
|
||||
z80_run(1);
|
||||
else
|
||||
SekStepM68k();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue