X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2F940ctl.c;h=4a571ffd8838408984ac29a5eb6fc5b72bf79655;hb=6850f9ec3b7c97084f1f0567824c65aa56e7fabb;hp=8c8b18b1b16871ab89f301e0e6fe5f571fa9ffa1;hpb=704c0ea3ac613087727884269a02de463bb999a2;p=libpicofe.git diff --git a/gp2x/940ctl.c b/gp2x/940ctl.c index 8c8b18b..4a571ff 100644 --- a/gp2x/940ctl.c +++ b/gp2x/940ctl.c @@ -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); }