Previous 15994 Revisions Next

r15005 Monday 23rd April, 2012 at 01:16:02 UTC by R. Belmont
Apple II: A little internal modernization (nw)
[src/mess/drivers]apple2gs.c
[src/mess/includes]apple2.h
[src/mess/machine]apple2.c apple2gs.c

src/mess/machine/apple2gs.c
r15004r15005
10691069            }
10701070            break;
10711071
1072      default:
1073         result = apple2_c0xx_r(space, offset);
1072        default:
1073            if (offset < 0x80)
1074            {
1075                result = apple2_c0xx_r(space, offset);
1076            }
1077            else
1078            {
1079                result = apple2_c080_r(space, offset);
1080            }
10741081         break;
10751082   }
10761083
r15004r15005
12201227            break;
12211228
12221229      default:
1223         apple2_c0xx_w(space, offset, data);
1230            if (offset < 0x80)
1231            {
1232                apple2_c0xx_w(space, offset, data);
1233            }
1234            else
1235            {
1236                apple2_c080_w(space, offset, data);
1237            }
12241238         break;
12251239   }
12261240}
src/mess/machine/apple2.c
r15004r15005
4848static WRITE8_HANDLER ( apple2_auxram0400_w );
4949static WRITE8_HANDLER ( apple2_auxram2000_w );
5050
51static READ8_HANDLER ( apple2_c00x_r );
52static READ8_HANDLER ( apple2_c01x_r );
53static READ8_HANDLER ( apple2_c02x_r );
54static READ8_HANDLER ( apple2_c03x_r );
55static READ8_HANDLER ( apple2_c05x_r );
56static READ8_HANDLER ( apple2_c06x_r );
57static READ8_HANDLER ( apple2_c07x_r );
58
59static WRITE8_HANDLER ( apple2_c00x_w );
60static WRITE8_HANDLER ( apple2_c01x_w );
61static WRITE8_HANDLER ( apple2_c02x_w );
62static WRITE8_HANDLER ( apple2_c03x_w );
63static WRITE8_HANDLER ( apple2_c05x_w );
64static WRITE8_HANDLER ( apple2_c07x_w );
65
6651static READ8_HANDLER ( apple2_c1xx_r );
6752static WRITE8_HANDLER ( apple2_c1xx_w );
6853static READ8_HANDLER ( apple2_c3xx_r );
r15004r15005
351336   apple2_state *state = space->machine().driver_data<apple2_state>();
352337   if(!space->debugger_access())
353338   {
354      static const read8_space_func handlers[] =
339      static const read8_delegate handlers[] =
355340      {
356         apple2_c00x_r,
357         apple2_c01x_r,
358         apple2_c02x_r,
359         apple2_c03x_r,
360         NULL,
361         apple2_c05x_r,
362         apple2_c06x_r,
363         apple2_c07x_r
341         read8_delegate(FUNC(apple2_state::apple2_c00x_r), state),
342         read8_delegate(FUNC(apple2_state::apple2_c01x_r), state),
343         read8_delegate(FUNC(apple2_state::apple2_c02x_r), state),
344         read8_delegate(FUNC(apple2_state::apple2_c03x_r), state),
345         read8_delegate(FUNC(apple2_state::apple2_c03x_r), state),   // not called here, handled elsewhere
346         read8_delegate(FUNC(apple2_state::apple2_c05x_r), state),
347         read8_delegate(FUNC(apple2_state::apple2_c06x_r), state),
348         read8_delegate(FUNC(apple2_state::apple2_c07x_r), state)
364349      };
365      UINT8 result = 0x00;
366      int slotnum;
367      device_a2bus_card_interface *slotdevice;
368350
369      offset &= 0xFF;
351      offset &= 0x7F;
370352
371      if (offset < 0x80)
372      {
373         /* normal handler */
374         if (handlers[offset / 0x10])
375            result = handlers[offset / 0x10](space, offset % 0x10);
376      }
377      else
378      {
379         /* slot handler; identify the slot number */
380         slotnum = (offset - 0x80) / 0x10;
381
382         /* now identify the device */
383         slotdevice = state->m_a2bus->get_a2bus_card(slotnum);
384
385         /* and if we can, read from the slot */
386         if (slotdevice != NULL)
387            result = slotdevice->read_c0nx(*space, offset % 0x10);
388      }
389      return result;
353        /* normal handler */
354        if (offset / 0x10 != 4)
355        {
356            return handlers[offset / 0x10](*space, offset % 0x10, 0);
357        }
390358   }
391359
392360   return 0;
r15004r15005
397365WRITE8_HANDLER(apple2_c0xx_w)
398366{
399367   apple2_state *state = space->machine().driver_data<apple2_state>();
400   static const write8_space_func handlers[] =
368   static const write8_delegate handlers[] =
401369   {
402      apple2_c00x_w,
403      apple2_c01x_w,
404      apple2_c02x_w,
405      apple2_c03x_w,
406      NULL,
407      apple2_c05x_w,
408      NULL,
409      apple2_c07x_w
370      write8_delegate(FUNC(apple2_state::apple2_c00x_w), state),
371      write8_delegate(FUNC(apple2_state::apple2_c01x_w), state),
372      write8_delegate(FUNC(apple2_state::apple2_c02x_w), state),
373      write8_delegate(FUNC(apple2_state::apple2_c03x_w), state),
374      write8_delegate(FUNC(apple2_state::apple2_c03x_w), state),      // unused
375      write8_delegate(FUNC(apple2_state::apple2_c05x_w), state),
376      write8_delegate(FUNC(apple2_state::apple2_c05x_w), state),      // unused
377      write8_delegate(FUNC(apple2_state::apple2_c07x_w), state)
410378   };
411   int slotnum;
412   device_a2bus_card_interface *slotdevice;
413379
414   offset &= 0xFF;
380   offset &= 0x7F;
415381
416   if (offset < 0x80)
382    /* normal handler */
383    if (((offset / 0x10) != 4) && (offset / 0x10) != 6)
384    {
385        handlers[offset / 0x10](*space, offset % 0x10, data, 0);
386    }
387}
388
389READ8_HANDLER(apple2_c080_r)
390{
391   if(!space->debugger_access())
417392   {
418      /* normal handler */
419      if (handlers[offset / 0x10])
420         handlers[offset / 0x10](space, offset % 0x10, data);
421   }
422   else
423   {
424      /* slot handler; identify the slot number */
425      slotnum = (offset - 0x80) / 0x10;
393        apple2_state *state = space->machine().driver_data<apple2_state>();
394      device_a2bus_card_interface *slotdevice;
426395
427      /* now identify the device */
428        slotdevice = state->m_a2bus->get_a2bus_card(slotnum);
396      offset &= 0x7F;
429397
430      /* and if we can, write to the slot */
431      if (slotdevice != NULL)
432         slotdevice->write_c0nx(*space, offset % 0x10, data);
398        /* now identify the device */
399        slotdevice = state->m_a2bus->get_a2bus_card(offset / 0x10);
400
401        /* and if we can, read from the slot */
402        if (slotdevice != NULL)
403        {
404            return slotdevice->read_c0nx(*space, offset % 0x10);
405        }
433406   }
407
408   return 0;
434409}
435410
411
412WRITE8_HANDLER(apple2_c080_w)
413{
414   apple2_state *state = space->machine().driver_data<apple2_state>();
415   device_a2bus_card_interface *slotdevice;
416
417   offset &= 0x7F;
418
419    /* now identify the device */
420    slotdevice = state->m_a2bus->get_a2bus_card(offset / 0x10);
421
422    /* and if we can, write to the slot */
423    if (slotdevice != NULL)
424    {
425        slotdevice->write_c0nx(*space, offset % 0x10, data);
426    }
427}
428
436429/* returns default CnXX slotram for a slot space */
437430INT8 apple2_slotram_r(address_space &space, int slotnum, int offset)
438431{
r15004r15005
795788   meminfo->write_handler = apple2_c0xx_w;
796789}
797790
791static void apple2_mem_C080(running_machine &machine, offs_t begin, offs_t end, apple2_meminfo *meminfo)
792{
793   meminfo->read_handler = apple2_c080_r;
794   meminfo->write_handler = apple2_c080_w;
795}
796
798797static void apple2_mem_CFFF(running_machine &machine, offs_t begin, offs_t end, apple2_meminfo *meminfo)
799798{
800799   meminfo->read_handler = apple2_cfff_r;
r15004r15005
931930   { 0x0800, 0x1FFF, apple2_mem_0800, A2MEM_DUAL },
932931   { 0x2000, 0x3FFF, apple2_mem_2000, A2MEM_DUAL },
933932   { 0x4000, 0xBFFF, apple2_mem_4000, A2MEM_DUAL },
934   { 0xC000, 0xC0FF, apple2_mem_C000, A2MEM_IO },
933   { 0xC000, 0xC07F, apple2_mem_C000, A2MEM_IO },
934   { 0xC080, 0xC0FF, apple2_mem_C080, A2MEM_IO },
935935   { 0xC100, 0xC2FF, apple2_mem_Cx00, A2MEM_MONO },
936936   { 0xC300, 0xC3FF, apple2_mem_C300, A2MEM_MONO },
937937   { 0xC400, 0xC7FF, apple2_mem_Cx00, A2MEM_MONO },
r15004r15005
12041204  apple2_c00x_r
12051205***************************************************************************/
12061206
1207READ8_HANDLER ( apple2_c00x_r )
1207READ8_MEMBER ( apple2_state::apple2_c00x_r )
12081208{
12091209   UINT8 result = 0;
12101210
1211   if(!space->debugger_access())
1211   if(!space.debugger_access())
12121212   {
12131213      /* Read the keyboard data and strobe */
12141214      g_profiler.start(PROFILER_C00X);
1215      result = AY3600_keydata_strobe_r(space->machine());
1215      result = AY3600_keydata_strobe_r(space.machine());
12161216      g_profiler.stop();
12171217   }
12181218
r15004r15005
12441244  C00F  ALTCHARSETON - use alt character set
12451245***************************************************************************/
12461246
1247WRITE8_HANDLER ( apple2_c00x_w )
1247WRITE8_MEMBER ( apple2_state::apple2_c00x_w )
12481248{
12491249   UINT32 mask;
12501250
12511251   mask = 1 << (offset / 2);
1252   apple2_setvar(space->machine(), (offset & 1) ? mask : 0, mask);
1252   apple2_setvar(space.machine(), (offset & 1) ? mask : 0, mask);
12531253}
12541254
12551255
r15004r15005
12581258  apple2_c01x_r
12591259***************************************************************************/
12601260
1261READ8_HANDLER ( apple2_c01x_r )
1261READ8_MEMBER( apple2_state::apple2_c01x_r )
12621262{
1263   apple2_state *state = space->machine().driver_data<apple2_state>();
1264   UINT8 result = apple2_getfloatingbusvalue(space->machine()) & 0x7F;
1263   UINT8 result = apple2_getfloatingbusvalue(space.machine()) & 0x7F;
12651264
1266   if(!space->debugger_access())
1265   if(!space.debugger_access())
12671266   {
12681267      g_profiler.start(PROFILER_C01X);
12691268
12701269      LOG(("a2 softswitch_r: %04x\n", offset + 0xc010));
12711270      switch (offset)
12721271      {
1273         case 0x00:         result |= AY3600_anykey_clearstrobe_r(space->machine());      break;
1274         case 0x01:         result |= (state->m_flags & VAR_LCRAM2)      ? 0x80 : 0x00;   break;
1275         case 0x02:         result |= (state->m_flags & VAR_LCRAM)      ? 0x80 : 0x00;   break;
1276         case 0x03:         result |= (state->m_flags & VAR_RAMRD)      ? 0x80 : 0x00;   break;
1277         case 0x04:         result |= (state->m_flags & VAR_RAMWRT)      ? 0x80 : 0x00;   break;
1278         case 0x05:         result |= (state->m_flags & VAR_INTCXROM)   ? 0x80 : 0x00;   break;
1279         case 0x06:         result |= (state->m_flags & VAR_ALTZP)      ? 0x80 : 0x00;   break;
1280         case 0x07:         result |= (state->m_flags & VAR_SLOTC3ROM)   ? 0x80 : 0x00;   break;
1281         case 0x08:         result |= (state->m_flags & VAR_80STORE)   ? 0x80 : 0x00;   break;
1282         case 0x09:         result |= !space->machine().primary_screen->vblank()      ? 0x80 : 0x00;   break;
1283         case 0x0A:         result |= (state->m_flags & VAR_TEXT)      ? 0x80 : 0x00;   break;
1284         case 0x0B:         result |= (state->m_flags & VAR_MIXED)      ? 0x80 : 0x00;   break;
1285         case 0x0C:         result |= (state->m_flags & VAR_PAGE2)      ? 0x80 : 0x00;   break;
1286         case 0x0D:         result |= (state->m_flags & VAR_HIRES)      ? 0x80 : 0x00;   break;
1287         case 0x0E:         result |= (state->m_flags & VAR_ALTCHARSET)   ? 0x80 : 0x00;   break;
1288         case 0x0F:         result |= (state->m_flags & VAR_80COL)      ? 0x80 : 0x00;   break;
1272         case 0x00:         result |= AY3600_anykey_clearstrobe_r(space.machine());      break;
1273         case 0x01:         result |= (m_flags & VAR_LCRAM2)      ? 0x80 : 0x00;   break;
1274         case 0x02:         result |= (m_flags & VAR_LCRAM)      ? 0x80 : 0x00;   break;
1275         case 0x03:         result |= (m_flags & VAR_RAMRD)      ? 0x80 : 0x00;   break;
1276         case 0x04:         result |= (m_flags & VAR_RAMWRT)      ? 0x80 : 0x00;   break;
1277         case 0x05:         result |= (m_flags & VAR_INTCXROM)   ? 0x80 : 0x00;   break;
1278         case 0x06:         result |= (m_flags & VAR_ALTZP)      ? 0x80 : 0x00;   break;
1279         case 0x07:         result |= (m_flags & VAR_SLOTC3ROM)   ? 0x80 : 0x00;   break;
1280         case 0x08:         result |= (m_flags & VAR_80STORE)   ? 0x80 : 0x00;   break;
1281         case 0x09:         result |= !space.machine().primary_screen->vblank()      ? 0x80 : 0x00;   break;
1282         case 0x0A:         result |= (m_flags & VAR_TEXT)      ? 0x80 : 0x00;   break;
1283         case 0x0B:         result |= (m_flags & VAR_MIXED)      ? 0x80 : 0x00;   break;
1284         case 0x0C:         result |= (m_flags & VAR_PAGE2)      ? 0x80 : 0x00;   break;
1285         case 0x0D:         result |= (m_flags & VAR_HIRES)      ? 0x80 : 0x00;   break;
1286         case 0x0E:         result |= (m_flags & VAR_ALTCHARSET)   ? 0x80 : 0x00;   break;
1287         case 0x0F:         result |= (m_flags & VAR_80COL)      ? 0x80 : 0x00;   break;
12891288      }
12901289
12911290      g_profiler.stop();
r15004r15005
13001299  apple2_c01x_w
13011300***************************************************************************/
13021301
1303WRITE8_HANDLER( apple2_c01x_w )
1302WRITE8_MEMBER( apple2_state::apple2_c01x_w )
13041303{
13051304   /* Clear the keyboard strobe - ignore the returned results */
13061305   g_profiler.start(PROFILER_C01X);
1307   AY3600_anykey_clearstrobe_r(space->machine());
1306   AY3600_anykey_clearstrobe_r(space.machine());
13081307   g_profiler.stop();
13091308}
13101309
r15004r15005
13141313  apple2_c02x_r
13151314***************************************************************************/
13161315
1317READ8_HANDLER( apple2_c02x_r )
1316READ8_MEMBER( apple2_state::apple2_c02x_r )
13181317{
1319   if(!space->debugger_access())
1318   if(!space.debugger_access())
13201319   {
1321      apple2_c02x_w(space, offset, 0);
1320      apple2_c02x_w(space, offset, 0, 0);
13221321   }
1323   return apple2_getfloatingbusvalue(space->machine());
1322   return apple2_getfloatingbusvalue(space.machine());
13241323}
13251324
13261325
r15004r15005
13291328  apple2_c02x_w
13301329***************************************************************************/
13311330
1332WRITE8_HANDLER( apple2_c02x_w )
1331WRITE8_MEMBER( apple2_state::apple2_c02x_w )
13331332{
1334   apple2_state *state = space->machine().driver_data<apple2_state>();
13351333   switch(offset)
13361334   {
13371335      case 0x08:
1338         apple2_setvar(space->machine(), (state->m_flags & VAR_ROMSWITCH) ^ VAR_ROMSWITCH, VAR_ROMSWITCH);
1336         apple2_setvar(space.machine(), (m_flags & VAR_ROMSWITCH) ^ VAR_ROMSWITCH, VAR_ROMSWITCH);
13391337         break;
13401338   }
13411339}
r15004r15005
13461344  apple2_c03x_r
13471345***************************************************************************/
13481346
1349READ8_HANDLER ( apple2_c03x_r )
1347READ8_MEMBER ( apple2_state::apple2_c03x_r )
13501348{
1351   apple2_state *state = space->machine().driver_data<apple2_state>();
1352   if(!space->debugger_access())
1349   if(!space.debugger_access())
13531350   {
13541351      if (!offset)
13551352      {
1356         device_t *speaker_device = space->machine().device("a2speaker");
1353         device_t *speaker_device = space.machine().device("a2speaker");
13571354
1358         if (state->m_a2_speaker_state == 1)
1355         if (m_a2_speaker_state == 1)
13591356         {
1360            state->m_a2_speaker_state = 0;
1357            m_a2_speaker_state = 0;
13611358         }
13621359         else
13631360         {
1364            state->m_a2_speaker_state = 1;
1361            m_a2_speaker_state = 1;
13651362         }
1366         speaker_level_w(speaker_device, state->m_a2_speaker_state);
1363         speaker_level_w(speaker_device, m_a2_speaker_state);
13671364      }
13681365   }
1369   return apple2_getfloatingbusvalue(space->machine());
1366   return apple2_getfloatingbusvalue(space.machine());
13701367}
13711368
13721369
r15004r15005
13751372  apple2_c03x_w
13761373***************************************************************************/
13771374
1378WRITE8_HANDLER ( apple2_c03x_w )
1375WRITE8_MEMBER ( apple2_state::apple2_c03x_w )
13791376{
1380   apple2_c03x_r(space, offset);
1377   apple2_c03x_r(space, offset, 0);
13811378}
13821379
13831380
r15004r15005
13861383  apple2_c05x_r
13871384***************************************************************************/
13881385
1389READ8_HANDLER ( apple2_c05x_r )
1386READ8_MEMBER ( apple2_state::apple2_c05x_r )
13901387{
1391   if(!space->debugger_access())
1388   if(!space.debugger_access())
13921389   {
13931390      UINT32 mask;
13941391
r15004r15005
13991396      }
14001397
14011398      mask = 0x100 << (offset / 2);
1402      apple2_setvar(space->machine(), (offset & 1) ? mask : 0, mask);
1399      apple2_setvar(space.machine(), (offset & 1) ? mask : 0, mask);
14031400   }
1404   return apple2_getfloatingbusvalue(space->machine());
1401   return apple2_getfloatingbusvalue(space.machine());
14051402}
14061403
14071404
r15004r15005
14101407  apple2_c05x_w
14111408***************************************************************************/
14121409
1413WRITE8_HANDLER ( apple2_c05x_w )
1410WRITE8_MEMBER ( apple2_state::apple2_c05x_w )
14141411{
1415   apple2_c05x_r(space, offset);
1412   apple2_c05x_r(space, offset, 0);
14161413}
14171414
14181415
r15004r15005
14261423   return machine.device<cassette_image_device>(CASSETTE_TAG);
14271424}
14281425
1429READ8_HANDLER ( apple2_c06x_r )
1426READ8_MEMBER ( apple2_state::apple2_c06x_r )
14301427{
1431   apple2_state *state = space->machine().driver_data<apple2_state>();
14321428   int result = 0;
1433   if(!space->debugger_access())
1429   if(!space.debugger_access())
14341430   {
14351431      switch (offset & 0x0F)
14361432      {
14371433         case 0x00:
14381434            /* Cassette input */
14391435            {
1440               cassette_image_device *dev = cassette_device_image(space->machine());
1436               cassette_image_device *dev = cassette_device_image(space.machine());
14411437
14421438               if (dev)
14431439               {
r15004r15005
14511447            break;
14521448         case 0x01:
14531449            /* Open-Apple/Joystick button 0 */
1454            result = apple2_pressed_specialkey(space->machine(), SPECIALKEY_BUTTON0);
1450            result = apple2_pressed_specialkey(space.machine(), SPECIALKEY_BUTTON0);
14551451            break;
14561452         case 0x02:
14571453            /* Closed-Apple/Joystick button 1 */
1458            result = apple2_pressed_specialkey(space->machine(), SPECIALKEY_BUTTON1);
1454            result = apple2_pressed_specialkey(space.machine(), SPECIALKEY_BUTTON1);
14591455            break;
14601456         case 0x03:
14611457            /* Joystick button 2. Later revision motherboards connected this to SHIFT also */
1462            result = apple2_pressed_specialkey(space->machine(), SPECIALKEY_BUTTON2);
1458            result = apple2_pressed_specialkey(space.machine(), SPECIALKEY_BUTTON2);
14631459            break;
14641460         case 0x04:
14651461            /* X Joystick 1 axis */
1466            result = space->machine().time().as_double() < state->m_joystick_x1_time;
1462            result = space.machine().time().as_double() < m_joystick_x1_time;
14671463            break;
14681464         case 0x05:
14691465            /* Y Joystick 1 axis */
1470            result = space->machine().time().as_double() < state->m_joystick_y1_time;
1466            result = space.machine().time().as_double() < m_joystick_y1_time;
14711467            break;
14721468         case 0x06:
14731469            /* X Joystick 2 axis */
1474            result = space->machine().time().as_double() < state->m_joystick_x2_time;
1470            result = space.machine().time().as_double() < m_joystick_x2_time;
14751471            break;
14761472         case 0x07:
14771473            /* Y Joystick 2 axis */
1478            result = space->machine().time().as_double() < state->m_joystick_y2_time;
1474            result = space.machine().time().as_double() < m_joystick_y2_time;
14791475            break;
14801476         default:
14811477            /* c060 Empty Cassette head read
14821478                 * and any other non joystick c06 port returns this according to applewin
14831479                 */
1484            return apple2_getfloatingbusvalue(space->machine());
1480            return apple2_getfloatingbusvalue(space.machine());
14851481      }
14861482   }
14871483   return result ? 0x80 : 0x00;
r15004r15005
14931489  apple2_c07x_r
14941490***************************************************************************/
14951491
1496READ8_HANDLER ( apple2_c07x_r )
1492READ8_MEMBER ( apple2_state::apple2_c07x_r )
14971493{
1498   apple2_state *state = space->machine().driver_data<apple2_state>();
1499   if(!space->debugger_access())
1494   if(!space.debugger_access())
15001495   {
15011496      double x_calibration = attotime::from_usec(12).as_double();
15021497      double y_calibration = attotime::from_usec(13).as_double();
15031498
15041499      if (offset == 0)
15051500      {
1506         state->m_joystick_x1_time = space->machine().time().as_double() + x_calibration * input_port_read(space->machine(), "joystick_1_x");
1507         state->m_joystick_y1_time = space->machine().time().as_double() + y_calibration * input_port_read(space->machine(), "joystick_1_y");
1508         state->m_joystick_x2_time = space->machine().time().as_double() + x_calibration * input_port_read(space->machine(), "joystick_2_x");
1509         state->m_joystick_y2_time = space->machine().time().as_double() + y_calibration * input_port_read(space->machine(), "joystick_2_y");
1501         m_joystick_x1_time = space.machine().time().as_double() + x_calibration * input_port_read(space.machine(), "joystick_1_x");
1502         m_joystick_y1_time = space.machine().time().as_double() + y_calibration * input_port_read(space.machine(), "joystick_1_y");
1503         m_joystick_x2_time = space.machine().time().as_double() + x_calibration * input_port_read(space.machine(), "joystick_2_x");
1504         m_joystick_y2_time = space.machine().time().as_double() + y_calibration * input_port_read(space.machine(), "joystick_2_y");
15101505      }
15111506   }
15121507   return 0;
r15004r15005
15181513  apple2_c07x_w
15191514***************************************************************************/
15201515
1521WRITE8_HANDLER ( apple2_c07x_w )
1516WRITE8_MEMBER ( apple2_state::apple2_c07x_w )
15221517{
1523   apple2_c07x_r(space, offset);
1518   apple2_c07x_r(space, offset, 0);
15241519}
15251520
15261521
src/mess/includes/apple2.h
r15004r15005
152152   UINT16 *m_hires_artifact_map;
153153   UINT16 *m_dhires_artifact_map;
154154    bool m_monochrome_dhr;
155
156    READ8_MEMBER ( apple2_c00x_r );
157    READ8_MEMBER ( apple2_c01x_r );
158    READ8_MEMBER ( apple2_c02x_r );
159    READ8_MEMBER ( apple2_c03x_r );
160    READ8_MEMBER ( apple2_c05x_r );
161    READ8_MEMBER ( apple2_c06x_r );
162    READ8_MEMBER ( apple2_c07x_r );
163    WRITE8_MEMBER ( apple2_c00x_w );
164    WRITE8_MEMBER ( apple2_c01x_w );
165    WRITE8_MEMBER ( apple2_c02x_w );
166    WRITE8_MEMBER ( apple2_c03x_w );
167    WRITE8_MEMBER ( apple2_c05x_w );
168    WRITE8_MEMBER ( apple2_c07x_w );
155169};
156170
157171
r15004r15005
174188UINT8 apple2_getfloatingbusvalue(running_machine &machine);
175189READ8_HANDLER( apple2_c0xx_r );
176190WRITE8_HANDLER( apple2_c0xx_w );
191READ8_HANDLER( apple2_c080_r );
192WRITE8_HANDLER( apple2_c080_w );
177193
178194TIMER_DEVICE_CALLBACK( apple2_interrupt );
179195
src/mess/drivers/apple2gs.c
r15004r15005
6464#include "machine/a2cffa.h"
6565#include "machine/a2memexp.h"
6666#include "machine/a2scsi.h"
67#include "machine/a2softcard.h"
6768
6869static const gfx_layout apple2gs_text_layout =
6970{
r15004r15005
191192static SLOT_INTERFACE_START(apple2_cards)
192193    SLOT_INTERFACE("diskii", A2BUS_DISKII)  /* Disk II Controller Card */
193194    SLOT_INTERFACE("mockingboard", A2BUS_MOCKINGBOARD)  /* Sweet Micro Systems Mockingboard */
195    SLOT_INTERFACE("phasor", A2BUS_PHASOR)  /* Applied Engineering Phasor */
194196    SLOT_INTERFACE("cffa2", A2BUS_CFFA2)  /* CFFA2000 Compact Flash for Apple II (www.dreher.net), 65C02/65816 firmware */
195197    SLOT_INTERFACE("cffa202", A2BUS_CFFA2_6502)  /* CFFA2000 Compact Flash for Apple II (www.dreher.net), 6502 firmware */
196198    SLOT_INTERFACE("memexp", A2BUS_MEMEXP)  /* Apple II Memory Expansion Card */
197199    SLOT_INTERFACE("ramfactor", A2BUS_RAMFACTOR)    /* Applied Engineering RamFactor */
200//    SLOT_INTERFACE("softcard", A2BUS_SOFTCARD)  /* Microsoft SoftCard */  // appears not to be IIgs compatible?
198201//    SLOT_INTERFACE("scsi", A2BUS_SCSI)  /* Apple II SCSI Card */
199202SLOT_INTERFACE_END
200203

Previous 15994 Revisions Next


© 1998-2018 The MESS Team