Previous 15994 Revisions Next

r9096 Sunday 12th September, 2010 at 06:07:13 UTC by Curt Coder
[CONKORT] Added DS/DD dips to slow controller, some dips to fast controller, and proper dump of the fast controller ROM.
[src/mess/drivers]abc80.c abc80x.c
[src/mess/machine]conkort.c

src/mess/machine/conkort.c
r9095r9096
5151    CON1    - ABC bus connector
5252    CON2    - 25-pin D sub floppy connector (AMP4284)
5353    SW1     - Disk drive type (SS/DS, SD/DD)
54    S1      -
54    S1      - ABC bus card address bit 0
5555    S2      -
5656    S3      -
5757    S4      -
r9095r9096
6060    S7      -
6161    S8      -
6262    S9      -
63    LD1     -
63    LD1     - LED
6464
6565PCB Layout
6666----------
r9095r9096
170170        0704: rr   a
171171        0706: call $073F
172172
173    - DS/DD SS/DS jumpers
174    - S1-S5 jumpers
173    - S2-S5 jumpers
174   - ABC80 ERR 48 on boot
175   - side select makes controller go crazy and try to WRITE_TRK
175176
176177    Fast Controller
177178    ---------------
179   - controller reads a couple of sectors on boot, bails out, and starts to STEP_OUT ad infinitum
178180   - Z80 DMA reset command is broken (it keeps resetting A/B port addresses)
179181   - status bit 0 (busy) ?
182   - 2KB RAM option
183   - some SW2 options make controller try to WRITE_TRK
180184
181185*/
182186
r9095r9096
218222   int fdc_irq;         /* floppy interrupt */
219223   int fdc_drq;         /* floppy data request */
220224   int wait_enable;      /* wait enable */
225   int sel0;            /* drive select 0 */
226   int sel1;            /* drive select 1 */
221227
222228   /* devices */
223229   running_device *bus;
r9095r9096
282288WRITE8_DEVICE_HANDLER( luxor_55_10828_cs_w )
283289{
284290   slow_t *conkort = get_safe_token_slow(device);
291   UINT8 address = 0x2c | BIT(input_port_read(device->machine, "luxor_55_10828:S1"), 0);
285292
286   conkort->cs = (data == 0x2d); // TODO: bit 0 of this is configurable with S1
293   conkort->cs = (data == address);
287294}
288295
289296READ8_DEVICE_HANDLER( luxor_55_10828_inp_r )
r9095r9096
385392   if (BIT(data, 0)) wd17xx_set_drive(device, 0);
386393   if (BIT(data, 1)) wd17xx_set_drive(device, 1);
387394//  if (BIT(data, 2)) wd17xx_set_drive(device, 2);
395   conkort->sel0 = BIT(data, 0);
396   conkort->sel1 = BIT(data, 1);
388397
389398   /* motor enable */
390399   floppy_mon_w(conkort->image0, BIT(data, 3));
r9095r9096
393402   floppy_drive_set_ready_state(conkort->image1, 1, 1);
394403
395404   /* disk side selection */
396//  wd17xx_set_side(device, BIT(data, 4));
405   //wd17xx_set_side(device, BIT(data, 4));
397406
398407   /* wait enable */
399408   conkort->wait_enable = BIT(data, 6);
400409
401410   /* FDC master reset */
402411   wd17xx_mr_w(device, BIT(data, 7));
403
404   logerror("CTRL %02x\n", data);
405412}
406413
407414static WRITE8_DEVICE_HANDLER( slow_status_w )
r9095r9096
481488{
482489   fast_t *conkort = get_safe_token_fast(device);
483490
484   conkort->cs = (data == input_port_read(device->machine, "abc830:SW3"));
491   conkort->cs = (data == input_port_read(device->machine, "luxor_55_21046:SW3"));
485492}
486493
487494READ8_DEVICE_HANDLER( luxor_55_21046_stat_r )
r9095r9096
557564
558565static READ8_DEVICE_HANDLER( fast_3d_r )
559566{
560   /*
561
562      bit      description
563
564      0     
565      1     
566      2     
567      3     
568      4     
569      5     
570      6     
571      7     
572
573   */
574
575567   fast_t *conkort = get_safe_token_fast(device->owner());
576568
577569   conkort->busy = 0;
578   logerror("3d read %02x\n", conkort->data_in);
570
579571   return conkort->data_in;
580572}
581573
582574static WRITE8_DEVICE_HANDLER( fast_4d_w )
583575{
584   /*
585
586      bit      description
587
588      0     
589      1     
590      2     
591      3     
592      4     
593      5     
594      6     
595      7     
596
597   */
598
599576   fast_t *conkort = get_safe_token_fast(device->owner());
600577   
601578   conkort->busy = 0;
602   logerror("4d write %02x\n", data);
579
603580   conkort->data_out = data;
604581}
605582
r9095r9096
698675      0      3A.8 (busy)
699676      1      50-pin floppy connector pin 10, not used
700677      2      3A.12 (SW2)
701      3      ?
678      3      ? GND
702679      4      SW1-1
703680      5      SW1-2
704681      6      SW1-3
r9095r9096
714691   data |= (conkort->busy & BIT(conkort->status, 0));
715692
716693   /* SW1 */
717   UINT8 sw1 = input_port_read(device->machine, "abc830:SW1") & 0x0f;
694   UINT8 sw1 = input_port_read(device->machine, "luxor_55_21046:SW1") & 0x0f;
718695
719696   data |= sw1 << 4;
720697
721698   /* SW2 */
722   UINT8 sw2 = input_port_read(device->machine, "abc830:SW2") & 0x0f;
699   UINT8 sw2 = input_port_read(device->machine, "luxor_55_21046:SW2") & 0x0f;
723700
724701   int sw2_1 = BIT(offset, 8) & BIT(sw2, 0);
725702   int sw2_2 = BIT(offset, 9) & BIT(sw2, 1);
r9095r9096
738715
739716static ADDRESS_MAP_START( slow_map, ADDRESS_SPACE_PROGRAM, 8 )
740717   ADDRESS_MAP_GLOBAL_MASK(0x1fff)
741   AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0x0800) AM_ROM AM_REGION("abc830:abc830", 0)
718   AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0x0800) AM_ROM AM_REGION("luxor_55_10828:abc830", 0)
742719   AM_RANGE(0x1000, 0x13ff) AM_MIRROR(0x0c00) AM_RAM
743720ADDRESS_MAP_END
744721
r9095r9096
755732static ADDRESS_MAP_START( fast_map, ADDRESS_SPACE_PROGRAM, 8 )
756733   ADDRESS_MAP_UNMAP_HIGH
757734   ADDRESS_MAP_GLOBAL_MASK(0x3fff)
758   AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION("abc830:conkort", 0) // TODO , 0x2000
735   AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION("luxor_55_21046:conkort", 0x2000)
759736   AM_RANGE(0x2000, 0x3fff) AM_RAM
760737ADDRESS_MAP_END
761738
r9095r9096
776753
777754INPUT_PORTS_START( luxor_55_10828 )
778755   PORT_START("luxor_55_10828:SW1")
779   PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1")
780   PORT_DIPSETTING(    0x00, DEF_STR( Single ) )
781   PORT_DIPSETTING(    0x01, "Double" )
782   PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2")
783   PORT_DIPSETTING(    0x00, DEF_STR( Single ) )
784   PORT_DIPSETTING(    0x02, "Double" )
756   PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1")
757   PORT_DIPSETTING(    0x01, DEF_STR( Single ) )
758   PORT_DIPSETTING(    0x00, "Double" )
759   PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2")
760   PORT_DIPSETTING(    0x02, DEF_STR( Single ) )
761   PORT_DIPSETTING(    0x00, "Double" )
785762   PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3")
786   PORT_DIPSETTING(    0x00, DEF_STR( Single ) )
787   PORT_DIPSETTING(    0x04, "Double" )
763   PORT_DIPSETTING(    0x04, DEF_STR( Single ) )
764   PORT_DIPSETTING(    0x00, "Double" )
788765   PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4")
789   PORT_DIPSETTING(    0x00, DEF_STR( Single ) )
790   PORT_DIPSETTING(    0x08, "Double" )
766   PORT_DIPSETTING(    0x08, DEF_STR( Single ) )
767   PORT_DIPSETTING(    0x00, "Double" )
768
769   PORT_START("luxor_55_10828:S1")
770   PORT_DIPNAME( 0x01, 0x01, "Card Address" ) PORT_DIPLOCATION("S1:1")
771   PORT_DIPSETTING(    0x00, "44" )
772   PORT_DIPSETTING(    0x01, "45" )
791773INPUT_PORTS_END
792774
793775INPUT_PORTS_START( luxor_55_21046 )
794   PORT_START("abc830:SW1")
776   PORT_START("luxor_55_21046:SW1")
795777   // ABC 838
796   PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1,2,3,4") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
797   PORT_DIPSETTING(    0x00, DEF_STR( Unused ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
778   PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1,2,3,4") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
779   PORT_DIPSETTING(    0x00, DEF_STR( Unused ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
798780   // ABC 830
799   PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
800   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
801   PORT_DIPSETTING(    0x01, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
802   PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
803   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
804   PORT_DIPSETTING(    0x02, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
805   PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
806   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
807   PORT_DIPSETTING(    0x04, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
808   PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
809   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
810   PORT_DIPSETTING(    0x08, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
781   PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
782   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
783   PORT_DIPSETTING(    0x01, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
784   PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
785   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
786   PORT_DIPSETTING(    0x02, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
787   PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
788   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
789   PORT_DIPSETTING(    0x04, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
790   PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
791   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
792   PORT_DIPSETTING(    0x08, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
811793   // ABC 832/834/850
812   PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
813   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
814   PORT_DIPSETTING(    0x01, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
815   PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
816   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
817   PORT_DIPSETTING(    0x02, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
818   PORT_DIPNAME( 0x04, 0x00, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
819   PORT_DIPSETTING(    0x00, "80" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
820   PORT_DIPSETTING(    0x04, "40" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
821   PORT_DIPNAME( 0x08, 0x00, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
822   PORT_DIPSETTING(    0x00, "80" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
823   PORT_DIPSETTING(    0x08, "40" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
794   PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
795   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
796   PORT_DIPSETTING(    0x01, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
797   PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
798   PORT_DIPSETTING(    0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
799   PORT_DIPSETTING(    0x02, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
800   PORT_DIPNAME( 0x04, 0x00, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
801   PORT_DIPSETTING(    0x00, "80" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
802   PORT_DIPSETTING(    0x04, "40" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
803   PORT_DIPNAME( 0x08, 0x00, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
804   PORT_DIPSETTING(    0x00, "80" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
805   PORT_DIPSETTING(    0x08, "40" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
824806
825   PORT_START("abc830:SW2")
807   PORT_START("luxor_55_21046:SW2")
826808   PORT_DIPNAME( 0x0f, 0x0b, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4")
827   PORT_DIPSETTING(    0x0e, "TEAC FD55F (ABC 834)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 7802-01
828   PORT_DIPSETTING(    0x0d, "BASF 6138 (ABC 850)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 8440-15
829   PORT_DIPSETTING(    0x0c, "Micropolis 1015F (ABC 832)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-15
830   PORT_DIPSETTING(    0x0b, "BASF 6118 (ABC 832)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-16
831   PORT_DIPSETTING(    0x0a, "Micropolis 1115F (ABC 832)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-17
832   PORT_DIPSETTING(    0x07, "BASF 6106/08 (ABC 830)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16
833   PORT_DIPSETTING(    0x06, "MPI 51 (ABC 830)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16
834   PORT_DIPSETTING(    0x01, "BASF 6105 (ABC 838)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
835   PORT_DIPSETTING(    0x00, "BASF 6106 (ABC 838)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) // 230 8838-15
809   PORT_DIPSETTING(    0x0e, "TEAC FD55F (ABC 834)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 7802-01
810   PORT_DIPSETTING(    0x0d, "BASF 6138 (ABC 850)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 8440-15
811   PORT_DIPSETTING(    0x0c, "Micropolis 1015F (ABC 832)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-15
812   PORT_DIPSETTING(    0x0b, "BASF 6118 (ABC 832)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-16
813   PORT_DIPSETTING(    0x0a, "Micropolis 1115F (ABC 832)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-17
814   PORT_DIPSETTING(    0x07, "BASF 6106/08 (ABC 830)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16
815   PORT_DIPSETTING(    0x06, "MPI 51 (ABC 830)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16
816   PORT_DIPSETTING(    0x01, "BASF 6105 (ABC 838)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
817   PORT_DIPSETTING(    0x00, "BASF 6106 (ABC 838)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) // 230 8838-15
836818   
837   PORT_START("abc830:SW3")
819   PORT_START("luxor_55_21046:SW3")
838820   PORT_DIPNAME( 0x7f, 0x2c, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7")
839821   PORT_DIPSETTING(    0x2c, "44 (ABC 832/834/850)" )
840822   PORT_DIPSETTING(    0x2d, "45 (ABC 830)" )
841823   PORT_DIPSETTING(    0x2e, "46 (ABC 838)" )
824
825   PORT_START("luxor_55_21046:S6")
826   PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) PORT_DIPLOCATION("S6:1")
827   PORT_DIPSETTING(    0x00, "2 KB" )
828   PORT_DIPSETTING(    0x01, "8 KB" )
829
830   PORT_START("luxor_55_21046:S8")
831   PORT_DIPNAME( 0x01, 0x01, "Drive Type" ) PORT_DIPLOCATION("S8:1")
832   PORT_DIPSETTING(    0x00, "8\"" )
833   PORT_DIPSETTING(    0x01, "5.25\"" )
834
835   PORT_START("luxor_55_21046:S9")
836   PORT_DIPNAME( 0x01, 0x01, "RDY Pin" ) PORT_DIPLOCATION("S9:1")
837   PORT_DIPSETTING(    0x00, "P2-6 (8\")" )
838   PORT_DIPSETTING(    0x01, "P2-34 (5.25\")" )
842839INPUT_PORTS_END
843840
844841/* Z80 PIO */
r9095r9096
876873
877874   slow_t *conkort = get_safe_token_slow(device->owner());
878875
879   UINT8 data = 4;
876   UINT8 data = 0x04;
880877
881878   /* single/double sided drive */
882//  data |= 0x01;
879   UINT8 sw1 = input_port_read(device->machine, "luxor_55_10828:SW1") & 0x0f;
880   int ds0 = conkort->sel0 ? BIT(sw1, 0) : 1;
881   int ds1 = conkort->sel1 ? BIT(sw1, 1) : 1;
882   data |= !(ds0 & ds1);
883883
884884   /* single/double density drive */
885   data |= 0x02;
885   int dd0 = conkort->sel0 ? BIT(sw1, 2) : 1;
886   int dd1 = conkort->sel1 ? BIT(sw1, 3) : 1;
887   data |= !(dd0 & dd1) << 1;
886888
887889   /* radial/binary drive select */
888890   data |= 0x10;
r9095r9096
11311133ROM_END
11321134
11331135ROM_START( luxor_55_21046 )
1134   ROM_REGION( 0x10000, "conkort", ROMREGION_LOADBYNAME )
1135   ROM_LOAD( "fast108.6cd", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
1136   ROM_LOAD( "fast207.6cd", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
1137   ROM_LOAD( "cntr 1.07 6490318-07.6cd", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
1136   ROM_REGION( 0x4000, "conkort", ROMREGION_LOADBYNAME ) // A13 is always high
1137   ROM_LOAD( "fast108.6cd", 0x2000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
1138   ROM_LOAD( "fast207.6cd", 0x2000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
1139   ROM_LOAD( "cntr 1.07 6490318-07.6cd", 0x0000, 0x4000, CRC(db8c1c0e) SHA1(8bccd5bc72124984de529ee058df779f06d2c1d5) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
11381140ROM_END
11391141
11401142ROM_START( myab_turbo_kontroller )
r9095r9096
11861188   state_save_register_device_item(device, 0, conkort->fdc_irq);
11871189   state_save_register_device_item(device, 0, conkort->fdc_drq);
11881190   state_save_register_device_item(device, 0, conkort->wait_enable);
1191   state_save_register_device_item(device, 0, conkort->sel0);
1192   state_save_register_device_item(device, 0, conkort->sel1);
11891193
11901194   /* patch out protection checks */
11911195   UINT8 *rom = device->subregion("abc830")->base();
r9095r9096
12591263   conkort->image0 = device->subdevice(FLOPPY_0);
12601264   conkort->image1 = device->subdevice(FLOPPY_1);
12611265
1266   conkort->dma_irq = 0;
12621267   conkort->fdc_irq = 0;
12631268   conkort->busy = 0;
12641269
r9095r9096
12681273   state_save_register_device_item(device, 0, conkort->data_in);
12691274   state_save_register_device_item(device, 0, conkort->data_out);
12701275   state_save_register_device_item(device, 0, conkort->fdc_irq);
1276   state_save_register_device_item(device, 0, conkort->dma_irq);
1277   state_save_register_device_item(device, 0, conkort->busy);
12711278}
12721279
12731280/*-------------------------------------------------
src/mess/drivers/abc80.c
r9095r9096
343343   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )
344344   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )
345345   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
346
347   PORT_INCLUDE(luxor_55_10828)
346348INPUT_PORTS_END
347349
348350/* Sound Interface */
r9095r9096
488490
489491static ABCBUS_DAISY( abcbus_daisy )
490492{
491   { LUXOR_55_10828_ABCBUS("abc830") },
493   { LUXOR_55_10828_ABCBUS("luxor_55_10828") },
492494   { NULL }
493495};
494496
r9095r9096
535537
536538   /* Luxor Conkort 55-10828 */
537539   MDRV_ABCBUS_ADD(ABCBUS_TAG, abcbus_daisy, Z80_TAG)
538   MDRV_LUXOR_55_10828_ADD("abc830", ABCBUS_TAG)
540   MDRV_LUXOR_55_10828_ADD("luxor_55_10828", ABCBUS_TAG)
539541
540542   /* video hardware */
541543   MDRV_FRAGMENT_ADD(abc80_video)
src/mess/drivers/abc80x.c
r9095r9096
10121012
10131013static ABCBUS_DAISY( abcbus_daisy )
10141014{
1015//   { LUXOR_55_21046_ABCBUS("abc830") },
1015   { LUXOR_55_21046_ABCBUS("luxor_55_21046") },
10161016   { NULL }
10171017};
10181018
r9095r9096
11811181
11821182   /* ABC bus */
11831183   MDRV_ABCBUS_ADD(ABCBUS_TAG, abcbus_daisy, Z80_TAG)
1184   MDRV_LUXOR_55_21046_ADD("abc830", ABCBUS_TAG)
1184   MDRV_LUXOR_55_21046_ADD("luxor_55_21046", ABCBUS_TAG)
11851185
11861186   /* fake keyboard */
11871187   MDRV_TIMER_ADD_PERIODIC("keyboard", keyboard_tick, USEC(2500))
r9095r9096
12231223
12241224   /* ABC bus */
12251225   MDRV_ABCBUS_ADD(ABCBUS_TAG, abcbus_daisy, Z80_TAG)
1226   MDRV_LUXOR_55_21046_ADD("abc830", ABCBUS_TAG)
1226   MDRV_LUXOR_55_21046_ADD("luxor_55_21046", ABCBUS_TAG)
12271227
12281228   /* fake keyboard */
12291229   MDRV_TIMER_ADD_PERIODIC("keyboard", keyboard_tick, USEC(2500))
r9095r9096
12651265
12661266   /* ABC bus */
12671267   MDRV_ABCBUS_ADD(ABCBUS_TAG, abcbus_daisy, Z80_TAG)
1268   MDRV_LUXOR_55_21046_ADD("abc830", ABCBUS_TAG)
1268   MDRV_LUXOR_55_21046_ADD("luxor_55_21046", ABCBUS_TAG)
12691269
12701270   /* fake keyboard */
12711271   MDRV_TIMER_ADD_PERIODIC("keyboard", keyboard_tick, USEC(2500))
r9095r9096
13041304
13051305   /* ABC bus */
13061306   MDRV_ABCBUS_ADD(ABCBUS_TAG, abcbus_daisy, Z80_TAG)
1307   MDRV_LUXOR_55_21046_ADD("abc830", ABCBUS_TAG)
1307   MDRV_LUXOR_55_21046_ADD("luxor_55_21046", ABCBUS_TAG)
13081308
13091309   /* fake keyboard */
13101310   MDRV_TIMER_ADD_PERIODIC("keyboard", keyboard_tick, USEC(2500))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team