X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fdebug.c;h=50cbaf3872f2e10868a834640446bab49edcdd47;hb=ee3c39efd2cf51cd654b6240f6fb595673f10f45;hp=82ae8a5571ec24fb6af59db280d65b3259269142;hpb=88fd63ad10faa746ef9d7ad7d98a72e51fe2aa86;p=picodrive.git diff --git a/pico/debug.c b/pico/debug.c index 82ae8a5..50cbaf3 100644 --- a/pico/debug.c +++ b/pico/debug.c @@ -201,7 +201,7 @@ void PDebugShowPalette(unsigned short *screen, int stride) int x, y; Pico.m.dirtyPal = 1; - if (PicoAHW & PAHW_SMS) + if (PicoIn.AHW & PAHW_SMS) PicoDoHighPal555M4(); else PicoDoHighPal555(1, 0, est); @@ -328,7 +328,7 @@ void PDebugDumpMem(void) dump_ram_noswab(PicoMem.zram, "dumps/zram.bin"); dump_ram(PicoMem.cram, "dumps/cram.bin"); - if (PicoAHW & PAHW_SMS) + if (PicoIn.AHW & PAHW_SMS) { dump_ram_noswab(PicoMem.vramb, "dumps/vram.bin"); } @@ -339,7 +339,7 @@ void PDebugDumpMem(void) dump_ram(PicoMem.vsram,"dumps/vsram.bin"); } - if (PicoAHW & PAHW_MCD) + if (PicoIn.AHW & PAHW_MCD) { dump_ram(Pico_mcd->prg_ram, "dumps/prg_ram.bin"); if (Pico_mcd->s68k_regs[3]&4) // 1M mode? @@ -355,7 +355,7 @@ void PDebugDumpMem(void) } #ifndef NO_32X - if (PicoAHW & PAHW_32X) + if (PicoIn.AHW & PAHW_32X) { dump_ram(Pico32xMem->sdram, "dumps/sdram.bin"); dump_ram(Pico32xMem->dram[0], "dumps/dram0.bin"); @@ -371,7 +371,7 @@ void PDebugZ80Frame(void) { int lines, line_sample; - if (PicoAHW & PAHW_SMS) + if (PicoIn.AHW & PAHW_SMS) return; if (Pico.m.pal) { @@ -385,24 +385,24 @@ void PDebugZ80Frame(void) z80_resetCycles(); PsndStartFrame(); - if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoOpt&POPT_EN_Z80)) + if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) PicoSyncZ80(Pico.t.m68c_cnt + line_sample * 488); - if (PsndOut) + if (PicoIn.sndOut) PsndGetSamples(line_sample); - if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoOpt&POPT_EN_Z80)) { + if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) { PicoSyncZ80(Pico.t.m68c_cnt + 224 * 488); z80_int(); } - if (PsndOut) + if (PicoIn.sndOut) PsndGetSamples(224); // sync z80 - if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoOpt&POPT_EN_Z80)) { + if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) { Pico.t.m68c_cnt += Pico.m.pal ? 151809 : 127671; // cycles adjusted for converter PicoSyncZ80(Pico.t.m68c_cnt); } - if (PsndOut && ym2612.dacen && PsndDacLine < lines) + if (PicoIn.sndOut && ym2612.dacen && Pico.snd.dac_line < lines) PsndDoDAC(lines - 1); PsndDoPSG(lines - 1); @@ -412,7 +412,7 @@ void PDebugZ80Frame(void) void PDebugCPUStep(void) { - if (PicoAHW & PAHW_SMS) + if (PicoIn.AHW & PAHW_SMS) z80_run_nr(1); else SekStepM68k();