Previous 15994 Revisions Next

r3128 Sunday 31st August, 2008 at 18:32:28 UTC by Curt Coder
[QL] Changed to use the new MCS48 cpu core, still failing at duplicate save state assert.
[src/mess/drivers]ql.c

src/mess/drivers/ql.c
r3127r3128
1616*/
1717
1818#include "driver.h"
19#include "cpu/i8039/i8039.h"
19#include "cpu/mcs48/mcs48.h"
2020#include "cpu/m68000/m68000.h"
2121#include "devices/cartslot.h"
2222#include "devices/microdrv.h"
r3127r3128
202202   return data;
203203}
204204
205static READ8_HANDLER( ipc_ea_r )
206{
207   // connected to ground via a 10K resistor, but needs to be 1 because the logic is inverted in i8039.c
208
209   return 1;
210}
211
212205/* Memory Maps */
213206
214207static ADDRESS_MAP_START( ql_map, ADDRESS_SPACE_PROGRAM, 8 )
r3127r3128
238231static ADDRESS_MAP_START( ipc_io_map, ADDRESS_SPACE_IO, 8 )
239232   AM_RANGE(0x00, 0x7f) AM_WRITE(ipc_w)
240233   AM_RANGE(0x27, 0x28) AM_READNOP // IPC reads these to set P0 (bus) to Hi-Z mode
241   AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(ipc_port1_w)
242   AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(ipc_port2_r, ipc_port2_w)
243   AM_RANGE(I8039_t1, I8039_t1) AM_READ(ipc_t1_r)
244   AM_RANGE(I8039_bus, I8039_bus) AM_READ(ipc_bus_r)
245   AM_RANGE(I8039_ea, I8039_ea) AM_READ(ipc_ea_r)
234   AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(ipc_port1_w)
235   AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE(ipc_port2_r, ipc_port2_w)
236   AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(ipc_t1_r)
237   AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READ(ipc_bus_r)
246238ADDRESS_MAP_END
247239
248240/* Input Ports */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team