Previous 15994 Revisions Next

r10886 Monday 21st March, 2011 at 03:12:45 UTC by Jonathan Gevaryahu
prose2k: properly offset the interrupts; i8251 rxrdy is ir1, txempty is ir2, txrdy is ir3. upd7720 p0 is ir0 but is maybe masked by something? and needs more investigation, as well as adding a p0 device line to the upd772x core.
[src/mess/drivers]tsispch.c

src/mess/drivers/tsispch.c
r10885r10886
1717*  Correctly load UPD7720 roms as UPD7725 data - done, this is utterly disgusting code.
1818*  Attached i8251a uart at u15
1919*  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
2126*  Hooked the terminal to the i8251a uart at u15
2227*
2328*  TODO:
r10885r10886
2530*  Attach the other i8251a uart (assuming it is hooked to the hardware at all!)
2631*  Correctly implement UPD7720 cpu core to avoid needing revolting conversion code
2732*  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
2934*  Add other dipswitches and jumpers (these may actually just control clock dividers for the two 8251s)
3035*  Everything else
3136*
r10885r10886
5257#include "machine/pic8259.h"
5358#include "machine/terminal.h"
5459
60// defines
61#undef VERBOSE
62#undef DEBUG_DSP
63#undef DEBUG_DSP_W
64
5565/*
5666   Devices and handlers
5767 */
r10885r10886
6171*****************************************************************************/
6272static WRITE_LINE_DEVICE_HANDLER( i8251_rxrdy_int )
6373{
64   pic8259_ir2_w(device->machine->device("pic8259"), state);
74   pic8259_ir1_w(device->machine->device("pic8259"), state);
6575}
6676
6777static WRITE_LINE_DEVICE_HANDLER( i8251_txempty_int )
6878{
69   pic8259_ir3_w(device->machine->device("pic8259"), state);
79   pic8259_ir2_w(device->machine->device("pic8259"), state);
7080}
7181
7282static WRITE_LINE_DEVICE_HANDLER( i8251_txrdy_int )
7383{
74   pic8259_ir4_w(device->machine->device("pic8259"), state);
84   pic8259_ir3_w(device->machine->device("pic8259"), state);
7585}
7686
7787const msm8251_interface msm8251_config =
r10885r10886
171181WRITE16_MEMBER( tsispch_state::dsp_data_w )
172182{
173183   upd7725_device *upd7725 = machine->device<upd7725_device>("dsp");
184#ifdef DEBUG_DSP_W
185   fprintf(stderr, "dsp data write: %02x\n", data);
186#endif
174187   upd7725->snesdsp_write(true, data);
175188}
176189

Previous 15994 Revisions Next


© 1998-2018 The MESS Team