Previous 15994 Revisions Next

r9627 Sunday 21st November, 2010 at 20:34:11 UTC by R. Belmont
[MAC] Initial work towards SWIM/FDHD emulation. Also, Classic II and IIsi now recognize floppies and harddisks (but do not boot past Welcome to Macintosh due to Egret HLE issues).
[src/mess/devices]sonydriv.c
[src/mess/drivers]mac.c
[src/mess/machine]applefdc.c applefdc.h mac.c

src/mess/devices/sonydriv.c
r9626r9627
44
55    Apple/Sony 3.5" floppy drive emulation (to be interfaced with iwm.c)
66
7    Nate Woods, Raphael Nabet
7    Nate Woods, Raphael Nabet, R. Belmont
88
99    This floppy drive was present in all variants of Lisa 2 (including Mac XL),
10    and in all Macintosh in production before 1988, when SIWM and superdrive
11    were introduced.
10    all Apple IIgs and IIc Plus machines, and in all Macintoshes in production
11    before 1988, when SWIM and SuperDrive were introduced.
1212
13    There were two variants :
13    There were three major variants :
1414    - A single-sided 400k unit which was used on Lisa 2/Mac XL, and Macintosh
1515      128k/512k.  This unit needs the computer to send the proper pulses to
1616      control the drive motor rotation.  It can be connected to all early
r9626r9627
2020      control signals.  It can be connected to earlier (and later) Macintosh as
2121      an external or internal unit.  Some Lisa2/10 and Mac XL were upgraded to
2222      use it, too, but a fdc ROM upgrade was required.
23    - A double-sided 1440k unit.  This is fully back compatible with the 800k
24      drive, and adds 1440k MFM capability.  This drive, called FDHD or
25      SuperDrive by Apple, came in automatic and manual-inject versions.
2326
24    * Note: I don't know for sure whether some Mac II were actually produced
25      with a Superdrive unit, though Apple did sell an upgrade kit, made of
26      a Superdrive unit, a SIWM controller and upgraded systems ROMs, which
27      added HD and MFM support to existing Macintosh II.
28
2927    TODO :
30    * bare images are supposed to be in Macintosh format (look for formatByte
31      in sony_floppy_init(), and you will understand).  We need to support
32      Lisa, Apple II...
3328    * support for other image formats?
34    * should we support more than 2 floppy disk units? (Mac SE *MAY* have
35      supported 3 drives)
29    * should we support more than 2 floppy disk units? (Mac SE supported 3 drives)
3630
3731*********************************************************************/
3832
r9626r9627
8882
8983   unsigned int loadedtrack_valid : 1;   /* is data in track buffer valid ? */
9084   unsigned int loadedtrack_dirty : 1;   /* has data in track buffer been modified? */
91   size_t loadedtrack_size;         /* size of loaded track */
92   size_t loadedtrack_pos;            /* position within loaded track */
93   UINT8 *loadedtrack_data;         /* pointer to track buffer */
85   size_t loadedtrack_size;      /* size of loaded track */
86   size_t loadedtrack_pos;         /* position within loaded track */
87   UINT8 *loadedtrack_data;      /* pointer to track buffer */
88   
89   int is_fdhd;            /* is drive an FDHD? */
9490} floppy;
9591
9692static floppy sony_floppy[2];         /* data for two floppy disk units */
9793
98
99
10094/* bit of code used in several places - I am unsure why it is here */
10195static int sony_enable2(void)
10296{
r9626r9627
252246
253247   if (LOG_SONY_EXTRA)
254248   {
255      logerror("sony_status(): action=%d pc=0x%08x%s\n",
249      printf("sony_status(): action=%x pc=0x%08x%s\n",
256250         action, (int) cpu_get_pc(device->machine->firstcpu), sony_floppy_enable ? "" : " (no drive enabled)");
257251   }
258252
r9626r9627
291285      case 0x04:   /* Disk is stepping 0=stepping 1=not stepping*/
292286         result = 1;
293287         break;
288      case 0x05:   /* Drive is SuperDrive: 0 = 400/800k, 1 = SuperDrive */
289         result = f->is_fdhd ? 1: 0;
290         break;
294291      case 0x06:   /* Disk is locked 0=locked 1=unlocked */
295292         if (cur_image)
296293            result = floppy_wpt_r(&cur_image->device());
r9626r9627
335332         /* (time in seconds) / (60 sec/minute) * (rounds/minute) * (60 pulses) * (2 pulse phases) */
336333         result = ((int) (attotime_to_double(timer_get_time(device->machine)) / 60.0 * sony_rpm(f, &cur_image->device()) * 60.0 * 2.0)) & 1;
337334         break;
338      case 0x0f:   /* Drive installed: 0=drive connected, 1=drive not connected */
339         result = 0;
335      case 0x0f:   /* 400k/800k: Drive installed: 0=drive connected, 1=drive not connected */
336            /* FDHD: Inserted disk density: 0=HD, 1=DD */
337         if (f->is_fdhd)
338         {
339            result = 1;
340         }
341         else
342         {
343            result = 0;
344         }
340345         break;
341346      default:
342347         if (LOG_SONY)
r9626r9627
419424
420425   sony_lines = lines & 0x0F;
421426
427   {
428//      int action = ((sony_lines & (SONY_CA1 | SONY_CA0)) << 2) | (sony_sel_line << 1) | ((sony_lines & SONY_CA2) >> 2);
429//      printf("sony_set_lines: %02x, action now %d\n", lines&0xf, action);
430   }
431
422432   /* have we just set LSTRB ? */
423433   if ((sony_lines & ~old_sony_lines) & SONY_LSTRB)
424434   {
r9626r9627
456466{
457467   sony_sel_line = sel ? 1 : 0;
458468
469   {
470//      int action = ((sony_lines & (SONY_CA1 | SONY_CA0)) << 2) | (sony_sel_line << 1) | ((sony_lines & SONY_CA2) >> 2);
471//      printf("sony_set_sel_line: %d, action now %d\n", sony_sel_line, action);
472   }
473
459474   if (LOG_SONY_EXTRA)
460475      logerror("sony_set_sel_line(): %s line IWM_SEL\n", sony_sel_line ? "setting" : "clearing");
461476}
r9626r9627
467482
468483static DEVICE_START( sonydriv_floppy )
469484{
485   DEVICE_START_CALL(floppy);
486   floppy_set_type(device, FLOPPY_TYPE_SONY);
470487
471   DEVICE_START_CALL(floppy);
472   floppy_set_type(device,FLOPPY_TYPE_SONY);
488   sony_floppy[0].is_fdhd = 0;
489   sony_floppy[1].is_fdhd = 0;
473490}
474491
475492static DEVICE_IMAGE_UNLOAD( sonydriv_floppy )
src/mess/machine/applefdc.c
r9626r9627
6666} applefdc_t;
6767
6868
69static UINT8 swim_default_parms[16] =
70{
71   0x38, 0x18, 0x41, 0x2e, 0x2e, 0x18, 0x18, 0x1b,
72   0x1b, 0x2f, 0x2f, 0x19, 0x19, 0x97, 0x1b, 0x57
73};
6974
7075/***************************************************************************
7176    IWM MODE
r9626r9627
102107   IWM_MODE_LATCHMODE         = 0x01
103108};
104109
110enum
111{
112   SWIM_MODE_IWM,
113   SWIM_MODE_SWIM,
114   SWIM_MODE_SWIM2,
115   SWIM_MODE_SWIM3
116};
105117
106
107118/***************************************************************************
108119    TYPE DEFINITIONS
109120***************************************************************************/
r9626r9627
120131   UINT8 lines;               /* flags from IWM_MOTOR - IWM_Q7 */
121132   UINT8 mode;                  /* 0-31; see above */
122133   UINT8 handshake_hack;         /* not sure what this is for */
134
135   /* SWIM extentions */
136   UINT8 swim_mode;
137   UINT8 swim_magic_state;
138   UINT8 ism_regs[8];
139   UINT8 parm_offset;
140   UINT8 parms[16];
123141};
124142
125143
r9626r9627
181199   fdc->motor_timer = timer_alloc(device->machine, iwm_turnmotor_onoff, (void *) device);
182200   fdc->lines = 0x00;
183201   fdc->mode = 0x1F;   /* default value needed by Lisa 2 - no, I don't know if it is true */
202   fdc->swim_mode = SWIM_MODE_IWM;
184203
185204   /* register save states */
186205   state_save_register_item(device->machine, "applefdc", NULL, 0, fdc->write_byte);
r9626r9627
203222   fdc->write_byte = 0x00;
204223   fdc->lines = 0x00;
205224   fdc->mode = 0x1F;   /* default value needed by Lisa 2 - no, I don't know if it is true */
225   fdc->swim_magic_state = 0;
226   fdc->swim_mode = SWIM_MODE_IWM;
227   fdc->parm_offset = 0;
206228
229   // setup SWIM default parms if it's a SWIM
230   if (fdc->type == APPLEFDC_SWIM)
231   {
232      for (int i = 0; i < 16; i++)
233      {
234         fdc->parms[i] = swim_default_parms[i];
235      }
236   }
237
207238   timer_reset(fdc->motor_timer, attotime_never);
208239}
209240
r9626r9627
281312
282313   fdc->mode = data & 0x1f;   /* write mode register */
283314
315   // SWIM mode is unlocked by writing 1/0/1/1 in a row to bit 6 (which is unused on IWM)
316   // when SWIM mode engages, the IWM is disconnected from both the 68k and the drives,
317   // and the ISM is substituted.
318   if (fdc->type == APPLEFDC_SWIM)
319   {
320      switch (fdc->swim_magic_state)
321      {
322         case 0:
323         case 2:
324         case 3:
325            if (data & 0x40)
326            {
327               fdc->swim_magic_state++;
328            }
329            else
330            {
331               fdc->swim_magic_state = 0;
332            }
333            break;
334         case 1:
335            if (!(data & 0x40))
336            {
337               fdc->swim_magic_state++;
338            }
339            else
340            {
341               fdc->swim_magic_state = 0;
342            }
343            break;
344      }
345
346      if (fdc->swim_magic_state == 4)
347      {
348         fdc->swim_magic_state = 0;
349//         printf("IWM: switching to SWIM mode\n");
350         fdc->swim_mode = SWIM_MODE_SWIM;
351      }
352   }
353
284354   if (LOG_APPLEFDC_EXTRA)
285355      logerror("iwm_modereg_w: iwm_mode=0x%02x\n", (unsigned) fdc->mode);
286356}
r9626r9627
439509   applefdc_token *fdc = get_token(device);
440510   const applefdc_interface *intf = get_interface(device);
441511
442   if (LOG_APPLEFDC_EXTRA)
443   {
444      logerror("iwm_access(): %s line %s\n",
445         (offset & 1) ? "setting" : "clearing", lines[offset >> 1]);
446   }
447
448512   if (offset & 1)
449513      fdc->lines |= (1 << (offset >> 1));
450514   else
451515      fdc->lines &= ~(1 << (offset >> 1));
452516
517   if (LOG_APPLEFDC_EXTRA)
518   {
519      logerror("iwm_access(): %s line %s => %02x\n",
520         (offset & 1) ? "setting" : "clearing", lines[offset >> 1], fdc->lines);
521   }
522
453523   if ((offset < 0x08) && (intf->set_lines != NULL))
454524      intf->set_lines(device,fdc->lines & 0x0f);
455525
r9626r9627
493563   UINT8 result = 0;
494564
495565   /* normalize offset */
496   offset &= 15;
566   offset &= 0xf;
497567
498568   if (LOG_APPLEFDC_EXTRA)
499569      logerror("applefdc_r: offset=%i\n", offset);
500570
501   iwm_access(device, offset);
502
503   switch(fdc->type)
571   if ((fdc->type < APPLEFDC_SWIM) || (fdc->swim_mode == SWIM_MODE_IWM))
504572   {
505      case APPLEFDC_APPLE2:
506         switch(offset)
507         {
508            case 0x0C:
509               if (fdc->lines & IWM_Q7)
510               {
511                  if (intf->write_data != NULL)
512                     intf->write_data(device,fdc->write_byte);
513                  result = 0;
514               }
515               else
516                  result = applefdc_read_reg(device, 0);
573      iwm_access(device, offset);
517574
518               break;
519            case 0x0D:
520               result = applefdc_read_reg(device, IWM_Q6);
521               break;
522            case 0x0E:
523               result = applefdc_read_reg(device, IWM_Q7);
524               break;
525            case 0x0F:
526               result = applefdc_read_reg(device, IWM_Q7 | IWM_Q6);
527               break;
528         }
529         break;
575      switch(fdc->type)
576      {
577         case APPLEFDC_APPLE2:
578            switch(offset)
579            {
580               case 0x0C:
581                  if (fdc->lines & IWM_Q7)
582                  {
583                     if (intf->write_data != NULL)
584                        intf->write_data(device,fdc->write_byte);
585                     result = 0;
586                  }
587                  else
588                     result = applefdc_read_reg(device, 0);
530589
531      case APPLEFDC_IWM:
532         if ((offset & 1) == 0)
533            result = applefdc_read_reg(device, fdc->lines & (IWM_Q6 | IWM_Q7));
534         break;
590                  break;
591               case 0x0D:
592                  result = applefdc_read_reg(device, IWM_Q6);
593                  break;
594               case 0x0E:
595                  result = applefdc_read_reg(device, IWM_Q7);
596                  break;
597               case 0x0F:
598                  result = applefdc_read_reg(device, IWM_Q7 | IWM_Q6);
599                  break;
600            }
601            break;
535602
536      case APPLEFDC_SWIM:
537         if ((offset & 1) == 0)
538            result = applefdc_read_reg(device, fdc->lines & (IWM_Q6 | IWM_Q7));
539         break;
603         case APPLEFDC_IWM:
604            if ((offset & 1) == 0)
605               result = applefdc_read_reg(device, fdc->lines & (IWM_Q6 | IWM_Q7));
606            break;
607
608         case APPLEFDC_SWIM:
609            if ((offset & 1) == 0)
610               result = applefdc_read_reg(device, fdc->lines & (IWM_Q6 | IWM_Q7));
611            break;
612      }
540613   }
614   else if (fdc->swim_mode >= SWIM_MODE_SWIM)
615   {
616      // reading parameter RAM?
617      if ((offset & 7) == 3)
618      {
619         result = fdc->parms[fdc->parm_offset++];
620         fdc->parm_offset &= 0xf;
621      }
622      else
623      {
624         result = fdc->ism_regs[offset&7];
625      }
626      printf("SWIM: read %02x from offset %x\n", result, offset & 7);
627   }
628
541629   return result;
542630}
543631
r9626r9627
558646   if (LOG_APPLEFDC_EXTRA)
559647      logerror("applefdc_w: offset=%i data=0x%02x\n", offset, data);
560648
561   iwm_access(device, offset);
649   if ((fdc->type < APPLEFDC_SWIM) || (fdc->swim_mode == SWIM_MODE_IWM))
650   {
651      iwm_access(device, offset);
562652
563   switch(fdc->type)
653      switch(fdc->type)
654      {
655         case APPLEFDC_APPLE2:
656            switch(offset)
657            {
658               case 0x0C:
659                  if (fdc->lines & IWM_Q7)
660                  {
661                     if (intf->write_data != NULL)
662                        intf->write_data(device,fdc->write_byte);
663                  }
664                  break;
665
666               case 0x0D:
667                  fdc->write_byte = data;
668                  break;
669            }
670            break;
671
672         case APPLEFDC_IWM:
673            if (offset & 1)
674               applefdc_write_reg(device, data);
675            break;
676
677         case APPLEFDC_SWIM:
678            if (offset & 1)
679               applefdc_write_reg(device, data);
680            break;
681      }
682   }
683   else if (fdc->swim_mode >= SWIM_MODE_SWIM)
564684   {
565      case APPLEFDC_APPLE2:
566         switch(offset)
567         {
568            case 0x0C:
569               if (fdc->lines & IWM_Q7)
570               {
571                  if (intf->write_data != NULL)
572                     intf->write_data(device,fdc->write_byte);
573               }
574               break;
685      printf("SWIM: write %02x to offset %x\n", data, offset & 7);
686      switch (offset & 7)
687      {
688         case 2: // write CRC
689            break;
575690
576            case 0x0D:
577               fdc->write_byte = data;
578               break;
579         }
580         break;
691         case 3: // write parameter
692            fdc->parms[fdc->parm_offset++] = data;
693            fdc->parm_offset &= 0xf;
694            break;
581695
582      case APPLEFDC_IWM:
583         if (offset & 1)
584            applefdc_write_reg(device, data);
585         break;
696         case 6: // write zeros to status (also zeroes parameter RAM pointer)
697            fdc->ism_regs[6] &= ~data;
698            fdc->parm_offset = 0;
586699
587      case APPLEFDC_SWIM:
588         if (offset & 1)
589            applefdc_write_reg(device, data);
590         break;
700            if (data == 0xf8)   // magic "revert to IWM" value
701            {
702               printf("SWIM: reverting to IWM\n");
703               fdc->swim_mode = SWIM_MODE_IWM;
704            }
705            break;
706
707         case 7: // write ones to status
708            fdc->ism_regs[6] |= data;
709            break;
710
711         default:
712            fdc->ism_regs[offset & 7] = data;
713            break;
714
715      }
591716   }
592717}
593718
src/mess/machine/applefdc.h
r9626r9627
88
99    Nate Woods
1010    Raphael Nabet
11    R. Belmont
1112
1213*********************************************************************/
1314
src/mess/machine/mac.c
r9626r9627
1010    R. Belmont
1111
1212    Mac Model Feature Summary:
13                                CPU             FDC     Kbd/Mouse  PRAM   Video
14         - Mac 128k             68k             IWM     orig       orig   Original
15         - Mac 512k             68k             IWM     orig       orig   Original
16         - Mac 512ke        68k             IWM     orig       orig   Original
17         - Mac Plus         68k             IWM     orig       ext    Original
18         - Mac SE               68k             IWM     MacII ADB  ext    Original
19         - Mac Classic          68k             SWIM    MacII ADB  ext    Original
20         - Mac Portable         68k (16 MHz)    SWIM    ADB-PMU    PMU    640x400 B&W
21         - PowerBook 100        68k (16 MHz)    SWIM    ADB-PMU    PMU    640x400 B&W
22         - Mac II               020             IWM     MacII ADB  ext    NuBus card
23         - Mac IIx              030             SWIM    MacII ADB  ext    NuBus card
24         - Mac IIfx             030             SWIM    ADB-IOP    ext    NuBus card
25         - Mac SE/30            030             SWIM    MacII ADB  ext    Internal fake NuBus card
26         - Mac IIcx             030             SWIM    ADB-CUDA   ext    NuBus card
27         - Mac IIci             030             SWIM    MacII ADB  ext    Internal "RBV" type
28         - Mac IIsi             030             SWIM    Egret ADB  ext    Internal "RBV" type
29         - Mac IIvx/IIvi        030             SWIM    Egret ADB  ext    Internal "VASP" type
30         - Mac LC               020             SWIM    Egret ADB  ext    Internal "V8" type
31         - Mac LC II            030             SWIM    Egret ADB  ext    Internal "V8" type
32         - Mac LC III           030             SWIM    Egret ADB  ext    Internal "Sonora" type
13                                CPU             FDC     Kbd/Mouse  PRAM      Video
14         - Mac 128k             68k             IWM     orig       orig      Original
15         - Mac 512k             68k             IWM     orig       orig      Original
16         - Mac 512ke           68k             IWM     orig       orig      Original
17         - Mac Plus            68k             IWM     orig       ext      Original
18         - Mac SE               68k             IWM     MacII ADB  ext      Original
19         - Mac Classic          68k             SWIM    MacII ADB  ext      Original
20         - Mac Portable         68k (16 MHz)    SWIM    ADB-PMU    PMU      640x400 B&W
21         - PowerBook 100        68k (16 MHz)    SWIM    ADB-PMU    PMU      640x400 B&W
22         - Mac II               020             IWM     MacII ADB  ext      NuBus card
23         - Mac IIx              030             SWIM    MacII ADB  ext      NuBus card
24         - Mac IIfx             030             SWIM    ADB-IOP    ext      NuBus card
25         - Mac SE/30            030             SWIM    MacII ADB  ext      Internal fake NuBus card
26         - Mac IIcx             030             SWIM    MacII ADB  ext      NuBus card
27         - Mac IIci             030             SWIM    Egret ADB  ext      Internal "RBV" type
28         - Mac IIsi             030             SWIM    Egret ADB  n/a      Internal "RBV" type
29         - Mac IIvx/IIvi        030             SWIM    Egret ADB  n/a      Internal "VASP" type
30         - Mac LC               020             SWIM    Egret ADB  n/a      Internal "V8" type
31         - Mac LC II            030             SWIM    Egret ADB  n/a      Internal "V8" type
32        - Mac LC III           030             SWIM    Egret ADB  n/a      Internal "Sonora" type
33        - Mac Classic II      030            SWIM   Egret ADB  n/a      Internal "Eagle" type
3334
3435    Notes:
3536        - The Mac Plus boot code seems to check to see the extent of ROM
r9626r9627
14901491   UINT16 result = 0;
14911492   running_device *fdc = space.machine->device("fdc");
14921493
1494   result = applefdc_r(fdc, (offset >> 8));
1495
14931496   if (LOG_MAC_IWM)
1494      logerror("mac_iwm_r: offset=0x%08x mem_mask %04x (PC %x)\n", offset, mem_mask, cpu_get_pc(space.cpu));
1497      printf("mac_iwm_r: offset=0x%08x mem_mask %04x = %02x (PC %x)\n", offset, mem_mask, result, cpu_get_pc(space.cpu));
14951498
1496   result = applefdc_r(fdc, (offset >> 8));
14971499   return (result << 8) | result;
14981500}
14991501
r9626r9627
15021504   running_device *fdc = space.machine->device("fdc");
15031505
15041506   if (LOG_MAC_IWM)
1505      logerror("mac_iwm_w: offset=0x%08x data=0x%04x mask %04x (PC=%x)\n", offset, data, mem_mask, cpu_get_pc(space.cpu));
1507      printf("mac_iwm_w: offset=0x%08x data=0x%04x mask %04x (PC=%x)\n", offset, data, mem_mask, cpu_get_pc(space.cpu));
15061508
15071509   if (ACCESSING_BITS_0_7)
15081510      applefdc_w(fdc, (offset >> 8), data & 0xff);
src/mess/drivers/mac.c
r9626r9627
436436
437437   AM_RANGE(0xf00000, 0xf01fff) AM_READWRITE16(mac_via_r, mac_via_w, 0xffffffff)
438438   AM_RANGE(0xf04000, 0xf05fff) AM_READWRITE16(mac_scc_r, mac_scc_2_w, 0xffffffff)
439   AM_RANGE(0xf06000, 0xf06003) AM_WRITE(macii_scsi_drq_w) AM_MIRROR(0x00f00000)
440   AM_RANGE(0xf10000, 0xf11fff) AM_READWRITE16(macplus_scsi_r, macii_scsi_w, 0xffffffff) AM_MIRROR(0x00f00000)
441   AM_RANGE(0xf12060, 0xf12063) AM_READ(macii_scsi_drq_r) AM_MIRROR(0x00f00000)
442   AM_RANGE(0xf14000, 0xf15fff) AM_DEVREADWRITE8("asc", asc_device, read, write, 0xffffffff) AM_MIRROR(0x00f00000)
443   AM_RANGE(0xf16000, 0xf17fff) AM_READWRITE16(mac_iwm_r, mac_iwm_w, 0xffffffff) AM_MIRROR(0x00f00000)
439   AM_RANGE(0xf06000, 0xf07fff) AM_READWRITE(macii_scsi_drq_r, macii_scsi_drq_w)
440   AM_RANGE(0xf10000, 0xf11fff) AM_READWRITE16(macplus_scsi_r, macii_scsi_w, 0xffffffff)
441   AM_RANGE(0xf12000, 0xf13fff) AM_READWRITE(macii_scsi_drq_r, macii_scsi_drq_w)
442   AM_RANGE(0xf14000, 0xf15fff) AM_DEVREADWRITE8("asc", asc_device, read, write, 0xffffffff)
443   AM_RANGE(0xf16000, 0xf17fff) AM_READWRITE16(mac_iwm_r, mac_iwm_w, 0xffffffff)
444444   AM_RANGE(0xf24000, 0xf24003) AM_READWRITE(rbv_ramdac_r, ariel_ramdac_w)
445445   AM_RANGE(0xf26000, 0xf27fff) AM_READWRITE8(mac_rbv_r, mac_rbv_w, 0xffffffff)   // VIA2 (V8)
446446   AM_RANGE(0xf40000, 0xfbffff) AM_RAM AM_BASE(m_rbv_vram)
r9626r9627
451451
452452   AM_RANGE(0x50000000, 0x50001fff) AM_READWRITE16(mac_via_r, mac_via_w, 0xffffffff) AM_MIRROR(0x00f00000)
453453   AM_RANGE(0x50004000, 0x50005fff) AM_READWRITE16(mac_scc_r, mac_scc_2_w, 0xffffffff) AM_MIRROR(0x00f00000)
454   AM_RANGE(0x50006000, 0x50007fff) AM_READWRITE(macii_scsi_drq_r, macii_scsi_drq_w) AM_MIRROR(0x00f00000)
454455   AM_RANGE(0x50010000, 0x50011fff) AM_READWRITE16(macplus_scsi_r, macii_scsi_w, 0xffffffff) AM_MIRROR(0x00f00000)
455   AM_RANGE(0x50012060, 0x50012063) AM_READ(macii_scsi_drq_r) AM_MIRROR(0x00f00000)
456   AM_RANGE(0x50012000, 0x50013fff) AM_READWRITE(macii_scsi_drq_r, macii_scsi_drq_w) AM_MIRROR(0x00f00000)
456457   AM_RANGE(0x50014000, 0x50015fff) AM_DEVREADWRITE8("asc", asc_device, read, write, 0xffffffff) AM_MIRROR(0x00f00000)
457458   AM_RANGE(0x50016000, 0x50017fff) AM_READWRITE16(mac_iwm_r, mac_iwm_w, 0xffffffff) AM_MIRROR(0x00f00000)
458459   AM_RANGE(0x50024000, 0x50025fff) AM_WRITE( ariel_ramdac_w ) AM_MIRROR(0x00f00000)
r9626r9627
491492
492493   AM_RANGE(0x50000000, 0x50001fff) AM_READWRITE16(mac_via_r, mac_via_w, 0xffffffff) AM_MIRROR(0x00f00000)
493494   AM_RANGE(0x50004000, 0x50005fff) AM_READWRITE16(mac_scc_r, mac_scc_2_w, 0xffffffff) AM_MIRROR(0x00f00000)
494   AM_RANGE(0x50006000, 0x50006003) AM_WRITE(macii_scsi_drq_w) AM_MIRROR(0x00f00000)
495   AM_RANGE(0x50006060, 0x50006063) AM_READ(macii_scsi_drq_r) AM_MIRROR(0x00f00000)
495   AM_RANGE(0x50006000, 0x50007fff) AM_READWRITE(macii_scsi_drq_r, macii_scsi_drq_w) AM_MIRROR(0x00f00000)
496496   AM_RANGE(0x50010000, 0x50011fff) AM_READWRITE16(macplus_scsi_r, macii_scsi_w, 0xffffffff) AM_MIRROR(0x00f00000)
497497   AM_RANGE(0x50012060, 0x50012063) AM_READ(macii_scsi_drq_r) AM_MIRROR(0x00f00000)
498498   AM_RANGE(0x50014000, 0x50015fff) AM_DEVREADWRITE8("asc", asc_device, read, write, 0xffffffff) AM_MIRROR(0x00f00000)
r9626r9627
508508   AM_RANGE(0x50000000, 0x50001fff) AM_READWRITE16(mac_via_r, mac_via_w, 0xffffffff) AM_MIRROR(0x00f00000)
509509   AM_RANGE(0x50002000, 0x50003fff) AM_READWRITE16(mac_via2_r, mac_via2_w, 0xffffffff) AM_MIRROR(0x00f00000)
510510   AM_RANGE(0x50004000, 0x50005fff) AM_READWRITE16(mac_scc_r, mac_scc_2_w, 0xffffffff) AM_MIRROR(0x00f00000)
511   AM_RANGE(0x50006000, 0x50006003) AM_WRITE(macii_scsi_drq_w) AM_MIRROR(0x00f00000)
512   AM_RANGE(0x50006060, 0x50006063) AM_READ(macii_scsi_drq_r) AM_MIRROR(0x00f00000)
511   AM_RANGE(0x50006000, 0x50007fff) AM_READWRITE(macii_scsi_drq_r, macii_scsi_drq_w) AM_MIRROR(0x00f00000)
513512   AM_RANGE(0x50010000, 0x50011fff) AM_READWRITE16(macplus_scsi_r, macii_scsi_w, 0xffffffff) AM_MIRROR(0x00f00000)
514513   AM_RANGE(0x50012060, 0x50012063) AM_READ(macii_scsi_drq_r) AM_MIRROR(0x00f00000)
515514   AM_RANGE(0x50014000, 0x50015fff) AM_DEVREADWRITE8("asc", asc_device, read, write, 0xffffffff) AM_MIRROR(0x00f00000)
r9626r9627
706705   /* devices */
707706   MDRV_NCR5380_ADD("ncr5380", 7833600, macplus_5380intf)
708707
709   MDRV_SWIM_ADD("fdc", mac_iwm_interface)
708   MDRV_IWM_ADD("fdc", mac_iwm_interface)
710709   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac128512_floppy_config)
711710
712711   MDRV_SCC8530_ADD("scc", 7833600)
r9626r9627
756755   /* devices */
757756   MDRV_NCR5380_ADD("ncr5380", 7833600, macplus_5380intf)
758757
759   MDRV_SWIM_ADD("fdc", mac_iwm_interface)
758   MDRV_IWM_ADD("fdc", mac_iwm_interface)
760759   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_config)
761760
762761   MDRV_SCC8530_ADD("scc", 7833600)
r9626r9627
869868   /* devices */
870869   MDRV_NCR5380_ADD("ncr5380", 7833600, macplus_5380intf)
871870
872   MDRV_SWIM_ADD("fdc", mac_iwm_interface)
871   MDRV_IWM_ADD("fdc", mac_iwm_interface)
873872   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_config)
874873
875874   MDRV_SCC8530_ADD("scc", 7833600)
r9626r9627
983982   /* devices */
984983   MDRV_NCR5380_ADD("ncr5380", 7833600, macplus_5380intf)
985984
986   MDRV_SWIM_ADD("fdc", mac_iwm_interface)
985   MDRV_IWM_ADD("fdc", mac_iwm_interface)
987986   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_config)
988987
989988   MDRV_SCC8530_ADD("scc", 7833600)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team