src/mess/drivers/cdi.c
| r6067 | r6068 | |
| 1176 | 1176 | case 0x29: // Read Mode 1 |
| 1177 | 1177 | case 0x2a: // Read Mode 2 |
| 1178 | 1178 | timer_adjust_oneshot(cdic_regs.interrupt_timer, ATTOTIME_IN_HZ(75), 0); // 75Hz = 1x CD-ROM speed |
| 1179 | cdic_regs.data_buffer &= 0xfffe; |
| 1179 | 1180 | break; |
| 1180 | 1181 | default: |
| 1181 | 1182 | fatalerror( "Unknown CDIC command: %02x\n", cdic_regs.command ); |
| r6067 | r6068 | |
| 1279 | 1280 | |
| 1280 | 1281 | if(slave_regs.polling_active) |
| 1281 | 1282 | { |
| 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); |
| 1283 | 1284 | } |
| 1284 | 1285 | } |
| 1285 | 1286 | |
| r6067 | r6068 | |
| 1336 | 1337 | |
| 1337 | 1338 | if(slave_regs.polling_active) |
| 1338 | 1339 | { |
| 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); |
| 1340 | 1341 | } |
| 1341 | 1342 | } |
| 1342 | 1343 | |