mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-02-02 21:22:40 +01:00
tiny emulation speedup (restored)
This commit is contained in:
parent
414a53ca1f
commit
e774dc03ae
@ -221,8 +221,11 @@ void fm_restore(void)
|
|||||||
/* write FM chip */
|
/* write FM chip */
|
||||||
void fm_write(unsigned int cpu, unsigned int address, unsigned int data)
|
void fm_write(unsigned int cpu, unsigned int address, unsigned int data)
|
||||||
{
|
{
|
||||||
snd.fm.curStage = fm_sample_cnt(cpu);
|
if (address & 1)
|
||||||
fm_update();
|
{
|
||||||
|
snd.fm.curStage = fm_sample_cnt(cpu);
|
||||||
|
fm_update();
|
||||||
|
}
|
||||||
_YM2612_Write(address & 3, data);
|
_YM2612_Write(address & 3, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user