src/mess/drivers/abc80x.c
| r8819 | r8820 | |
| 546 | 546 | |
| 547 | 547 | static ADDRESS_MAP_START( abc806_io_map, ADDRESS_SPACE_IO, 8 ) |
| 548 | 548 | ADDRESS_MAP_UNMAP_HIGH |
| 549 | | AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_inp_r, abcbus_utp_w) |
| 550 | | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_stat_r, abcbus_cs_w) |
| 551 | | AM_RANGE(0x02, 0x02) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c1_w) |
| 552 | | AM_RANGE(0x03, 0x03) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c2_w) |
| 553 | | AM_RANGE(0x04, 0x04) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c3_w) |
| 554 | | AM_RANGE(0x05, 0x05) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c4_w) |
| 549 | AM_RANGE(0x00, 0x00) AM_MIRROR(0xff18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_inp_r, abcbus_utp_w) |
| 550 | AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_stat_r, abcbus_cs_w) |
| 551 | AM_RANGE(0x02, 0x02) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c1_w) |
| 552 | AM_RANGE(0x03, 0x03) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c2_w) |
| 553 | AM_RANGE(0x04, 0x04) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c3_w) |
| 554 | AM_RANGE(0x05, 0x05) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c4_w) |
| 555 | 555 | AM_RANGE(0x06, 0x06) AM_MIRROR(0xff18) AM_WRITE(abc806_hrs_w) |
| 556 | | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_DEVREAD(ABCBUS_TAG, abcbus_rst_r) AM_WRITE(abc806_hrc_w) |
| 556 | AM_RANGE(0x07, 0x07) AM_MIRROR(0xff18) AM_DEVREAD(ABCBUS_TAG, abcbus_rst_r) AM_WRITE(abc806_hrc_w) |
| 557 | 557 | AM_RANGE(0x20, 0x23) AM_MIRROR(0xff0c) AM_DEVREADWRITE(Z80DART_TAG, z80dart_ba_cd_r, z80dart_ba_cd_w) |
| 558 | 558 | AM_RANGE(0x31, 0x31) AM_MIRROR(0xff06) AM_DEVREAD(MC6845_TAG, mc6845_register_r) |
| 559 | 559 | AM_RANGE(0x34, 0x34) AM_MIRROR(0xff00) AM_MASK(0xff00) AM_READWRITE(abc806_mai_r, abc806_mao_w) |
| r8819 | r8820 | |
| 1363 | 1363 | |
| 1364 | 1364 | if (address >= 0x7800 && address < 0x8000) |
| 1365 | 1365 | { |
| 1366 | | direct.explicit_configure(0x7800, 0x8000, 0x7fff, memory_region(machine, Z80_TAG)); |
| 1366 | direct.explicit_configure(0x7800, 0x7fff, 0x7ff, *direct.space().m_machine.region(Z80_TAG)); |
| 1367 | 1367 | |
| 1368 | 1368 | if (!state->fetch_charram) |
| 1369 | 1369 | { |
| r8819 | r8820 | |
| 1391 | 1391 | { |
| 1392 | 1392 | if (address >= 0x7800 && address < 0x8000) |
| 1393 | 1393 | { |
| 1394 | | direct.explicit_configure(0x7800, 0x8000, 0x7fff, memory_region(machine, Z80_TAG)); |
| 1394 | direct.explicit_configure(0x7800, 0x7fff, 0x7ff, *direct.space().m_machine.region(Z80_TAG)); |
| 1395 | 1395 | return ~0; |
| 1396 | 1396 | } |
| 1397 | 1397 | } |
| r8819 | r8820 | |
| 1410 | 1410 | |
| 1411 | 1411 | if (address >= 0x7800 && address < 0x8000) |
| 1412 | 1412 | { |
| 1413 | | direct.explicit_configure(0x7800, 0x8000, 0x7fff, memory_region(machine, Z80_TAG)); |
| 1413 | direct.explicit_configure(0x7800, 0x7fff, 0x7ff, *direct.space().m_machine.region(Z80_TAG)); |
| 1414 | 1414 | |
| 1415 | 1415 | if (!state->fetch_charram) |
| 1416 | 1416 | { |
| r8819 | r8820 | |
| 1432 | 1432 | |
| 1433 | 1433 | static DRIVER_INIT( abc800 ) |
| 1434 | 1434 | { |
| 1435 | | cputag_get_address_space(machine, Z80_TAG, ADDRESS_SPACE_PROGRAM)->set_direct_update_handler(direct_update_delegate_create_static(abc800_direct_update_handler, *machine)); |
| 1435 | address_space *program = machine->device<cpu_device>(Z80_TAG)->space(AS_PROGRAM); |
| 1436 | program->set_direct_update_handler(direct_update_delegate_create_static(abc800_direct_update_handler, *machine)); |
| 1436 | 1437 | } |
| 1437 | 1438 | |
| 1438 | 1439 | static DRIVER_INIT( abc802 ) |
| 1439 | 1440 | { |
| 1440 | | cputag_get_address_space(machine, Z80_TAG, ADDRESS_SPACE_PROGRAM)->set_direct_update_handler(direct_update_delegate_create_static(abc802_direct_update_handler, *machine)); |
| 1441 | address_space *program = machine->device<cpu_device>(Z80_TAG)->space(AS_PROGRAM); |
| 1442 | program->set_direct_update_handler(direct_update_delegate_create_static(abc802_direct_update_handler, *machine)); |
| 1441 | 1443 | } |
| 1442 | 1444 | |
| 1443 | 1445 | static DRIVER_INIT( abc806 ) |
| 1444 | 1446 | { |
| 1445 | | cputag_get_address_space(machine, Z80_TAG, ADDRESS_SPACE_PROGRAM)->set_direct_update_handler(direct_update_delegate_create_static(abc806_direct_update_handler, *machine)); |
| 1447 | address_space *program = machine->device<cpu_device>(Z80_TAG)->space(AS_PROGRAM); |
| 1448 | program->set_direct_update_handler(direct_update_delegate_create_static(abc806_direct_update_handler, *machine)); |
| 1446 | 1449 | } |
| 1447 | 1450 | |
| 1448 | 1451 | /* System Drivers */ |