mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-05-02 19:09:37 +02:00
move more globals to PicoInterface
similar reasons as before
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user