src/mess/machine/dai.c
| r3792 | r3793 | |
| 29 | 29 | static UINT8 dai_paddle_select; |
| 30 | 30 | static UINT8 dai_paddle_enable; |
| 31 | 31 | static UINT8 dai_cassette_motor[2]; |
| 32 | static const device_config *dai_tms5501; |
| 32 | 33 | |
| 33 | 34 | |
| 34 | 35 | static DIRECT_UPDATE_HANDLER(dai_opbaseoverride) |
| 35 | 36 | { |
| 36 | | tms5501_set_pio_bit_7 (0, (input_port_read(space->machine, "IN8") & 0x04) ? 1:0); |
| 37 | tms5501_set_pio_bit_7 (dai_tms5501, (input_port_read(space->machine, "IN8") & 0x04) ? 1:0); |
| 37 | 38 | return address; |
| 38 | 39 | } |
| 39 | 40 | |
| r3792 | r3793 | |
| 41 | 42 | |
| 42 | 43 | WRITE8_HANDLER( dai_stack_interrupt_circuit_w ) |
| 43 | 44 | { |
| 44 | | tms5501_sensor (0, 1); |
| 45 | | tms5501_sensor (0, 0); |
| 45 | tms5501_sensor (dai_tms5501, 1); |
| 46 | tms5501_sensor (dai_tms5501, 0); |
| 46 | 47 | } |
| 47 | 48 | |
| 48 | 49 | static void dai_update_memory(running_machine *machine, int dai_rom_bank) |
| r3792 | r3793 | |
| 148 | 149 | memory_configure_bank(machine, 2, 0, 4, memory_region(machine, "main") + 0x010000, 0x1000); |
| 149 | 150 | |
| 150 | 151 | timer_set(machine, attotime_zero, NULL, 0, dai_bootstrap_callback); |
| 152 | |
| 153 | dai_tms5501 = device_list_find_by_tag( machine->config->devicelist, TMS5501, "tms5501" ); |
| 151 | 154 | } |
| 152 | 155 | |
| 153 | 156 | /*************************************************************************** |