src/mess/machine/apple2gs.c
| r14867 | r14868 | |
| 477 | 477 | } |
| 478 | 478 | break; |
| 479 | 479 | |
| 480 | case 0xf2: |
| 481 | break; |
| 482 | |
| 480 | 483 | default: |
| 481 | 484 | fatalerror("ADB command 0x%02x unimplemented", state->m_adb_command); |
| 482 | 485 | break; |
| r14867 | r14868 | |
| 599 | 602 | state->m_adb_command_length = 2; |
| 600 | 603 | break; |
| 601 | 604 | |
| 605 | case 0xf2: |
| 606 | break; |
| 607 | |
| 602 | 608 | default: |
| 603 | 609 | fatalerror("ADB command 0x%02x unimplemented", data); |
| 604 | 610 | break; |
| 605 | 611 | |
| 606 | 612 | } |
| 607 | 613 | |
| 608 | | if (state->m_adb_command_length > 0) |
| 614 | if (state->m_adb_command_length > 0) |
| 609 | 615 | { |
| 610 | 616 | state->m_adb_state = ADBSTATE_INCOMMAND; |
| 611 | 617 | if (LOG_ADB) |
| r14867 | r14868 | |
| 1550 | 1556 | } |
| 1551 | 1557 | else if ((address & 0x000F00) == 0x000000) // accessing C0xx? |
| 1552 | 1558 | { |
| 1553 | | state->m_a2_cnxx_slot = -1; |
| 1554 | 1559 | result = apple2gs_c0xx_r(machine.device("maincpu")->memory().space(AS_PROGRAM), address); |
| 1555 | 1560 | } |
| 1556 | 1561 | else |
| r14867 | r14868 | |
| 1567 | 1572 | { |
| 1568 | 1573 | // accessing a slot mapped to internal, let's put back the internal ROM |
| 1569 | 1574 | state->m_a2_cnxx_slot = -1; |
| 1575 | apple2_update_memory(space.machine()); |
| 1570 | 1576 | result = *apple2gs_getslotmem(machine, address); |
| 1571 | 1577 | } |
| 1572 | 1578 | else |
| 1573 | 1579 | { |
| 1574 | 1580 | // accessing a slot mapped to "Your Card", C800 should belong to that card |
| 1575 | | if (state->m_a2_cnxx_slot == -1) |
| 1581 | if (1) //state->m_a2_cnxx_slot == -1) |
| 1576 | 1582 | { |
| 1577 | 1583 | state->m_a2_cnxx_slot = slot; |
| 1584 | apple2_update_memory(space.machine()); |
| 1578 | 1585 | } |
| 1579 | 1586 | |
| 1580 | 1587 | if (slotdevice != NULL) |
| r14867 | r14868 | |
| 1595 | 1602 | if ((address & 0xfff) == 0xfff) |
| 1596 | 1603 | { |
| 1597 | 1604 | state->m_a2_cnxx_slot = -1; |
| 1605 | apple2_update_memory(space.machine()); |
| 1598 | 1606 | } |
| 1599 | 1607 | |
| 1600 | 1608 | if ( state->m_a2_cnxx_slot >= 0 && state->m_a2_cnxx_slot <= 7 ) |
| r14867 | r14868 | |
| 1626 | 1634 | if ((address & 0xfff) == 0xfff) |
| 1627 | 1635 | { |
| 1628 | 1636 | state->m_a2_cnxx_slot = -1; |
| 1637 | apple2_update_memory(space.machine()); |
| 1629 | 1638 | } |
| 1630 | 1639 | |
| 1631 | 1640 | if ((state->m_shadow & 0x40) && ((address & 0xF00000) == 0x000000)) |
src/mess/machine/apple2.c
| r14867 | r14868 | |
| 458 | 458 | slotnum = ((offset>>8) & 0xf) + 1; |
| 459 | 459 | slotdevice = state->m_a2bus->get_a2bus_card(slotnum); |
| 460 | 460 | |
| 461 | | if (state->m_a2_cnxx_slot == -1) |
| 461 | if (1) //state->m_a2_cnxx_slot == -1) |
| 462 | 462 | { |
| 463 | 463 | // printf("c1xx_r: cnxx_slot now %d\n", slotnum); |
| 464 | 464 | state->m_a2_cnxx_slot = slotnum; |
| r14867 | r14868 | |
| 516 | 516 | slotnum = ((offset>>8) & 0xf) + 4; |
| 517 | 517 | slotdevice = state->m_a2bus->get_a2bus_card(slotnum); |
| 518 | 518 | |
| 519 | | if (state->m_a2_cnxx_slot == -1) |
| 519 | if (1) //state->m_a2_cnxx_slot == -1) |
| 520 | 520 | { |
| 521 | 521 | state->m_a2_cnxx_slot = slotnum; |
| 522 | 522 | // printf("c4xx_r: cnxx_slot now %d\n", slotnum); |
| r14867 | r14868 | |
| 554 | 554 | slotnum = ((offset>>8) & 0xf) + 4; |
| 555 | 555 | slotdevice = state->m_a2bus->get_a2bus_card(slotnum); |
| 556 | 556 | |
| 557 | | if (state->m_a2_cnxx_slot == -1) |
| 557 | if (1) //state->m_a2_cnxx_slot == -1) |
| 558 | 558 | { |
| 559 | 559 | // printf("c4xx_w: cnxx_slot now %d\n", slotnum); |
| 560 | 560 | state->m_a2_cnxx_slot = slotnum; |
src/mess/drivers/apple2gs.c
| r14867 | r14868 | |
| 188 | 188 | DEVCB_NULL |
| 189 | 189 | }; |
| 190 | 190 | |
| 191 | | #if 0 |
| 192 | 191 | static SLOT_INTERFACE_START(apple2_cards) |
| 193 | 192 | SLOT_INTERFACE("diskii", A2BUS_DISKII) /* Disk II Controller Card */ |
| 194 | 193 | SLOT_INTERFACE("mockingboard", A2BUS_MOCKINGBOARD) /* Sweet Micro Systems Mockingboard */ |
| 195 | 194 | SLOT_INTERFACE("cffa2", A2BUS_CFFA2) /* CFFA2000 Compact Flash for Apple II (www.dreher.net), 65C02/65816 firmware */ |
| 196 | 195 | SLOT_INTERFACE("cffa202", A2BUS_CFFA2_6502) /* CFFA2000 Compact Flash for Apple II (www.dreher.net), 6502 firmware */ |
| 197 | 196 | SLOT_INTERFACE("memexp", A2BUS_MEMEXP) /* Apple II Memory Expansion Card */ |
| 198 | | SLOT_INTERFACE("scsi", A2BUS_SCSI) /* Apple II SCSI Card */ |
| 197 | // SLOT_INTERFACE("scsi", A2BUS_SCSI) /* Apple II SCSI Card */ |
| 199 | 198 | SLOT_INTERFACE_END |
| 200 | | #endif |
| 201 | 199 | |
| 202 | 200 | static MACHINE_CONFIG_START( apple2gs, apple2gs_state ) |
| 203 | 201 | /* basic machine hardware */ |
| r14867 | r14868 | |
| 235 | 233 | /* slot devices */ |
| 236 | 234 | MCFG_A2BUS_BUS_ADD("a2bus", "maincpu", a2bus_intf) |
| 237 | 235 | MCFG_A2BUS_ONBOARD_ADD("a2bus", "sl0", A2BUS_LANG, NULL) |
| 238 | | // MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, NULL, NULL) |
| 236 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple2_cards, NULL, NULL) |
| 237 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple2_cards, NULL, NULL) |
| 238 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple2_cards, NULL, NULL) |
| 239 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl4", apple2_cards, NULL, NULL) |
| 240 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, NULL, NULL) |
| 241 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl6", apple2_cards, NULL, NULL) |
| 242 | MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, NULL, NULL) |
| 239 | 243 | |
| 240 | 244 | MCFG_IWM_ADD("fdc", apple2_fdc_interface) |
| 241 | 245 | |