mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
move more globals to PicoInterface
similar reasons as before
This commit is contained in:
parent
075672bf9f
commit
6311a3baf5
27 changed files with 244 additions and 247 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue