Previous 15994 Revisions Next

r6068 Wednesday 14th October, 2009 at 08:01:22 UTC by Harmony
[CDI] Tweaking input callback timing; fixes bizarre hangs in Pac-Panic, probably others [Harmony]
[src/mess/drivers]cdi.c

src/mess/drivers/cdi.c
r6067r6068
11761176               case 0x29: // Read Mode 1
11771177               case 0x2a: // Read Mode 2
11781178                  timer_adjust_oneshot(cdic_regs.interrupt_timer, ATTOTIME_IN_HZ(75), 0); // 75Hz = 1x CD-ROM speed
1179                  cdic_regs.data_buffer &= 0xfffe;
11791180                  break;
11801181               default:
11811182                  fatalerror( "Unknown CDIC command: %02x\n", cdic_regs.command );
r6067r6068
12791280
12801281   if(slave_regs.polling_active)
12811282   {
1282      slave_prepare_readback(machine, ATTOTIME_IN_HZ(10000), 0, 4, ((x & 0x380) >> 7) | (buttons << 4), x & 0x7f, (y & 0x380) >> 7, y & 0x7f, 0xf7);
1283      slave_prepare_readback(machine, attotime_zero, 0, 4, ((x & 0x380) >> 7) | (buttons << 4), x & 0x7f, (y & 0x380) >> 7, y & 0x7f, 0xf7);
12831284   }
12841285}
12851286
r6067r6068
13361337
13371338   if(slave_regs.polling_active)
13381339   {
1339      slave_prepare_readback(machine, ATTOTIME_IN_HZ(10000), 0, 4, (x & 0x380) >> 7, x & 0x7f, (y & 0x380) >> 7, y & 0x7f, 0xf7);
1340      //slave_prepare_readback(machine, attotime_zero, 0, 4, (x & 0x380) >> 7, x & 0x7f, (y & 0x380) >> 7, y & 0x7f, 0xf7);
13401341   }
13411342}
13421343

Previous 15994 Revisions Next


© 1998-2018 The MESS Team