move more globals to PicoInterface

similar reasons as before
This commit is contained in:
notaz 2017-10-22 02:04:26 +03:00
parent 075672bf9f
commit 6311a3baf5
27 changed files with 244 additions and 247 deletions

View file

@ -131,7 +131,7 @@ static void z80_sms_out(unsigned short a, unsigned char d)
case 0x40:
case 0x41:
if ((d & 0x90) == 0x90 && PsndPsgLine < Pico.m.scanline)
if ((d & 0x90) == 0x90 && Pico.snd.psg_line < Pico.m.scanline)
PsndDoPSG(Pico.m.scanline);
SN76496Write(d);
break;
@ -300,14 +300,14 @@ void PicoFrameMS(void)
}
// 224 because of how it's done for MD...
if (y == 224 && PsndOut)
if (y == 224 && PicoIn.sndOut)
PsndGetSamplesMS();
cycles_aim += cycles_line;
cycles_done += z80_run((cycles_aim - cycles_done) >> 8) << 8;
}
if (PsndOut && PsndPsgLine < lines)
if (PicoIn.sndOut && Pico.snd.psg_line < lines)
PsndDoPSG(lines - 1);
}