X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2F940ctl.c;h=4a571ffd8838408984ac29a5eb6fc5b72bf79655;hb=b13a934cb86e271a92ef674eb9f428a8e8060f97;hp=8c8b18b1b16871ab89f301e0e6fe5f571fa9ffa1;hpb=7481dd3a117922274a69040085644ce388a7aab9;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); }