mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
z80/ym2612 reset handling improved
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@540 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f8a6410104
commit
be297089d0
3 changed files with 42 additions and 40 deletions
|
@ -1668,6 +1668,8 @@ void YM2612Init_(int clock, int rate)
|
|||
ym2612.OPN.ST.clock = clock;
|
||||
ym2612.OPN.ST.rate = rate;
|
||||
|
||||
OPNSetPres( 6*24 );
|
||||
|
||||
/* Extend handler */
|
||||
YM2612ResetChip_();
|
||||
}
|
||||
|
@ -1680,7 +1682,6 @@ void YM2612ResetChip_(void)
|
|||
|
||||
memset(ym2612.REGS, 0, sizeof(ym2612.REGS));
|
||||
|
||||
OPNSetPres( 6*24 );
|
||||
set_timers( 0x30 ); /* mode 0 , timer reset */
|
||||
ym2612.REGS[0x27] = 0x30;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue