bugfixes, state load for new mode

git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@468 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-05-27 21:38:46 +00:00
parent 704c0ea3ac
commit 6850f9ec3b
2 changed files with 9 additions and 19 deletions

View file

@ -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);
}