src/mess/drivers/tsispch.c
| r10885 | r10886 | |
| 17 | 17 | * Correctly load UPD7720 roms as UPD7725 data - done, this is utterly disgusting code. |
| 18 | 18 | * Attached i8251a uart at u15 |
| 19 | 19 | * Added dipswitch array S4 |
| 20 | | * Attached 8259 PIC - done, IR2 hooked to 8251 rxrdy, others missing |
| 20 | * Attached 8259 PIC |
| 21 | * IR0 = upd7720 p0 pin masked by something, not hooked up yet |
| 22 | * IR1 = i8251 rxrdy |
| 23 | * IR2 = i8251 txempty |
| 24 | * IR3 = i8251 txrdy |
| 25 | * IR4,5,6,7 unknown so far, not hooked up yet |
| 21 | 26 | * Hooked the terminal to the i8251a uart at u15 |
| 22 | 27 | * |
| 23 | 28 | * TODO: |
| r10885 | r10886 | |
| 25 | 30 | * Attach the other i8251a uart (assuming it is hooked to the hardware at all!) |
| 26 | 31 | * Correctly implement UPD7720 cpu core to avoid needing revolting conversion code |
| 27 | 32 | * Correct memory maps and io maps - partly done |
| 28 | | * 8259 PIC: figure out where the other ints come from |
| 33 | * 8259 PIC: figure out where IR4-7 come from |
| 29 | 34 | * Add other dipswitches and jumpers (these may actually just control clock dividers for the two 8251s) |
| 30 | 35 | * Everything else |
| 31 | 36 | * |
| r10885 | r10886 | |
| 52 | 57 | #include "machine/pic8259.h" |
| 53 | 58 | #include "machine/terminal.h" |
| 54 | 59 | |
| 60 | // defines |
| 61 | #undef VERBOSE |
| 62 | #undef DEBUG_DSP |
| 63 | #undef DEBUG_DSP_W |
| 64 | |
| 55 | 65 | /* |
| 56 | 66 | Devices and handlers |
| 57 | 67 | */ |
| r10885 | r10886 | |
| 61 | 71 | *****************************************************************************/ |
| 62 | 72 | static WRITE_LINE_DEVICE_HANDLER( i8251_rxrdy_int ) |
| 63 | 73 | { |
| 64 | | pic8259_ir2_w(device->machine->device("pic8259"), state); |
| 74 | pic8259_ir1_w(device->machine->device("pic8259"), state); |
| 65 | 75 | } |
| 66 | 76 | |
| 67 | 77 | static WRITE_LINE_DEVICE_HANDLER( i8251_txempty_int ) |
| 68 | 78 | { |
| 69 | | pic8259_ir3_w(device->machine->device("pic8259"), state); |
| 79 | pic8259_ir2_w(device->machine->device("pic8259"), state); |
| 70 | 80 | } |
| 71 | 81 | |
| 72 | 82 | static WRITE_LINE_DEVICE_HANDLER( i8251_txrdy_int ) |
| 73 | 83 | { |
| 74 | | pic8259_ir4_w(device->machine->device("pic8259"), state); |
| 84 | pic8259_ir3_w(device->machine->device("pic8259"), state); |
| 75 | 85 | } |
| 76 | 86 | |
| 77 | 87 | const msm8251_interface msm8251_config = |
| r10885 | r10886 | |
| 171 | 181 | WRITE16_MEMBER( tsispch_state::dsp_data_w ) |
| 172 | 182 | { |
| 173 | 183 | upd7725_device *upd7725 = machine->device<upd7725_device>("dsp"); |
| 184 | #ifdef DEBUG_DSP_W |
| 185 | fprintf(stderr, "dsp data write: %02x\n", data); |
| 186 | #endif |
| 174 | 187 | upd7725->snesdsp_write(true, data); |
| 175 | 188 | } |
| 176 | 189 | |