src/mess/drivers/ql.c
| r3127 | r3128 | |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | | #include "cpu/i8039/i8039.h" |
| 19 | #include "cpu/mcs48/mcs48.h" |
| 20 | 20 | #include "cpu/m68000/m68000.h" |
| 21 | 21 | #include "devices/cartslot.h" |
| 22 | 22 | #include "devices/microdrv.h" |
| r3127 | r3128 | |
| 202 | 202 | return data; |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | | static 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 | | |
| 212 | 205 | /* Memory Maps */ |
| 213 | 206 | |
| 214 | 207 | static ADDRESS_MAP_START( ql_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3127 | r3128 | |
| 238 | 231 | static ADDRESS_MAP_START( ipc_io_map, ADDRESS_SPACE_IO, 8 ) |
| 239 | 232 | AM_RANGE(0x00, 0x7f) AM_WRITE(ipc_w) |
| 240 | 233 | 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) |
| 246 | 238 | ADDRESS_MAP_END |
| 247 | 239 | |
| 248 | 240 | /* Input Ports */ |