notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more sms wip, better ROM detect, line callback change
[picodrive.git]
/
pico
/
debug.c
diff --git
a/pico/debug.c
b/pico/debug.c
index
debaa9b
..
d6b91bd
100644
(file)
--- a/
pico/debug.c
+++ b/
pico/debug.c
@@
-270,11
+270,19
@@
void PDebugShowSprite(unsigned short *screen, int stride, int which)
void PDebugDumpMem(void)
{
void PDebugDumpMem(void)
{
- dump_ram(Pico.ram, "dumps/ram.bin");
dump_ram_noswab(Pico.zram, "dumps/zram.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.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)
{
if (PicoAHW & PAHW_MCD)
{
@@
-296,6
+304,9
@@
void PDebugZ80Frame(void)
{
int lines, line_sample;
{
int lines, line_sample;
+ if (PicoAHW & PAHW_SMS)
+ return;
+
if (Pico.m.pal) {
lines = 312;
line_sample = 68;
if (Pico.m.pal) {
lines = 312;
line_sample = 68;
@@
-332,3
+343,11
@@
void PDebugZ80Frame(void)
timers_cycle();
}
timers_cycle();
}
+void PDebugCPUStep(void)
+{
+ if (PicoAHW & PAHW_SMS)
+ z80_run(1);
+ else
+ SekStepM68k();
+}
+