Previous 15994 Revisions Next

r3965 Tuesday 23rd December, 2008 at 15:00:23 UTC by Robbbert
Enable various drivers
[src/mess]mess.mak messdriv.c
[src/mess/drivers]bbcbc.c einstein.c mbee.c mpf1.c nascom1.c sord.c super80.c
[src/mess/machine]conkort.c kc.c vtech1.c vtech2.c

src/mess/messdriv.c
r3964r3965
196196
197197/****************COMPUTERS***************************************************/
198198    /* ACORN */
199//0128u7   DRIVER( acrnsys1 )   /* 1979 Acorn System 1 (Microcomputer Kit)         */
200//0128u7   DRIVER( atom )      /* 1979 Acorn Atom                           */
201//0128u7   DRIVER( atomeb )   /* 1979 Acorn Atom                           */
202//0128u7   DRIVER( bbca )      /* 1981 BBC Micro Model A                     */
203//0128u7   DRIVER( bbcb )      /* 1981 BBC Micro Model B                     */
204//0128u7   DRIVER( bbcbp )      /* 198? BBC Micro Model B+ 64K                  */
205//0128u7   DRIVER( bbcbp128 )   /* 198? BBC Micro Model B+ 128K                  */
206//0128u7   DRIVER( bbcm)      /* 198? BBC Master                           */
207//0128u7   DRIVER( bbcbc )      /* 1985 BBC Bridge Companion                  */
208//0128u7   DRIVER( electron )   /* 1983 Acorn Electron                        */
209//   DRIVER( a310 )      /* 1988 Acorn Archimedes 310                  */
199   DRIVER( acrnsys1 )   /* 1979 Acorn System 1 (Microcomputer Kit)         */
200   DRIVER( atom )      /* 1979 Acorn Atom                           */
201   DRIVER( atomeb )   /* 1979 Acorn Atom                           */
202   DRIVER( bbca )      /* 1981 BBC Micro Model A                     */
203   DRIVER( bbcb )      /* 1981 BBC Micro Model B                     */
204   DRIVER( bbcbp )      /* 198? BBC Micro Model B+ 64K                  */
205   DRIVER( bbcbp128 )   /* 198? BBC Micro Model B+ 128K                  */
206   DRIVER( bbcm)      /* 198? BBC Master                           */
207   DRIVER( bbcbc )      /* 1985 BBC Bridge Companion                  */
208   DRIVER( electron )   /* 1983 Acorn Electron                        */
209//128u7   DRIVER( a310 )      /* 1988 Acorn Archimedes 310                  */
210210
211211   /* CAMBRIDGE COMPUTERS */
212//0128u7   DRIVER( z88 )      /*                                       */
212   DRIVER( z88 )      /*                                       */
213213
214214   /* AMSTRAD */
215215   DRIVER( cpc464 )   /* Amstrad (Schneider in Germany) 1984            */
r3964r3965
559559   DRIVER( jupiter )   /* Jupiter Ace                              */
560560
561561   /* SORD */
562//0128u7   DRIVER( sordm5 )
563//0128u7   DRIVER( srdm5fd5 )
562   DRIVER( sordm5 )
563   DRIVER( srdm5fd5 )
564564
565565   /* APF Electronics Inc. */
566566   DRIVER( apfm1000 )
r3964r3965
578578
579579   /* VEB MIKROELEKTRONIK */
580580   /* KC compact is partial CPC compatible */
581//0128u7   DRIVER( kc85_4 )   /* VEB KC 85/4                              */
582//0128u7   DRIVER( kc85_3 )   /* VEB KC 85/3                              */
583//0128u7   DRIVER( kc85_4d )   /* VEB KC 85/4 with disk interface               */
581//128u7   DRIVER( kc85_4 )   /* VEB KC 85/4                              */
582//128u7   DRIVER( kc85_3 )   /* VEB KC 85/3                              */
583//128u7   DRIVER( kc85_4d )   /* VEB KC 85/4 with disk interface               */
584584
585585   /* MICROBEE SYSTEMS */
586//0128u7   DRIVER( mbee )      /* Microbee 16 Standard or Plus                  */
587//0128u7   DRIVER( mbeeic )   /* Microbee 32 IC                           */
588//0128u7   DRIVER( mbeepc )   /* Microbee 32 PC                           */
589//0128u7   DRIVER( mbeepc85 )   /* Microbee 32 PC85                           */
590//0128u7   DRIVER( mbee56 )   /* Microbee 56K (CP/M)                        */
586   DRIVER( mbee )      /* Microbee 16 Standard or Plus                  */
587   DRIVER( mbeeic )   /* Microbee 32 IC                           */
588   DRIVER( mbeepc )   /* Microbee 32 PC                           */
589   DRIVER( mbeepc85 )   /* Microbee 32 PC85                           */
590   DRIVER( mbee56 )   /* Microbee 56K (CP/M)                        */
591591
592592   /* TANDY RADIO SHACK */
593593   DRIVER( trs80 )      /* TRS-80 Model I - Level I BASIC               */
r3964r3965
787787
788788
789789   /* NASCOM MICROCOMPUTERS */
790//0128u7   DRIVER( nascom1 )   /* 1978 Nascom 1                           */
791//0128u7   DRIVER( nascom2 )   /* 1979 Nascom 2                           */
790   DRIVER( nascom1 )   /* 1978 Nascom 1                           */
791   DRIVER( nascom2 )   /* 1979 Nascom 2                           */
792792
793793   /* MILES GORDON TECHNOLOGY */
794794   DRIVER( samcoupe )   /* 1989 Sam Coupe                           */
r3964r3965
884884   DRIVER(compis)      /* 1985 Telenova Compis                        */
885885
886886   /* Multitech */
887//0128u7   DRIVER(mpf1)      /* 1979 Multitech Micro Professor 1               */
888//0128u7   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B            */
887   DRIVER(mpf1)      /* 1979 Multitech Micro Professor 1               */
888   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B            */
889889
890890   /* Telercas Oy */
891891//   DRIVER(tmc1800)
r3964r3965
903903   DRIVER( tx0_8kw )   /* 1962 MIT TX-0 (8kw RAM)                     */
904904
905905   /* Luxor Datorer AB */
906//0128u7   DRIVER( abc80 )
907//0128u7   DRIVER( abc802 )
908//0128u7   DRIVER( abc800m )
909//0128u7   DRIVER( abc800c )
910//0128u7   DRIVER( abc806 )
906   DRIVER( abc80 )
907   DRIVER( abc802 )
908   DRIVER( abc800m )
909   DRIVER( abc800c )
910   DRIVER( abc806 )
911911
912912   /* Be Incorporated */
913913   DRIVER( bebox )      /* BeBox Dual603-66                           */
r3964r3965
937937//   DRIVER( cybikoxt )   /* Cybiko Wireless Intertainment System - Xtreme     */
938938
939939   /* Dick Smith */
940//0128u7   DRIVER( super80 )
941//0128u7   DRIVER( super80d )
942//0128u7   DRIVER( super80e )
943//0128u7   DRIVER( super80m )
944//0128u7   DRIVER( super80r )
945//0128u7   DRIVER( super80v )
940   DRIVER( super80 )
941   DRIVER( super80d )
942   DRIVER( super80e )
943   DRIVER( super80m )
944   DRIVER( super80r )
945   DRIVER( super80v )
946946
947947   /* Galeb */
948948   DRIVER( galeb )
src/mess/machine/conkort.c
r3964r3965
151151   return get_safe_token_fast(device);
152152}
153153
154static const device_config *get_floppy_image(int drive)
154static const device_config *get_floppy_image(running_machine *machine, int drive)
155155{
156156   return image_from_devtype_and_index(machine, IO_FLOPPY, drive);
157157}
158158
159
159160/* Slow Controller */
160161
161162static READ8_HANDLER( slow_bus_data_r )
r3964r3965
254255//   if (!BIT(data, 2)) wd17xx_set_drive(fdc,2);
255256
256257   /* motor enable */
257   floppy_drive_set_motor_state(get_floppy_image(0), !BIT(data, 3));
258   floppy_drive_set_motor_state(get_floppy_image(1), !BIT(data, 3));
259   floppy_drive_set_ready_state(get_floppy_image(0), 1, 1);
260   floppy_drive_set_ready_state(get_floppy_image(1), 1, 1);
258   floppy_drive_set_motor_state(get_floppy_image(space->machine, 0), !BIT(data, 3));
259   floppy_drive_set_motor_state(get_floppy_image(space->machine, 1), !BIT(data, 3));
260   floppy_drive_set_ready_state(get_floppy_image(space->machine, 0), 1, 1);
261   floppy_drive_set_ready_state(get_floppy_image(space->machine, 1), 1, 1);
261262
262263   /* disk side selection */
263264   wd17xx_set_side(fdc,!BIT(data, 4));
r3964r3965
386387   conkort->status = data;
387388}
388389
390static READ8_DEVICE_HANDLER(z80pio_alt_r)
391{
392   int channel = BIT(offset, 1);
393
394   return (offset & 1) ? z80pio_c_r(device, channel) : z80pio_d_r(device, channel);
395}
396
397static WRITE8_DEVICE_HANDLER(z80pio_alt_w)
398{
399   int channel = BIT(offset, 1);
400
401   if (offset & 1)
402      z80pio_c_w(device, channel, data);
403   else
404      z80pio_d_w(device, channel, data);
405}
406
389407/* Memory Maps */
390408
391409// Slow Controller
r3964r3965
476494
477495/* Z80 PIO */
478496
479static Z80PIO_ON_INT_CHANGED( pio_interrupt )
497static void conkort_pio_interrupt(const device_config *device, int state)
480498{
481499   slow_t *conkort = get_safe_token_machine_slow(device->machine);
482500
483501   cpu_set_input_line(conkort->cpu, INPUT_LINE_IRQ0, state);
484502}
485503
486static READ8_DEVICE_HANDLER( pio_port_a_r )
504static READ8_DEVICE_HANDLER( conkort_pio_port_a_r )
487505{
488506   slow_t *conkort = get_safe_token_machine_slow(device->machine);
489507
490508   return conkort->data;
491509}
492510
493static WRITE8_DEVICE_HANDLER( pio_port_a_w )
511static WRITE8_DEVICE_HANDLER( conkort_pio_port_a_w )
494512{
495513   slow_t *conkort = get_safe_token_machine_slow(device->machine);
496514
497515   conkort->data = data;
498516}
499517
500static READ8_DEVICE_HANDLER( pio_port_b_r )
518static READ8_DEVICE_HANDLER( conkort_pio_port_b_r )
501519{
502520   /*
503521
r3964r3965
519537   return conkort->fdc_irq << 7;
520538}
521539
522static WRITE8_DEVICE_HANDLER( pio_port_b_w )
540static WRITE8_DEVICE_HANDLER( conkort_pio_port_b_w )
523541{
524542   /*
525543
r3964r3965
538556
539557}
540558
541static Z80PIO_ON_ARDY_CHANGED( pio_ardy_w )
559static void conkort_pio_ardy_w(const device_config *device, int state)
542560{
543561   slow_t *conkort = get_safe_token_machine_slow(device->machine);
544562
545563   conkort->pio_ardy = state;
546564}
547565
548static Z80PIO_INTERFACE( pio_intf )
566static const z80pio_interface conkort_pio_intf =
549567{
550   NULL,                  /* CPU (cannot use from within device) */
551   XTAL_4MHz/2,            /* chip clock */
552   pio_interrupt,            /* interrupt callback */
553   pio_port_a_r,            /* port A read callback */
554   pio_port_b_r,            /* port B read callback */
555   pio_port_a_w,            /* port A write callback */
556   pio_port_b_w,            /* port B write callback */
557   pio_ardy_w,               /* port A ready callback */
568   conkort_pio_interrupt,            /* interrupt callback */
569   conkort_pio_port_a_r,            /* port A read callback */
570   conkort_pio_port_b_r,            /* port B read callback */
571   conkort_pio_port_a_w,            /* port A write callback */
572   conkort_pio_port_b_w,            /* port B write callback */
573   conkort_pio_ardy_w,               /* port A ready callback */
558574   NULL                  /* port B ready callback */
559575};
560576
r3964r3965
732748   MDRV_CPU_IO_MAP(slow_io_map, 0)
733749   MDRV_CPU_CONFIG(slow_daisy_chain)
734750
735   MDRV_Z80PIO_ADD(CONKORT_Z80PIO_TAG, pio_intf)
751   MDRV_Z80PIO_ADD(CONKORT_Z80PIO_TAG, conkort_pio_intf)
736752   MDRV_WD179X_ADD("wd179x", slow_wd17xx_interface )     
737753MACHINE_DRIVER_END
738754
src/mess/machine/vtech1.c
r3964r3965
277277   return INIT_PASS;
278278}
279279
280static void vtech1_get_track(void)
280static void vtech1_get_track(running_machine *machine)
281281{
282282    /* drive selected or and image file ok? */
283   if (vtech1_drive >= 0 && image_exists(vtech1_file()))
283   if (vtech1_drive >= 0 && image_exists(vtech1_file(machine)))
284284   {
285285      int size, offs;
286286      size = TRKSIZE_VZ;
287287      offs = TRKSIZE_VZ * vtech1_track_x2[vtech1_drive]/2;
288      image_fseek(vtech1_file(), offs, SEEK_SET);
289      size = image_fread(vtech1_file(), vtech1_fdc_data, size);
288      image_fseek(vtech1_file(machine), offs, SEEK_SET);
289      size = image_fread(vtech1_file(machine), vtech1_fdc_data, size);
290290      if (LOG_VTECH1_FDC)
291291         logerror("get track @$%05x $%04x bytes\n", offs, size);
292292    }
r3964r3965
294294   vtech1_fdc_write = 0;
295295}
296296
297static void vtech1_put_track(void)
297static void vtech1_put_track(running_machine *machine)
298298{
299299    /* drive selected and image file ok? */
300   if (vtech1_drive >= 0 && vtech1_file() != NULL)
300   if (vtech1_drive >= 0 && vtech1_file(machine) != NULL)
301301   {
302302      int size, offs;
303303      offs = TRKSIZE_VZ * vtech1_track_x2[vtech1_drive]/2;
304      image_fseek(vtech1_file(), offs + vtech1_fdc_start, SEEK_SET);
305      size = image_fwrite(vtech1_file(), &vtech1_fdc_data[vtech1_fdc_start], vtech1_fdc_write);
304      image_fseek(vtech1_file(machine), offs + vtech1_fdc_start, SEEK_SET);
305      size = image_fwrite(vtech1_file(machine), &vtech1_fdc_data[vtech1_fdc_start], vtech1_fdc_write);
306306      if (LOG_VTECH1_FDC)
307307         logerror("put track @$%05X+$%X $%04X/$%04X bytes\n", offs, vtech1_fdc_start, size, vtech1_fdc_write);
308308    }
r3964r3965
371371      {
372372         vtech1_drive = drive;
373373         if (vtech1_drive >= 0)
374            vtech1_get_track();
374            vtech1_get_track(space->machine);
375375        }
376376      if (vtech1_drive >= 0)
377377        {
r3964r3965
385385            if (LOG_VTECH1_FDC)
386386               logerror("vtech1_fdc_w(%d) $%02X drive %d: stepout track #%2d.%d\n", offset, data, vtech1_drive, vtech1_track_x2[vtech1_drive]/2,5*(vtech1_track_x2[vtech1_drive]&1));
387387            if ((vtech1_track_x2[vtech1_drive] & 1) == 0)
388               vtech1_get_track();
388               vtech1_get_track(space->machine);
389389            }
390390            else
391391         if ((PHI0(data) && !(PHI1(data) || PHI2(data) || PHI3(data)) && PHI3(vtech1_fdc_latch)) ||
r3964r3965
398398            if (LOG_VTECH1_FDC)
399399               logerror("vtech1_fdc_w(%d) $%02X drive %d: stepin track #%2d.%d\n", offset, data, vtech1_drive, vtech1_track_x2[vtech1_drive]/2,5*(vtech1_track_x2[vtech1_drive]&1));
400400            if ((vtech1_track_x2[vtech1_drive] & 1) == 0)
401               vtech1_get_track();
401               vtech1_get_track(space->machine);
402402            }
403403            if ((data & 0x40) == 0)
404404         {
r3964r3965
441441                {
442442                    /* data written to track before? */
443443               if (vtech1_fdc_write)
444                  vtech1_put_track();
444                  vtech1_put_track(space->machine);
445445                }
446446            vtech1_fdc_bits = 8;
447447            vtech1_fdc_write = 0;
src/mess/machine/vtech2.c
r3964r3965
372372   return INIT_PASS;
373373}
374374
375static const device_config *laser_file(void)
375static const device_config *laser_file(running_machine *machine)
376376{
377377   return image_from_devtype_and_index(machine, IO_FLOPPY, laser_drive);
378378}
379379
380static void laser_get_track(void)
380static void laser_get_track(running_machine *machine)
381381{
382382    sprintf(laser_frame_message, "#%d get track %02d", laser_drive, laser_track_x2[laser_drive]/2);
383383    laser_frame_time = 30;
r3964r3965
387387        int size, offs;
388388        size = TRKSIZE_VZ;
389389        offs = TRKSIZE_VZ * laser_track_x2[laser_drive]/2;
390        image_fseek(laser_file(), offs, SEEK_SET);
391        size = image_fread(laser_file(), laser_fdc_data, size);
390        image_fseek(laser_file(machine), offs, SEEK_SET);
391        size = image_fread(laser_file(machine), laser_fdc_data, size);
392392        logerror("get track @$%05x $%04x bytes\n", offs, size);
393393    }
394394    laser_fdc_offs = 0;
395395    laser_fdc_write = 0;
396396}
397397
398static void laser_put_track(void)
398static void laser_put_track(running_machine *machine)
399399{
400400    /* drive selected and image file ok? */
401    if( laser_drive >= 0 && laser_file() != NULL )
401    if( laser_drive >= 0 && laser_file(machine) != NULL )
402402    {
403403        int size, offs;
404404        offs = TRKSIZE_VZ * laser_track_x2[laser_drive]/2;
405        image_fseek(laser_file(), offs + laser_fdc_start, SEEK_SET);
406        size = image_fwrite(laser_file(), &laser_fdc_data[laser_fdc_start], laser_fdc_write);
405        image_fseek(laser_file(machine), offs + laser_fdc_start, SEEK_SET);
406        size = image_fwrite(laser_file(machine), &laser_fdc_data[laser_fdc_start], laser_fdc_write);
407407        logerror("put track @$%05X+$%X $%04X/$%04X bytes\n", offs, laser_fdc_start, size, laser_fdc_write);
408408    }
409409}
r3964r3965
469469        {
470470            laser_drive = drive;
471471            if( laser_drive >= 0 )
472                laser_get_track();
472                laser_get_track(space->machine);
473473        }
474474        if( laser_drive >= 0 )
475475        {
r3964r3965
482482                    laser_track_x2[laser_drive]--;
483483                logerror("laser_fdc_w(%d) $%02X drive %d: stepout track #%2d.%d\n", offset, data, laser_drive, laser_track_x2[laser_drive]/2,5*(laser_track_x2[laser_drive]&1));
484484                if( (laser_track_x2[laser_drive] & 1) == 0 )
485                    laser_get_track();
485                    laser_get_track(space->machine);
486486            }
487487            else
488488            if( (PHI0(data) && !(PHI1(data) || PHI2(data) || PHI3(data)) && PHI3(laser_fdc_latch)) ||
r3964r3965
494494                    laser_track_x2[laser_drive]++;
495495                logerror("laser_fdc_w(%d) $%02X drive %d: stepin track #%2d.%d\n", offset, data, laser_drive, laser_track_x2[laser_drive]/2,5*(laser_track_x2[laser_drive]&1));
496496                if( (laser_track_x2[laser_drive] & 1) == 0 )
497                    laser_get_track();
497                    laser_get_track(space->machine);
498498            }
499499            if( (data & 0x40) == 0 )
500500            {
r3964r3965
538538                {
539539                    /* data written to track before? */
540540                    if( laser_fdc_write )
541                        laser_put_track();
541                        laser_put_track(space->machine);
542542                }
543543                laser_fdc_bits = 8;
544544                laser_fdc_write = 0;
src/mess/machine/kc.c
r3964r3965
17341734   z80ctc_w(device, offset,data);
17351735}
17361736
1737static Z80PIO_ON_INT_CHANGED( kc85_pio_interrupt )
1737static void kc85_pio_interrupt(const device_config *device, int state)
17381738{
17391739   cpu_set_input_line(device->machine->cpu[0], 0, state);
17401740}
r3964r3965
17461746
17471747/* callback for ardy output from PIO */
17481748/* used in KC85/4 & KC85/3 cassette interface */
1749static Z80PIO_ON_ARDY_CHANGED( kc85_pio_ardy_callback )
1749static void kc85_pio_ardy_callback(const device_config *device, int state)
17501750{
17511751   kc_ardy = state & 0x01;
17521752
r3964r3965
17581758
17591759/* callback for brdy output from PIO */
17601760/* used in KC85/4 & KC85/3 keyboard interface */
1761static Z80PIO_ON_BRDY_CHANGED( kc85_pio_brdy_callback )
1761static void kc85_pio_brdy_callback(const device_config *device, int state)
17621762{
17631763   kc_brdy = state & 0x01;
17641764
r3964r3965
17681768   }
17691769}
17701770
1771Z80PIO_INTERFACE( kc85_pio_intf )
1771const z80pio_interface kc85_pio_intf =
17721772{
1773   "main",
1774   0,
17751773   kc85_pio_interrupt,      /* callback when change interrupt status */
17761774   NULL,
17771775   NULL,
src/mess/mess.mak
r3964r3965
475475   $(MESSOBJ)/vector06.a \
476476   $(MESSOBJ)/votrax.a \
477477   $(MESSOBJ)/shared.a \
478   $(MESSOBJ)/super80.a \
479   $(MESSOBJ)/acorn.a \
480   $(MESSOBJ)/luxor.a \
481   $(MESSOBJ)/mbee.a \
482   $(MESSOBJ)/multitch.a \
483   $(MESSOBJ)/nascom1.a \
484   $(MESSOBJ)/sord.a \
485   $(MESSOBJ)/veb.a \
478486
479#   $(MESSOBJ)/acorn.a \
480487#   $(MESSOBJ)/kramermc.a \
481#   $(MESSOBJ)/luxor.a \
482#   $(MESSOBJ)/mbee.a \
483#   $(MESSOBJ)/multitch.a \
484#   $(MESSOBJ)/nascom1.a \
485#   $(MESSOBJ)/sord.a \
486#   $(MESSOBJ)/super80.a \
487488#   $(MESSOBJ)/tatung.a \
488489#   $(MESSOBJ)/ti99.a \
489490#   $(MESSOBJ)/thomson.a \
490#   $(MESSOBJ)/veb.a \
491491#   $(MESSOBJ)/vtech.a \
492492
493493
src/mess/drivers/sord.c
r3964r3965
123123
124124   LOG(("fd5 drive state w: %02x\n",state));
125125
126   floppy_drive_set_motor_state(image_from_devtype_and_index(machine, IO_FLOPPY, 0), state);
127   floppy_drive_set_motor_state(image_from_devtype_and_index(machine, IO_FLOPPY, 0), state);
128   floppy_drive_set_ready_state(image_from_devtype_and_index(machine, IO_FLOPPY, 1), 1,1);
129   floppy_drive_set_ready_state(image_from_devtype_and_index(machine, IO_FLOPPY, 1), 1,1);
126   floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), state);
127   floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), state);
128   floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1,1);
129   floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1,1);
130130}
131131
132132static WRITE8_HANDLER(fd5_tc_w)
r3964r3965
692692ROM_END
693693
694694static FLOPPY_OPTIONS_START( sordm5 )
695   FLOPPY_OPTION( sordm5, "dsk",         "Sord M5 disk image",   basicdsk_identify_default,   basicdsk_construct_default,
695   FLOPPY_OPTION( sordm5, "dsk", "Sord M5 disk image", basicdsk_identify_default, basicdsk_construct_default,
696696      HEADS([1])
697697      TRACKS([40])
698698      SECTORS([18])
r3964r3965
727727SYSTEM_CONFIG_END
728728
729729/*    YEAR  NAME        PARENT  COMPAT  MACHINE         INPUT       INIT    CONFIG      COMPANY     FULLNAME */
730COMP( 1983, sordm5,      0,      0,      sord_m5,      sord_m5,   0,      sordm5,      "Sord",      "Sord M5", 0)
731COMP(1983, srdm5fd5,   sordm5,      0,      sord_m5_fd5,   sord_m5,   0,      srdm5fd5,   "Sord",      "Sord M5 + PI5 + FD5", 0 )
730COMP(1983, sordm5,   0,   0,   sord_m5,   sord_m5,   0,   sordm5,      "Sord",   "Sord M5", 0)
731COMP(1983, srdm5fd5,   sordm5,   0,   sord_m5_fd5,   sord_m5,   0,   srdm5fd5,   "Sord",   "Sord M5 + PI5 + FD5", 0 )
src/mess/drivers/mbee.c
r3964r3965
6262   return device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette" );
6363}
6464
65static READ8_DEVICE_HANDLER(z80pio_alt_r)
66{
67   int channel = BIT(offset, 1);
68
69   return (offset & 1) ? z80pio_c_r(device, channel) : z80pio_d_r(device, channel);
70}
71
72static WRITE8_DEVICE_HANDLER(z80pio_alt_w)
73{
74   int channel = BIT(offset, 1);
75
76   if (offset & 1)
77      z80pio_c_w(device, channel, data);
78   else
79      z80pio_d_w(device, channel, data);
80}
81
6582static QUICKLOAD_LOAD( mbee );
6683static Z80BIN_EXECUTE( mbee );
6784
r3964r3965
288305
289306static int mbee_vsync;
290307
291static Z80PIO_ON_INT_CHANGED( pio_interrupt )
308static void mbee_pio_interrupt(const device_config *device, int state)
292309{
293310   cpu_set_input_line(device->machine->cpu[0], 0, state);
294311}
r3964r3965
338355
339356static const z80pio_interface mbee_z80pio_intf =
340357{
341   "main",
342   0,
343   pio_interrupt,   /* callback when change interrupt status */
358   mbee_pio_interrupt,   /* callback when change interrupt status */
344359   NULL,
345360   pio_port_b_r,
346361   NULL,
r3964r3965
357372
358373static INTERRUPT_GEN( mbee_interrupt )
359374{
360   /* once per frame, pulse the PIO B bit 7 */
375   /* once per frame, pulse the PIO B bit 7 - only needed for networked bees */
361376   mbee_vsync = 1;
362377}
363378
src/mess/drivers/mpf1.c
r3964r3965
277277
278278/* Z80 PIO Interface */
279279
280static Z80PIO_ON_INT_CHANGED( mpf1_pio_interrupt )
280static void mpf1_pio_interrupt(const device_config *device, int state)
281281{
282282   logerror("pio irq state: %02x\n",state);
283283}
284284
285static Z80PIO_INTERFACE( pio_intf )
285static const z80pio_interface mpf1_pio_intf =
286286{
287   "main",
288   0,
289287   mpf1_pio_interrupt,
290288   NULL,
291289   NULL,
r3964r3965
456454
457455   MDRV_MACHINE_RESET( mpf1 )
458456
459   MDRV_Z80PIO_ADD( "z80pio", pio_intf )
457   MDRV_Z80PIO_ADD( "z80pio", mpf1_pio_intf )
460458
461459   MDRV_PPI8255_ADD( "ppi8255", ppi8255_intf )
462460
src/mess/drivers/super80.c
r3964r3965
347347
348348static UINT8 keylatch;
349349
350static Z80PIO_ON_INT_CHANGED( pio_interrupt )
350static void super80_pio_interrupt(const device_config *device, int state)
351351{
352   cpu_set_input_line( device->machine->cpu[0], 0, state ? ASSERT_LINE : CLEAR_LINE );
352//128u7   cputag_set_input_line(device->machine, "main", 0, state );
353353}
354354
355355static WRITE8_DEVICE_HANDLER( pio_port_a_w )
r3964r3965
372372   return data;
373373};
374374
375static Z80PIO_INTERFACE( pio_intf )
375static const z80pio_interface super80_pio_intf =
376376{
377   "main",
378   0,
379   pio_interrupt,      /* callback when change interrupt status */
377   super80_pio_interrupt,      /* callback when change interrupt status */
380378   NULL,
381379   pio_port_b_r,
382380   pio_port_a_w,
r3964r3965
10241022
10251023   MDRV_MACHINE_RESET( super80 )
10261024
1027   MDRV_Z80PIO_ADD( "z80pio", pio_intf )
1025   MDRV_Z80PIO_ADD( "z80pio", super80_pio_intf )
10281026
10291027   MDRV_GFXDECODE(super80)
10301028   MDRV_SCREEN_ADD("main", RASTER)
r3964r3965
10781076
10791077   MDRV_MACHINE_RESET( super80 )
10801078
1081   MDRV_Z80PIO_ADD( "z80pio", pio_intf )
1079   MDRV_Z80PIO_ADD( "z80pio", super80_pio_intf )
10821080
10831081   MDRV_GFXDECODE(super80v)
10841082   MDRV_SCREEN_ADD("main", RASTER)
src/mess/drivers/nascom1.c
r3964r3965
262262};
263263
264264
265static Z80PIO_INTERFACE( nascom1_z80pio_intf )
265static const z80pio_interface nascom1_z80pio_intf =
266266{
267   "main",
268   0,
269267   NULL,
270268   NULL,
271269   NULL,
src/mess/drivers/einstein.c
r3964r3965
411411   cpu_set_input_line(device->machine->cpu[0], 1, state);
412412}
413413
414static Z80PIO_ON_INT_CHANGED( einstein_pio_interrupt )
414static void einstein_pio_interrupt(const device_config *device, int state)
415415{
416416   logerror("pio irq state: %02x\n",state);
417417   cpu_set_input_line(device->machine->cpu[0], 3, state);
r3964r3965
431431
432432static const z80ctc_interface einstein_ctc_intf =
433433{
434   "main",
435   EINSTEIN_SYSTEM_CLOCK,
436434   0,
437435   einstein_ctc_interrupt,
438436   einstein_serial_transmit_clock,
r3964r3965
440438   z80ctc_trg3_w
441439};
442440
443static Z80PIO_ON_ARDY_CHANGED( einstein_pio_ardy )
441static void einstein_pio_ardy(const device_config *device, int state)
444442{
445443   int handshake;
446444
r3964r3965
461459}
462460
463461
464static Z80PIO_INTERFACE( einstein_pio_intf )
462static const z80pio_interface einstein_pio_intf =
465463{
466   "main",
467   0,
468464   einstein_pio_interrupt,
469465   NULL,
470466   NULL,
r3964r3965
17271723   MDRV_MACHINE_RESET( einstein )
17281724
17291725   MDRV_Z80PIO_ADD( "z80pio", einstein_pio_intf )
1730   MDRV_Z80CTC_ADD( "z80ctc", einstein_ctc_intf )
1726   MDRV_Z80CTC_ADD( "z80ctc", EINSTEIN_SYSTEM_CLOCK, einstein_ctc_intf )
17311727   MDRV_DEVICE_ADD( "keyboard_daisy", DEVICE_GET_INFO_NAME( einstein_daisy ) )
17321728   MDRV_DEVICE_ADD( "adc_daisy", DEVICE_GET_INFO_NAME( einstein_daisy ) )
17331729
src/mess/drivers/bbcbc.c
r3964r3965
1313#include "cpu/z80/z80.h"
1414#include "video/tms9928a.h"
1515#include "machine/z80pio.h"
16#include "cpu/z80/z80daisy.h"
1617#include "devices/cartslot.h"
1718
1819static ADDRESS_MAP_START( bbcbc_prg, ADDRESS_SPACE_PROGRAM, 8 )
r3964r3965
3536
3637static INTERRUPT_GEN( bbcbc_interrupt )
3738{
38    TMS9928A_interrupt(device->machine);
39   TMS9928A_interrupt(device->machine);
3940}
4041
4142static const TMS9928a_interface tms9129_interface =
r3964r3965
5859   NULL   /* ready b */
5960};
6061
62static const z80_daisy_chain bbcbc_daisy_chain[] =
63{
64   { Z80PIO, "z80pio" },
65   { NULL }
66};
67
6168static MACHINE_START( bbcbc )
6269{
6370   TMS9928A_configure(&tms9129_interface);
r3964r3965
7279   MDRV_CPU_ADD( "main", Z80, 4000000 )
7380   MDRV_CPU_PROGRAM_MAP( bbcbc_prg, 0 )
7481   MDRV_CPU_IO_MAP( bbcbc_io, 0 )
82   MDRV_CPU_CONFIG(bbcbc_daisy_chain)
83   MDRV_CPU_VBLANK_INT("main", bbcbc_interrupt)
7584
7685   MDRV_MACHINE_START( bbcbc )
7786   MDRV_MACHINE_RESET( bbcbc )
7887
7988   MDRV_Z80PIO_ADD( "z80pio", bbcbc_z80pio_intf )
8089
81   MDRV_CPU_VBLANK_INT("main", bbcbc_interrupt)
8290   MDRV_IMPORT_FROM( tms9928a )
8391   MDRV_SCREEN_MODIFY("main")
8492   MDRV_SCREEN_REFRESH_RATE( 50 )
r3964r3965
93101ROM_END
94102
95103static SYSTEM_CONFIG_START( bbcbc )
96    CONFIG_DEVICE(cartslot_device_getinfo)
104   CONFIG_DEVICE(cartslot_device_getinfo)
97105SYSTEM_CONFIG_END
98106
99107/***************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team