src/mess/machine/isa.c
| r10800 | r10801 | |
| 133 | 133 | m_isa_device[pos] = card; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | #define memory_install_readwrite8_device_handler_mask(space, device, start, end, mask, mirror, rhandler, whandler, unitmask) \ |
| 137 | const_cast<address_space *>(space)->install_legacy_handler(*(device), start, end, mask, mirror, rhandler, #rhandler, whandler, #whandler, unitmask) |
| 138 | |
| 136 | 139 | void isa8_device::install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, write8_device_func whandler) |
| 137 | 140 | { |
| 138 | 141 | int buswidth = device_memory(m_maincpu)->space_config(AS_PROGRAM)->m_databus_width; |
| 139 | 142 | switch(buswidth) |
| 140 | 143 | { |
| 141 | 144 | case 8: |
| 142 | | memory_install_readwrite8_device_handler(cpu_get_address_space(m_maincpu, ADDRESS_SPACE_IO), dev, start, end, mask, mirror, rhandler, whandler ); |
| 145 | memory_install_readwrite8_device_handler_mask(cpu_get_address_space(m_maincpu, ADDRESS_SPACE_IO), dev, start, end, mask, mirror, rhandler, whandler, 0); |
| 143 | 146 | break; |
| 144 | | |
| 147 | case 16: |
| 148 | memory_install_readwrite8_device_handler_mask(cpu_get_address_space(m_maincpu, ADDRESS_SPACE_IO), dev, start, end, mask, mirror, rhandler, whandler, 0xffff); |
| 149 | break; |
| 145 | 150 | default: |
| 146 | 151 | fatalerror("ISA8: Bus width %d not supported", buswidth); |
| 147 | 152 | break; |
src/mess/drivers/genpc.c
| r10800 | r10801 | |
| 233 | 233 | |
| 234 | 234 | static MACHINE_CONFIG_START( pccga, genpc_state ) |
| 235 | 235 | /* basic machine hardware */ |
| 236 | | MCFG_CPU_ADD("maincpu", I8088, 4772720) |
| 237 | | MCFG_CPU_PROGRAM_MAP(pc8_map) |
| 238 | | MCFG_CPU_IO_MAP(pc8_io) |
| 236 | MCFG_CPU_ADD("maincpu", I8086, 4772720) |
| 237 | MCFG_CPU_PROGRAM_MAP(pc16_map) |
| 238 | MCFG_CPU_IO_MAP(pc16_io) |
| 239 | 239 | MCFG_CPU_CONFIG(i86_address_mask) |
| 240 | 240 | |
| 241 | 241 | MCFG_MACHINE_START(genpc) |
| r10800 | r10801 | |
| 253 | 253 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 254 | 254 | |
| 255 | 255 | MCFG_ISA8_BUS_ADD("isa", "maincpu", isabus_intf) |
| 256 | MCFG_ISA8_BUS_DEVICE("isa", 1, "com", ISA8_COM) |
| 257 | MCFG_ISA8_BUS_DEVICE("isa", 2, "fdc", ISA8_FDC) |
| 258 | MCFG_ISA8_BUS_DEVICE("isa", 3, "hdc", ISA8_HDC) |
| 256 | 259 | |
| 257 | 260 | /* sound hardware */ |
| 258 | 261 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r10800 | r10801 | |
| 286 | 289 | |
| 287 | 290 | MCFG_I8255A_ADD( "ppi8255", genpc_ppi8255_interface ) |
| 288 | 291 | |
| 292 | MCFG_ISA8_BUS_ADD("isa", "maincpu", isabus_intf) |
| 293 | MCFG_ISA8_BUS_DEVICE("isa", 1, "com", ISA8_COM) |
| 294 | MCFG_ISA8_BUS_DEVICE("isa", 2, "fdc", ISA8_FDC) |
| 295 | MCFG_ISA8_BUS_DEVICE("isa", 3, "hdc", ISA8_HDC) |
| 289 | 296 | /* video hardware */ |
| 290 | 297 | MCFG_FRAGMENT_ADD( pcvideo_vga ) |
| 291 | 298 | |