Previous 199869 Revisions Next

r26152 Wednesday 13th November, 2013 at 22:42:10 UTC by Curt Coder
(MESS) abc800: The hard disk units have only one floppy drive. (nw)
[src/emu/bus/abcbus]abc890.c abcbus.c lux21046.c lux21046.h

trunk/src/emu/bus/abcbus/lux21046.h
r26151r26152
171171};
172172
173173
174// ======================> abc850_floppy_device
175
176class abc850_floppy_device :  public luxor_55_21046_device
177{
178public:
179   // construction/destruction
180   abc850_floppy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
181
182   // optional information overrides
183   virtual machine_config_constructor device_mconfig_additions() const;
184   virtual ioport_constructor device_input_ports() const;
185};
186
187
174188// device type definition
175189extern const device_type LUXOR_55_21046;
176190extern const device_type ABC830;
177191extern const device_type ABC832;
178192extern const device_type ABC834;
179193extern const device_type ABC838;
194extern const device_type ABC850_FLOPPY;
180195
181196
182// default input ports
183extern const input_device_default DEVICE_INPUT_DEFAULTS_NAME( abc850_fast )[];
184197
185
186
187198#endif
trunk/src/emu/bus/abcbus/abc890.c
r26151r26152
7777//-------------------------------------------------
7878
7979static MACHINE_CONFIG_FRAGMENT( abc850 )
80   MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast")
81   MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast)
80   MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "abc850fdd")
8281   MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec")
8382   MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "ro202")
8483   MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL)
r26151r26152
105104//-------------------------------------------------
106105
107106static MACHINE_CONFIG_FRAGMENT( abc852 )
108   MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast")
109   MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast)
107   MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "abc850fdd")
110108   MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec")
111109   MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "basf6185")
112110   MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL)
r26151r26152
133131//-------------------------------------------------
134132
135133static MACHINE_CONFIG_FRAGMENT( abc856 )
136   MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast")
137   MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast)
134   MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "abc850fdd")
138135   MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec")
139136   MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "micr1325")
140137   MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL)
trunk/src/emu/bus/abcbus/abcbus.c
r26151r26152
8989   SLOT_INTERFACE("abc834", ABC834)
9090   SLOT_INTERFACE("abc838", ABC838)
9191   SLOT_INTERFACE("abc850", ABC850)
92   SLOT_INTERFACE_INTERNAL("abc850fdd", ABC850_FLOPPY)
9293   SLOT_INTERFACE("abc852", ABC852)
9394   SLOT_INTERFACE("abc856", ABC856)
9495   SLOT_INTERFACE("abc890", ABC890)
trunk/src/emu/bus/abcbus/lux21046.c
r26151r26152
101101const device_type ABC832 = &device_creator<abc832_device>;
102102const device_type ABC834 = &device_creator<abc834_device>;
103103const device_type ABC838 = &device_creator<abc838_device>;
104const device_type ABC850_FLOPPY = &device_creator<abc850_floppy_device>;
104105
105106
106107//-------------------------------------------------
r26151r26152
317318
318319
319320//-------------------------------------------------
321//  MACHINE_CONFIG( abc850 )
322//-------------------------------------------------
323
324static MACHINE_CONFIG_DERIVED( abc850, luxor_55_21046 )
325   MCFG_DEVICE_MODIFY(SAB1793_TAG":1")
326   MCFG_DEVICE_SLOT_INTERFACE(abc_floppies, NULL, false)
327MACHINE_CONFIG_END
328
329
330//-------------------------------------------------
320331//  machine_config_additions - device-specific
321332//  machine configurations
322333//-------------------------------------------------
r26151r26152
331342   return MACHINE_CONFIG_NAME( abc838 );
332343}
333344
345machine_config_constructor abc850_floppy_device::device_mconfig_additions() const
346{
347   return MACHINE_CONFIG_NAME( abc850 );
348}
334349
350
335351//-------------------------------------------------
336352//  INPUT_PORTS( luxor_55_21046 )
337353//-------------------------------------------------
r26151r26152
599615
600616
601617//-------------------------------------------------
618//  INPUT_PORTS( abc850 )
619//-------------------------------------------------
620
621INPUT_PORTS_START( abc850 )
622   PORT_START("SW1")
623   PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sides" ) PORT_DIPLOCATION("SW1:1")
624   PORT_DIPSETTING(    0x00, DEF_STR( Single ) )
625   PORT_DIPSETTING(    0x01, "Double" )
626   PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sides" ) PORT_DIPLOCATION("SW1:2")
627   PORT_DIPSETTING(    0x00, DEF_STR( Single ) )
628   PORT_DIPSETTING(    0x02, "Double" )
629   PORT_DIPNAME( 0x04, 0x04, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3")
630   PORT_DIPSETTING(    0x00, "40" )
631   PORT_DIPSETTING(    0x04, "80" )
632   PORT_DIPNAME( 0x08, 0x08, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4")
633   PORT_DIPSETTING(    0x00, "40" )
634   PORT_DIPSETTING(    0x08, "80" )
635
636   PORT_START("SW2")
637   PORT_DIPNAME( 0x0f, 0x02, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4")
638   PORT_DIPSETTING(    0x01, "TEAC FD55F" )
639   PORT_DIPSETTING(    0x02, "BASF 6138" )
640
641   PORT_START("SW3")
642   PORT_DIPNAME( 0x7f, 0x2c, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7")
643   PORT_DIPSETTING(    0x2c, "44" )
644   
645   PORT_START("S1") // also S3,S5
646   PORT_DIPNAME( 0x01, 0x01, "Interface Type" )
647   PORT_DIPSETTING(    0x00, "ABC 1600" )
648   PORT_DIPSETTING(    0x01, "ABC 80/800/802/806" )
649
650   PORT_START("S6")
651   PORT_DIPNAME( 0x01, 0x01, "RAM Size" )
652   PORT_DIPSETTING(    0x00, "2 KB" )
653   PORT_DIPSETTING(    0x01, "8 KB" )
654
655   PORT_START("S8")
656   PORT_DIPNAME( 0x01, 0x01, "Drive Type" )
657   PORT_DIPSETTING(    0x00, "8\"" )
658   PORT_DIPSETTING(    0x01, "5.25\"" )
659
660   PORT_START("S9")
661   PORT_DIPNAME( 0x01, 0x01, "RDY Pin" )
662   PORT_DIPSETTING(    0x00, "P2-6 (8\")" )
663   PORT_DIPSETTING(    0x01, "P2-34 (5.25\")" )
664INPUT_PORTS_END
665
666
667//-------------------------------------------------
602668//  input_ports - device-specific input ports
603669//-------------------------------------------------
604670
r26151r26152
627693   return INPUT_PORTS_NAME( abc838 );
628694}
629695
696ioport_constructor abc850_floppy_device::device_input_ports() const
697{
698   return INPUT_PORTS_NAME( abc850 );
699}
630700
631701
702
632703//**************************************************************************
633704//  LIVE DEVICE
634705//**************************************************************************
r26151r26152
697768{
698769}
699770
771abc850_floppy_device::abc850_floppy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
772   : luxor_55_21046_device(mconfig, ABC850_FLOPPY, "ABC 850 floppy", tag, owner, clock, "lux21046", __FILE__)
773{
774}
700775
776
701777//-------------------------------------------------
702778//  device_start - device-specific startup
703779//-------------------------------------------------
r26151r26152
10571133
10581134   return data ^ 0xff;
10591135}
1060
1061
1062
1063//**************************************************************************
1064//  LUXOR 55 21046 DEVICE INPUT DEFAULTS
1065//**************************************************************************
1066
1067//-------------------------------------------------
1068//  DEVICE_INPUT_DEFAULTS( abc850_fast )
1069//-------------------------------------------------
1070
1071DEVICE_INPUT_DEFAULTS_START( abc850_fast )
1072   DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x0f)
1073   DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_BASF_6138)
1074   DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC832)
1075DEVICE_INPUT_DEFAULTS_END

Previous 199869 Revisions Next


© 1997-2024 The MAME Team