mirror of
https://github.com/libretro/FBNeo.git
synced 2025-03-09 04:43:17 +00:00
d_darius2: scan cpu control register, d_taitomisc: use state-able BurnRand instead of rand()
This commit is contained in:
parent
fd29618b9f
commit
ca838c4484
@ -2026,6 +2026,8 @@ static INT32 Darius2Scan(INT32 nAction, INT32 *pnMin)
|
||||
|
||||
if (TaitoNumYM2610) BurnYM2610Scan(nAction, pnMin);
|
||||
|
||||
SCAN_VAR(TaitoCpuACtrl);
|
||||
|
||||
SCAN_VAR(TaitoInput);
|
||||
SCAN_VAR(TaitoZ80Bank);
|
||||
SCAN_VAR(nTaitoCyclesDone);
|
||||
|
@ -3294,7 +3294,7 @@ static UINT8 __fastcall Topspeed68K2ReadByte(UINT32 a)
|
||||
INT32 Offset = (a - 0x900000) >> 1;
|
||||
|
||||
switch (Offset) {
|
||||
case 0x000: return rand() & 0xff;
|
||||
case 0x000: return BurnRandom() & 0xff;
|
||||
case 0x101: return 0x55;
|
||||
}
|
||||
}
|
||||
@ -5943,7 +5943,7 @@ static INT32 DariusFrame()
|
||||
}
|
||||
|
||||
ZetOpen(0);
|
||||
BurnTimerUpdate(i * (nTaitoCyclesTotal[2] / nInterleave));
|
||||
BurnTimerUpdate((i + 1) * (nTaitoCyclesTotal[2] / nInterleave));
|
||||
ZetClose();
|
||||
|
||||
nCurrentCPU = 3;
|
||||
@ -5962,7 +5962,6 @@ static INT32 DariusFrame()
|
||||
ZetClose();
|
||||
|
||||
ZetOpen(1);
|
||||
ZetRun(nTaitoCyclesTotal[3] - nTaitoCyclesDone[3]);
|
||||
if (pBurnSoundOut) MSM5205Render(0, pBurnSoundOut, nBurnSoundLen);
|
||||
ZetClose();
|
||||
|
||||
@ -6160,7 +6159,9 @@ static INT32 TaitoMiscScan(INT32 nAction, INT32 *pnMin)
|
||||
SCAN_VAR(DariusVol);
|
||||
SCAN_VAR(DariusPan);
|
||||
SCAN_VAR(PC090OJSpriteCtrl); // for jumping
|
||||
|
||||
z80ctc_scan();
|
||||
BurnRandomScan(nAction);
|
||||
}
|
||||
|
||||
if (nAction & ACB_WRITE && banked_z80) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user