mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
bugfixes, state load for new mode
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@468 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
538a6098d4
commit
453d2a6eda
9 changed files with 32 additions and 44 deletions
|
@ -178,24 +178,11 @@ void YM2612PicoStateLoad_940(void)
|
|||
{
|
||||
UINT8 *REGS = YM2612GetRegs();
|
||||
|
||||
int i;
|
||||
|
||||
/* make sure JOB940_PICOSTATELOAD gets done before next JOB940_YM2612UPDATEONE */
|
||||
add_job_940(JOB940_PICOSTATELOAD);
|
||||
if (CHECK_BUSY(JOB940_PICOSTATELOAD)) wait_busy_940(JOB940_PICOSTATELOAD);
|
||||
|
||||
writebuff_ptr = 0;
|
||||
|
||||
// feed all the registers and update internal state
|
||||
for(i = 0; i < 0x100; i++) {
|
||||
YM2612Write_940(0, i, -1);
|
||||
YM2612Write_940(1, REGS[i], -1);
|
||||
}
|
||||
for(i = 0; i < 0x100; i++) {
|
||||
YM2612Write_940(2, i, -1);
|
||||
YM2612Write_940(3, REGS[i|0x100], -1);
|
||||
}
|
||||
|
||||
addr_A1 = *(INT32 *) (REGS + 0x200);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue