Previous 15994 Revisions Next

r13268 Tuesday 15th November, 2011 at 21:12:38 UTC by Michael Zapf
ti99: Removed unused slot variable in gromportg_w (no whatsnew)
[src/mess/machine/ti99]gromport.c

src/mess/machine/ti99/gromport.c
r13267r13268
16611661*/
16621662WRITE8_DEVICE_HANDLER(gromportg_w)
16631663{
1664   int slot;
1664//  int slot;
16651665   cartridge_t *cartridge;
16661666   ti99_multicart_state *cartslots = get_safe_token(device);
16671667
r13267r13268
16691669   // 1001 1wbb bbbb bbr0
16701670
16711671   cartridge_slot_set(device, (UINT8)((offset>>2) & 0x00ff));
1672   slot = cartslots->active_slot;
1672//  slot = cartslots->active_slot;
16731673
1674   // The selection mechanism of the console checks the different GROM address
1675   // bases, and when it finds different data, it concludes that there is
1676   // indeed a multi-cartridge facility. Empty slots return 0 at all
1677   // addresses.
1678   // Unfortunately, TI's cartridge selection mechanism has an undesirable
1679   // side-effect which we work around in this implementation.
1680   // When we have only one cartridge we would like to get only the option to
1681   // select this cartridge and not an option to switch to the next one (which
1682   // would immediately cycle back to cartridge 1). However, the console
1683   // routines always show the switch option when any two slots have different
1684   // content, and this is the case with only one cartridge (slot 2 will then
1685   // be filled with zeros).
1686   // So if next_free_slot==1, we have one cartridge in slot 0.
1687   // In that case we trick the OS to believe that the addressed
1688   // cartridge appears at all locations which causes it to assume a
1689   // standard single cartslot.
1674//  if (cartslots->fixed_slot==AUTO && cartslots->next_free_slot==1)
1675//      slot=0;
16901676
1691   if (cartslots->fixed_slot==AUTO && cartslots->next_free_slot==1)
1692      slot=0;
1693
16941677   // Handle the GRAM Kracker
16951678   if ((cartslots->gk_slot != -1) && (input_port_read(device->machine(), "CARTSLOT")==CART_GK))
16961679   {
r13267r13268
16991682   }
17001683
17011684   // We need to send the write request to all attached cartridges
1685   // so the slot is irrelevant here. (We don't have GRAM cartridges,
1686   // anyway, so it's just used for setting the adddress)
17021687   for (int j=0; j < NUMBER_OF_CARTRIDGE_SLOTS; j++)
17031688   {
17041689      cartridge = &cartslots->cartridge[j];

Previous 15994 Revisions Next


© 1998-2018 The MESS Team