Previous 15994 Revisions Next

r14868 Sunday 8th April, 2012 at 04:36:39 UTC by R. Belmont
Apple IIgs: User-configured slots now available. Boot 6.0.1 and use the Slots Control Panel to set the desired slots to Your Card to use. [R. Belmont]
[src/mess/drivers]apple2gs.c
[src/mess/machine]apple2.c apple2gs.c

src/mess/machine/apple2gs.c
r14867r14868
477477         }
478478         break;
479479
480        case 0xf2:
481            break;
482
480483      default:
481484         fatalerror("ADB command 0x%02x unimplemented", state->m_adb_command);
482485         break;
r14867r14868
599602               state->m_adb_command_length = 2;
600603               break;
601604
605                case 0xf2:
606                    break;
607
602608            default:
603609               fatalerror("ADB command 0x%02x unimplemented", data);
604610               break;
605611
606612         }
607613
608         if (state->m_adb_command_length > 0)
614            if (state->m_adb_command_length > 0)
609615         {
610616            state->m_adb_state = ADBSTATE_INCOMMAND;
611617            if (LOG_ADB)
r14867r14868
15501556   }
15511557   else if ((address & 0x000F00) == 0x000000)   // accessing C0xx?
15521558   {
1553      state->m_a2_cnxx_slot = -1;
15541559      result = apple2gs_c0xx_r(machine.device("maincpu")->memory().space(AS_PROGRAM), address);
15551560   }
15561561   else
r14867r14868
15671572         {
15681573            // accessing a slot mapped to internal, let's put back the internal ROM
15691574            state->m_a2_cnxx_slot = -1;
1575                apple2_update_memory(space.machine());
15701576            result = *apple2gs_getslotmem(machine, address);
15711577         }
15721578         else
15731579         {
15741580            // 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)
15761582            {
15771583               state->m_a2_cnxx_slot = slot;
1584                    apple2_update_memory(space.machine());
15781585            }
15791586
15801587            if (slotdevice != NULL)
r14867r14868
15951602         if ((address & 0xfff) == 0xfff)
15961603         {
15971604            state->m_a2_cnxx_slot = -1;
1605                apple2_update_memory(space.machine());
15981606         }
15991607
16001608         if ( state->m_a2_cnxx_slot >= 0 && state->m_a2_cnxx_slot <= 7 )
r14867r14868
16261634   if ((address & 0xfff) == 0xfff)
16271635   {
16281636      state->m_a2_cnxx_slot = -1;
1637        apple2_update_memory(space.machine());
16291638   }
16301639
16311640   if ((state->m_shadow & 0x40) && ((address & 0xF00000) == 0x000000))
src/mess/machine/apple2.c
r14867r14868
458458   slotnum = ((offset>>8) & 0xf) + 1;
459459    slotdevice = state->m_a2bus->get_a2bus_card(slotnum);
460460                                 
461   if (state->m_a2_cnxx_slot == -1)
461   if (1) //state->m_a2_cnxx_slot == -1)
462462   {
463463//        printf("c1xx_r: cnxx_slot now %d\n", slotnum);
464464      state->m_a2_cnxx_slot = slotnum;
r14867r14868
516516   slotnum = ((offset>>8) & 0xf) + 4;
517517    slotdevice = state->m_a2bus->get_a2bus_card(slotnum);
518518
519   if (state->m_a2_cnxx_slot == -1)
519   if (1) //state->m_a2_cnxx_slot == -1)
520520   {
521521      state->m_a2_cnxx_slot = slotnum;
522522//        printf("c4xx_r: cnxx_slot now %d\n", slotnum);
r14867r14868
554554   slotnum = ((offset>>8) & 0xf) + 4;
555555    slotdevice = state->m_a2bus->get_a2bus_card(slotnum);
556556
557   if (state->m_a2_cnxx_slot == -1)
557   if (1) //state->m_a2_cnxx_slot == -1)
558558   {
559559//        printf("c4xx_w: cnxx_slot now %d\n", slotnum);
560560      state->m_a2_cnxx_slot = slotnum;
src/mess/drivers/apple2gs.c
r14867r14868
188188    DEVCB_NULL
189189};
190190
191#if 0
192191static SLOT_INTERFACE_START(apple2_cards)
193192    SLOT_INTERFACE("diskii", A2BUS_DISKII)  /* Disk II Controller Card */
194193    SLOT_INTERFACE("mockingboard", A2BUS_MOCKINGBOARD)  /* Sweet Micro Systems Mockingboard */
195194    SLOT_INTERFACE("cffa2", A2BUS_CFFA2)  /* CFFA2000 Compact Flash for Apple II (www.dreher.net), 65C02/65816 firmware */
196195    SLOT_INTERFACE("cffa202", A2BUS_CFFA2_6502)  /* CFFA2000 Compact Flash for Apple II (www.dreher.net), 6502 firmware */
197196    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 */
199198SLOT_INTERFACE_END
200#endif
201199
202200static MACHINE_CONFIG_START( apple2gs, apple2gs_state )
203201   /* basic machine hardware */
r14867r14868
235233   /* slot devices */
236234    MCFG_A2BUS_BUS_ADD("a2bus", "maincpu", a2bus_intf)
237235    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)
239243
240244    MCFG_IWM_ADD("fdc", apple2_fdc_interface)
241245

Previous 15994 Revisions Next


© 1998-2018 The MESS Team