Previous 15994 Revisions Next

r11259 Wednesday 20th April, 2011 at 21:22:30 UTC by Curt Coder
Added most Commodore 1541/1571/1581 disk drive variants, and fixed crash on no disk image loaded. (no whatsnew)
[src/mess/drivers]c128.c c16.c c64.c vic20.c
[src/mess/includes]vic20.h
[src/mess/machine]64h156.c c1541.c c1541.h c1551.h c1571.c c1571.h c1581.c c1581.h

src/mess/machine/c1581.c
r11258r11259
77
88**********************************************************************/
99
10/*
11
12    TODO:
13
14    - C1563 device
15
16*/
17
1810#include "c1581.h"
1911
2012
r11258r11259
4133//**************************************************************************
4234
4335const device_type C1581 = c1581_device_config::static_alloc_device_config;
36const device_type C1563 = c1581_device_config::static_alloc_device_config;
4437
4538
4639
r11258r11259
9790//  static_set_config - configuration helper
9891//-------------------------------------------------
9992
100void c1581_device_config::static_set_config(device_config *device, int address)
93void c1581_device_config::static_set_config(device_config *device, int address, const char *rom_region)
10194{
10295   c1581_device_config *c1581 = downcast<c1581_device_config *>(device);
10396
10497   assert((address > 7) && (address < 12));
10598
10699   c1581->m_address = address - 8;
100   c1581->m_rom_region = rom_region;
107101}
108102
109103
r11258r11259
432426     m_cia(*this, M8520_TAG),
433427     m_fdc(*this, WD1770_TAG),
434428     m_image(*this, FLOPPY_0),
435     m_bus(machine().device<cbm_iec_device>(CBM_IEC_TAG)),
429     m_bus(*this->owner(), CBM_IEC_TAG),
436430      m_config(_config)
437431{
438432}
r11258r11259
444438
445439void c1581_device::device_start()
446440{
441   // map ROM
442   address_space *program = m_maincpu->memory().space(AS_PROGRAM);
443   program->install_rom(0x8000, 0xbfff, subregion(m_config.m_rom_region)->base());
444
447445   // state saving
448446   save_item(NAME(m_data_out));
449447   save_item(NAME(m_atn_ack));
src/mess/machine/c1581.h
r11258r11259
2525
2626
2727//**************************************************************************
28//  MACROS / CONSTANTS
29//**************************************************************************
30
31#define C1581_TAG         "c1581"
32
33
34
35//**************************************************************************
2836//  INTERFACE CONFIGURATION MACROS
2937//**************************************************************************
3038
3139#define MCFG_C1581_ADD(_tag, _address) \
3240    MCFG_DEVICE_ADD(_tag, C1581, 0) \
33   c1581_device_config::static_set_config(device, _address);
41   c1581_device_config::static_set_config(device, _address, "c1581");
3442
43#define MCFG_C1563_ADD(_tag, _address) \
44    MCFG_DEVICE_ADD(_tag, C1563, 0) \
45   c1581_device_config::static_set_config(device, _address, "c1563");
3546
3647
48
3749//**************************************************************************
3850//  TYPE DEFINITIONS
3951//**************************************************************************
r11258r11259
4456                       public device_config_cbm_iec_interface
4557{
4658    friend class c1581_device;
59    friend class c1563_device;
4760
4861    // construction/destruction
4962    c1581_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock);
r11258r11259
5467    virtual device_t *alloc_device(running_machine &machine) const;
5568
5669   // inline configuration helpers
57   static void static_set_config(device_config *device, int address);
70   static void static_set_config(device_config *device, int address, const char *rom_region);
5871
5972   // optional information overrides
6073   virtual const rom_entry *device_rom_region() const;
r11258r11259
6679
6780private:
6881   int m_address;
82   const char *m_rom_region;
6983};
7084
7185
r11258r11259
107121   required_device<mos6526_device> m_cia;
108122   required_device<device_t> m_fdc;
109123   required_device<device_t> m_image;
110   cbm_iec_device *m_bus;
124   required_device<cbm_iec_device> m_bus;
111125
112126   int m_data_out;            // serial data out
113127   int m_atn_ack;            // attention acknowledge
r11258r11259
119133};
120134
121135
136// ======================> c1563_device
122137
138class c1563_device :  public c1581_device
139{
140    friend class c1581_device_config;
141
142    // construction/destruction
143    c1563_device(running_machine &_machine, const c1581_device_config &_config);
144};
145
146
123147// device type definition
124148extern const device_type C1581;
149extern const device_type C1563;
125150
126151
127152
src/mess/machine/c1541.c
r11258r11259
1111
1212    TODO:
1313
14   - 1540/1541C/1541-II/SX1541/OC118/2031
14   - 1541C/2031
1515   - some copy protections fail
1616    - more accurate timing
1717    - power/activity LEDs
r11258r11259
222222//  static_set_config - configuration helper
223223//-------------------------------------------------
224224
225void c1541_device_config::static_set_config(device_config *device, int address)
225void c1541_device_config::static_set_config(device_config *device, int address, const char *rom_region)
226226{
227227   c1541_device_config *c1541 = downcast<c1541_device_config *>(device);
228228
229229   assert((address > 7) && (address < 12));
230230
231231   c1541->m_address = address - 8;
232   c1541->m_rom_region = rom_region;
232233}
233234
234235
r11258r11259
237238//-------------------------------------------------
238239
239240ROM_START( c1541 )
240   ROM_REGION( 0x4000, "c1540", ROMREGION_LOADBYNAME )
241   ROM_REGION( 0x4000, "c1540", 0 )
241242   ROM_LOAD_OPTIONAL( "325302-01.uab4", 0x0000, 0x2000, CRC(29ae9752) SHA1(8e0547430135ba462525c224e76356bd3d430f11) )
242243   ROM_LOAD_OPTIONAL( "325303-01.uab5", 0x2000, 0x2000, CRC(10b39158) SHA1(56dfe79b26f50af4e83fd9604857756d196516b9) )
243244
244   ROM_REGION( 0x6000, "c1541", ROMREGION_LOADBYNAME )
245   ROM_REGION( 0x6000, "c1541", 0 )
245246   ROM_LOAD( "325302-01.uab4", 0x0000, 0x2000, CRC(29ae9752) SHA1(8e0547430135ba462525c224e76356bd3d430f11) )
246247   ROM_LOAD_OPTIONAL( "901229-01.uab5", 0x2000, 0x2000, CRC(9a48d3f0) SHA1(7a1054c6156b51c25410caec0f609efb079d3a77) )
247248   ROM_LOAD_OPTIONAL( "901229-02.uab5", 0x2000, 0x2000, CRC(b29bab75) SHA1(91321142e226168b1139c30c83896933f317d000) )
r11258r11259
251252   ROM_LOAD( "901229-06 aa.uab5", 0x2000, 0x2000, CRC(3a235039) SHA1(c7f94f4f51d6de4cdc21ecbb7e57bb209f0530c0) )
252253   ROM_LOAD_OPTIONAL( "jiffydos 1541.uab5", 0x4000, 0x2000, CRC(bc7e4aeb) SHA1(db6cfaa6d9b78d58746c811de29f3b1f44d99ddf) )
253254
254   ROM_REGION( 0x4000, "c1541c", ROMREGION_LOADBYNAME )
255   ROM_REGION( 0x4000, "c1541c", 0 )
255256   ROM_LOAD_OPTIONAL( "251968-01.ua2", 0x0000, 0x4000, CRC(1b3ca08d) SHA1(8e893932de8cce244117fcea4c46b7c39c6a7765) )
256257   ROM_LOAD_OPTIONAL( "251968-02.ua2", 0x0000, 0x4000, CRC(2d862d20) SHA1(38a7a489c7bbc8661cf63476bf1eb07b38b1c704) )
257258
258   ROM_REGION( 0x8000, "c1541ii", ROMREGION_LOADBYNAME )
259   ROM_REGION( 0x8000, "c1541ii", 0 )
259260   ROM_LOAD_OPTIONAL( "251968-03.u4", 0x0000, 0x4000, CRC(899fa3c5) SHA1(d3b78c3dbac55f5199f33f3fe0036439811f7fb3) )
260261   ROM_LOAD_OPTIONAL( "355640-01.u4", 0x0000, 0x4000, CRC(57224cde) SHA1(ab16f56989b27d89babe5f89c5a8cb3da71a82f0) )
261262   ROM_LOAD_OPTIONAL( "jiffydos 1541-ii.u4", 0x4000, 0x4000, CRC(dd409902) SHA1(b1a5b826304d3df2a27d7163c6a81a532e040d32) )
262263
263   ROM_REGION( 0xa000, "sx1541", ROMREGION_LOADBYNAME )
264   ROM_REGION( 0xa000, "sx1541", 0 )
264265   ROM_LOAD_OPTIONAL( "325302-01.uab4",    0x0000, 0x2000, CRC(29ae9752) SHA1(8e0547430135ba462525c224e76356bd3d430f11) )
265266   ROM_LOAD_OPTIONAL( "901229-05 ae.uab5", 0x2000, 0x2000, CRC(361c9f37) SHA1(f5d60777440829e46dc91285e662ba072acd2d8b) )
266267   ROM_LOAD_OPTIONAL( "jiffydos sx1541",   0x4000, 0x4000, CRC(783575f6) SHA1(36ccb9ff60328c4460b68522443ecdb7f002a234) )
267268   ROM_LOAD_OPTIONAL( "1541 flash.uab5",   0x8000, 0x2000, CRC(22f7757e) SHA1(86a1e43d3d22b35677064cca400a6bd06767a3dc) )
268269
269   ROM_REGION( 0x4000, "c2031", ROMREGION_LOADBYNAME )
270   ROM_REGION( 0x4000, "c2031", 0 )
270271   ROM_LOAD_OPTIONAL( "901484-03.u5f", 0x0000, 0x2000, CRC(ee4b893b) SHA1(54d608f7f07860f24186749f21c96724dd48bc50) )
271272   ROM_LOAD_OPTIONAL( "901484-05.u5h", 0x2000, 0x2000, CRC(6a629054) SHA1(ec6b75ecfdd4744e5d57979ef6af990444c11ae1) )
272273
273   ROM_REGION( 0x8000, "oc118", ROMREGION_LOADBYNAME )
274   ROM_LOAD_OPTIONAL( "oc118.bin", 0x0000, 0x4000, NO_DUMP )
275   ROM_LOAD_OPTIONAL( "jiffydos oc118.bin", 0x4000, 0x4000, CRC(46c3302c) SHA1(e3623658cb7af30c9d3bce2ba3b6ad5ee89ac1b8) )
274   ROM_REGION( 0x4000, "oc118", 0 )
275   ROM_LOAD_OPTIONAL( "oc118.u3", 0x0000, 0x4000, NO_DUMP )
276   ROM_LOAD_OPTIONAL( "jiffydos v5.0.u3", 0x0000, 0x4000, CRC(46c3302c) SHA1(e3623658cb7af30c9d3bce2ba3b6ad5ee89ac1b8) )
276277ROM_END
277278
278279
r11258r11259
294295   AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0x6000) AM_RAM
295296   AM_RANGE(0x1800, 0x180f) AM_MIRROR(0x63f0) AM_DEVREADWRITE(M6522_0_TAG, via6522_device, read, write)
296297   AM_RANGE(0x1c00, 0x1c0f) AM_MIRROR(0x63f0) AM_DEVREADWRITE(M6522_1_TAG, via6522_device, read, write)
297   AM_RANGE(0x8000, 0xbfff) AM_MIRROR(0x4000) AM_ROM AM_REGION("c1541:c1541", 0)
298   AM_RANGE(0x8000, 0xbfff) AM_MIRROR(0x4000) // AM_ROM
298299ADDRESS_MAP_END
299300
300301
r11258r11259
831832     m_via1(*this, M6522_1_TAG),
832833     m_ga(*this, C64H156_TAG),
833834     m_image(*this, FLOPPY_0),
834     m_bus(machine().device<cbm_iec_device>(CBM_IEC_TAG)),
835     m_bus(*this->owner(), CBM_IEC_TAG),
835836     m_data_out(1),
836837     m_via0_irq(0),
837838     m_via1_irq(0),
r11258r11259
846847
847848void c1541_device::device_start()
848849{
850   // map ROM
851   address_space *program = m_maincpu->memory().space(AS_PROGRAM);
852   program->install_rom(0x8000, 0xbfff, 0, 0x4000, subregion(m_config.m_rom_region)->base());
853
849854   // install image callbacks
850855   floppy_install_unload_proc(m_image, c1541_device::on_disk_change);
851856   floppy_install_load_proc(m_image, c1541_device::on_disk_change);
src/mess/machine/c1541.h
r11258r11259
2727
2828
2929//**************************************************************************
30//  MACROS / CONSTANTS
31//**************************************************************************
32
33#define C1541_TAG         "c1541"
34#define C2031_TAG         "c2031"
35
36
37
38//**************************************************************************
3039//  INTERFACE CONFIGURATION MACROS
3140//**************************************************************************
3241
42#define MCFG_C1540_ADD(_tag, _address) \
43    MCFG_DEVICE_ADD(_tag, C1540, 0) \
44   c1541_device_config::static_set_config(device, _address, "c1540");
45
3346#define MCFG_C1541_ADD(_tag, _address) \
3447    MCFG_DEVICE_ADD(_tag, C1541, 0) \
35   c1541_device_config::static_set_config(device, _address);
48   c1541_device_config::static_set_config(device, _address, "c1541");
3649
50#define MCFG_C1541C_ADD(_tag, _address) \
51    MCFG_DEVICE_ADD(_tag, C1541C, 0) \
52   c1541_device_config::static_set_config(device, _address, "c1541c");
3753
54#define MCFG_C1541II_ADD(_tag, _address) \
55    MCFG_DEVICE_ADD(_tag, C1541II, 0) \
56   c1541_device_config::static_set_config(device, _address, "c1541ii");
3857
58#define MCFG_SX1541_ADD(_tag, _address) \
59    MCFG_DEVICE_ADD(_tag, SX1541, 0) \
60   c1541_device_config::static_set_config(device, _address, "sx1541");
61
62#define MCFG_OC118_ADD(_tag, _address) \
63    MCFG_DEVICE_ADD(_tag, OC118, 0) \
64   c1541_device_config::static_set_config(device, _address, "oc118");
65
66#define MCFG_C2031_ADD(_tag, _address) \
67    MCFG_DEVICE_ADD(_tag, C2031, 0) \
68   c1541_device_config::static_set_config(device, _address, "c2031");
69
70
71
3972//**************************************************************************
4073//  TYPE DEFINITIONS
4174//**************************************************************************
r11258r11259
4578class c1541_device_config :   public device_config,
4679                       public device_config_cbm_iec_interface
4780{
81    friend class c1540_device;
4882    friend class c1541_device;
83    friend class c1541c_device;
84    friend class c1541ii_device;
85    friend class sx1541_device;
86    friend class oc118_device;
87    friend class c2031_device;
4988
5089    // construction/destruction
5190    c1541_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock);
r11258r11259
5695    virtual device_t *alloc_device(running_machine &machine) const;
5796
5897   // inline configuration helpers
59   static void static_set_config(device_config *device, int address);
98   static void static_set_config(device_config *device, int address, const char *rom_region);
6099
61100   // optional information overrides
62101   virtual const rom_entry *device_rom_region() const;
r11258r11259
67106    virtual void device_config_complete();
68107   
69108   int m_address;
109   const char *m_rom_region;
70110};
71111
72112
r11258r11259
112152   required_device<via6522_device> m_via1;
113153   required_device<c64h156_device> m_ga;
114154   required_device<device_t> m_image;
115   cbm_iec_device *m_bus;
155   required_device<cbm_iec_device> m_bus;
116156
117157   // IEC bus
118158   int m_data_out;                     // serial data out
r11258r11259
125165};
126166
127167
128// ======================> c1541_device
168// ======================> c1540_device
129169
170class c1540_device :  public c1541_device
171{
172    friend class c1541_device_config;
173
174    // construction/destruction
175    c1540_device(running_machine &_machine, const c1541_device_config &_config);
176};
177
178
179// ======================> c1541c_device
180
130181class c1541c_device :  public c1541_device
131182{
132183    friend class c1541_device_config;
r11258r11259
140191};
141192
142193
194// ======================> c1541ii_device
195
196class c1541ii_device :  public c1541_device
197{
198    friend class c1541_device_config;
199
200    // construction/destruction
201    c1541ii_device(running_machine &_machine, const c1541_device_config &_config);
202};
203
204
205// ======================> sx1541_device
206
207class sx1541_device :  public c1541_device
208{
209    friend class c1541_device_config;
210
211    // construction/destruction
212    sx1541_device(running_machine &_machine, const c1541_device_config &_config);
213};
214
215
216// ======================> oc118_device
217
218class oc118_device :  public c1541_device
219{
220    friend class c1541_device_config;
221
222    // construction/destruction
223    oc118_device(running_machine &_machine, const c1541_device_config &_config);
224};
225
226
143227// ======================> c2031_device
144228
145229class c2031_device :  public c1541_device
src/mess/machine/64h156.c
r11258r11259
210210     m_stp(-1),
211211     m_mtr(0),
212212     m_side(0),
213     m_track_len(0),
214     m_buffer_pos(0),
215     m_bit_pos(0),
216     m_bit_count(0),
213217     m_accl(1),
214218     m_ds(-1),
215219     m_soe(0),
src/mess/machine/c1551.h
r11258r11259
2525
2626
2727//**************************************************************************
28//  MACROS / CONSTANTS
29//**************************************************************************
30
31#define C1551_TAG         "c1551"
32
33
34
35//**************************************************************************
2836//  INTERFACE CONFIGURATION MACROS
2937//**************************************************************************
3038
src/mess/machine/c1571.c
r11258r11259
1111
1212    TODO:
1313
14   - C1570
15   - C1571CR
1614    - fast serial
1715    - 1541/1571 Alignment shows drive speed as 266 rpm, should be 310
1816    - CP/M disks
r11258r11259
4745//  DEVICE DEFINITIONS
4846//**************************************************************************
4947
48const device_type C1570 = c1571_device_config::static_alloc_device_config;
5049const device_type C1571 = c1571_device_config::static_alloc_device_config;
50const device_type C1571CR = c1571_device_config::static_alloc_device_config;
5151
5252
5353
r11258r11259
103103//  static_set_config - configuration helper
104104//-------------------------------------------------
105105
106void c1571_device_config::static_set_config(device_config *device, int address)
106void c1571_device_config::static_set_config(device_config *device, int address, const char *rom_region)
107107{
108108   c1571_device_config *c1571 = downcast<c1571_device_config *>(device);
109109
110110   assert((address > 7) && (address < 12));
111111
112112   c1571->m_address = address - 8;
113   c1571->m_rom_region = rom_region;
113114}
114115
115116
r11258r11259
152153   AM_RANGE(0x1c00, 0x1c0f) AM_MIRROR(0x03f0) AM_DEVREADWRITE(M6522_1_TAG, via6522_device, read, write)
153154   AM_RANGE(0x2000, 0x2003) AM_MIRROR(0x1ffc) AM_DEVREADWRITE_LEGACY(WD1770_TAG, wd17xx_r, wd17xx_w)
154155   AM_RANGE(0x4000, 0x400f) AM_MIRROR(0x3ff0) AM_DEVREADWRITE_LEGACY(M6526_TAG, mos6526_r, mos6526_w)
155   AM_RANGE(0x8000, 0xffff) AM_ROM AM_REGION("c1571:c1571", 0)
156   AM_RANGE(0x8000, 0xffff) // AM_ROM
156157ADDRESS_MAP_END
157158
158159
r11258r11259
638639     m_fdc(*this, WD1770_TAG),
639640     m_ga(*this, C64H156_TAG),
640641     m_image(*this, FLOPPY_0),
641     m_bus(machine().device<cbm_iec_device>(CBM_IEC_TAG)),
642     m_bus(*this->owner(), CBM_IEC_TAG),
642643     m_1_2mhz(0),
643644     m_data_out(1),
644645     m_ser_dir(0),
r11258r11259
658659
659660void c1571_device::device_start()
660661{
662   // map ROM
663   address_space *program = m_maincpu->memory().space(AS_PROGRAM);
664   program->install_rom(0x8000, 0xffff, subregion(m_config.m_rom_region)->base());
665
661666   // install image callbacks
662667   floppy_install_unload_proc(m_image, c1571_device::on_disk_change);
663668   floppy_install_load_proc(m_image, c1571_device::on_disk_change);
src/mess/machine/c1571.h
r11258r11259
2828
2929
3030//**************************************************************************
31//  MACROS / CONSTANTS
32//**************************************************************************
33
34#define C1571_TAG         "c1571"
35
36
37
38//**************************************************************************
3139//  INTERFACE CONFIGURATION MACROS
3240//**************************************************************************
3341
42#define MCFG_C1570_ADD(_tag, _address) \
43    MCFG_DEVICE_ADD(_tag, C1570, 0) \
44   c1571_device_config::static_set_config(device, _address, "c1570");
45
3446#define MCFG_C1571_ADD(_tag, _address) \
3547    MCFG_DEVICE_ADD(_tag, C1571, 0) \
36   c1571_device_config::static_set_config(device, _address);
48   c1571_device_config::static_set_config(device, _address, "c1571");
3749
50#define MCFG_C1571CR_ADD(_tag, _address) \
51    MCFG_DEVICE_ADD(_tag, C1571CR, 0) \
52   c1571_device_config::static_set_config(device, _address, "c1571cr");
3853
3954
55
4056//**************************************************************************
4157//  TYPE DEFINITIONS
4258//**************************************************************************
r11258r11259
4662class c1571_device_config :   public device_config,
4763                       public device_config_cbm_iec_interface
4864{
65    friend class c1570_device;
4966    friend class c1571_device;
67    friend class c1571cr_device;
5068
5169    // construction/destruction
5270    c1571_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock);
r11258r11259
5775    virtual device_t *alloc_device(running_machine &machine) const;
5876
5977   // inline configuration helpers
60   static void static_set_config(device_config *device, int address);
78   static void static_set_config(device_config *device, int address, const char *rom_region);
6179
6280   // optional information overrides
6381   virtual const rom_entry *device_rom_region() const;
r11258r11259
6987   
7088private:
7189   int m_address;
90   const char *m_rom_region;
7291};
7392
7493
r11258r11259
125144   required_device<device_t> m_fdc;
126145   required_device<c64h156_device> m_ga;
127146   required_device<device_t> m_image;
128   cbm_iec_device *m_bus;
147   required_device<cbm_iec_device> m_bus;
129148
130149   // signals
131150   int m_1_2mhz;                     // clock speed
r11258r11259
145164};
146165
147166
167// ======================> c1570_device
148168
169class c1570_device :  public c1571_device
170{
171    friend class c1571_device_config;
172
173    // construction/destruction
174    c1570_device(running_machine &_machine, const c1571_device_config &_config);
175};
176
177
178// ======================> c1571cr_device
179
180class c1571cr_device :  public c1571_device
181{
182    friend class c1571_device_config;
183
184    // construction/destruction
185    c1571cr_device(running_machine &_machine, const c1571_device_config &_config);
186};
187
188
149189// device type definition
190extern const device_type C1570;
150191extern const device_type C1571;
192extern const device_type C1571CR;
151193
152194
153195
src/mess/includes/vic20.h
r11258r11259
1010#define M6522_1_TAG      "uab1"
1111#define M6560_TAG      "ub7"
1212#define M6561_TAG      "ub7"
13#define C1540_TAG      "c1541"
14#define C2031_TAG      "c2031"
1513#define IEC_TAG         "iec"
1614#define IEEE488_TAG      "ieee488"
1715#define CASSETTE_TAG   "cassette"
src/mess/drivers/vic20.c
r11258r11259
433433
434434static CBM_IEC_DAISY( cbm_iec_daisy )
435435{
436   { C1540_TAG },
436   { C1541_TAG },
437437   { NULL }
438438};
439439
r11258r11259
685685}
686686
687687static MACHINE_CONFIG_START( vic20_common, vic20_state )
688
689688   MCFG_TIMER_ADD_PERIODIC(TIMER_C1530_TAG, cassette_tick, attotime::from_hz(44100))
690689
691690   /* devices */
r11258r11259
695694   MCFG_QUICKLOAD_ADD("quickload", cbm_vc20, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
696695   MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_config )
697696   MCFG_CBM_IEC_CONFIG_ADD(cbm_iec_daisy, cbm_iec_intf)
698   //MCFG_C1540_ADD(C1540_TAG, 8)
699   MCFG_C1541_ADD(C1540_TAG, 8)
697   MCFG_C1540_ADD(C1541_TAG, 8)
700698#ifdef INCLUDE_C2031
701699    MCFG_IEEE488_ADD(IEEE488_TAG, ieee488_daisy)
702700    MCFG_VIC1112_ADD(vic1112_intf)
r11258r11259
718716MACHINE_CONFIG_END
719717
720718static MACHINE_CONFIG_DERIVED( vic20_ntsc, vic20_common )
721
722719   /* basic machine hardware */
723720   MCFG_CPU_ADD(M6502_TAG, M6502, MOS6560_CLOCK)
724721   MCFG_CPU_PROGRAM_MAP(vic20_mem)
r11258r11259
747744MACHINE_CONFIG_END
748745
749746static MACHINE_CONFIG_DERIVED( vic20_pal, vic20_common )
750
751747   /* basic machine hardware */
752748   MCFG_CPU_ADD(M6502_TAG, M6502, MOS6561_CLOCK)
753749   MCFG_CPU_PROGRAM_MAP(vic20_mem)
src/mess/drivers/c128.c
r11258r11259
660660
661661static CBM_IEC_DAISY( c128_iec_bus )
662662{
663   { "c1571" },
663   { C1571_TAG },
664664   { NULL }
665665};
666666
667667static CBM_IEC_DAISY( c128d81_iec_bus )
668668{
669   { "c1581" },
669   { C1581_TAG },
670670   { NULL }
671671};
672672
r11258r11259
796796
797797   /* floppy from serial bus */
798798   MCFG_CBM_IEC_CONFIG_ADD(c128_iec_bus, c128_iec_intf)
799   MCFG_C1571_ADD("c1571", 8)
799   MCFG_C1571_ADD(C1571_TAG, 8)
800800
801801   MCFG_FRAGMENT_ADD(c64_cartslot)
802802MACHINE_CONFIG_END
r11258r11259
806806MACHINE_CONFIG_END
807807
808808static MACHINE_CONFIG_DERIVED( c128dcr, c128 )
809
810//   MCFG_DEVICE_REMOVE("c1571")
811//   MCFG_C1571CR_ADD("c1571", "iec", 8)
809   MCFG_DEVICE_REMOVE(C1571_TAG)
810   MCFG_C1571CR_ADD(C1571_TAG, 8)
812811MACHINE_CONFIG_END
813812
814813static MACHINE_CONFIG_DERIVED( c128d81, c128 )
815814
816815   MCFG_CBM_IEC_REMOVE()
817   MCFG_DEVICE_REMOVE("c1571")
816   MCFG_DEVICE_REMOVE(C1571_TAG)
818817
819818   MCFG_CBM_IEC_CONFIG_ADD(c128d81_iec_bus, c128_iec_intf)
820//  MCFG_C1563_ADD("c1563", 8)
821   MCFG_C1581_ADD("c1581", 8)
819   MCFG_C1563_ADD(C1581_TAG, 8)
822820MACHINE_CONFIG_END
823821
824822
src/mess/drivers/c16.c
r11258r11259
424424
425425static CBM_IEC_DAISY( c16_iec_1541 )
426426{
427   { "c1541" },
427   { C1541_TAG },
428428   { NULL }
429429};
430430
r11258r11259
499499
500500   /* IEC serial bus */
501501   MCFG_CBM_IEC_ADD(c16_iec_no_drives)
502
502   
503503   /* internal ram */
504504   MCFG_RAM_ADD(RAM_TAG)
505505   MCFG_RAM_DEFAULT_SIZE("64K")
r11258r11259
509509
510510static MACHINE_CONFIG_DERIVED( c16c, c16 )
511511
512   MCFG_C1551_ADD("c1551", 8)
512   MCFG_C1551_ADD(C1551_TAG, 8)
513513
514514#ifdef CPU_SYNC
515515   MCFG_QUANTUM_TIME(attotime::from_hz(60))
r11258r11259
524524   /* floppy from serial bus */
525525   MCFG_CBM_IEC_REMOVE()
526526   MCFG_CBM_IEC_ADD(c16_iec_1541)
527   MCFG_C1541_ADD("c1541", 8)
527   MCFG_C1541_ADD(C1541_TAG, 8)
528528#ifdef CPU_SYNC
529529   MCFG_QUANTUM_TIME(attotime::from_hz(60))
530530#else
r11258r11259
555555
556556static MACHINE_CONFIG_DERIVED( plus4c, plus4 )
557557
558   MCFG_C1551_ADD("c1551", 8)
558   MCFG_C1551_ADD(C1551_TAG, 8)
559559
560560   MCFG_SCREEN_MODIFY("screen")
561561   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
r11258r11259
572572   /* floppy from serial bus */
573573   MCFG_CBM_IEC_REMOVE()
574574   MCFG_CBM_IEC_ADD(c16_iec_1541)
575   MCFG_C1541_ADD("c1541", 8)
575   MCFG_C1541_ADD(C1541_TAG, 8)
576576
577577   MCFG_SCREEN_MODIFY("screen")
578578   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
src/mess/drivers/c64.c
r11258r11259
554554
555555static CBM_IEC_DAISY( cbm_iec_daisy )
556556{
557   { "c1541" },
557   { C1541_TAG },
558558   { NULL }
559559};
560560
r11258r11259
717717
718718   /* floppy from serial bus */
719719   MCFG_CBM_IEC_ADD(cbm_iec_daisy)
720   MCFG_C1541_ADD("c1541", 8)
720   MCFG_C1541_ADD(C1541_TAG, 8)
721721
722722   MCFG_FRAGMENT_ADD(c64_cartslot)
723723MACHINE_CONFIG_END
r11258r11259
767767
768768   /* floppy from serial bus */
769769   MCFG_CBM_IEC_ADD(cbm_iec_daisy)
770   MCFG_C1541_ADD("c1541", 8)
770   MCFG_C1541_ADD(C1541_TAG, 8)
771771
772772   MCFG_FRAGMENT_ADD(c64_cartslot)
773773MACHINE_CONFIG_END
r11258r11259
785785   MCFG_VIC2_ADD("vic2", ultimax_vic2_intf)
786786
787787   MCFG_CBM_IEC_REMOVE()
788   MCFG_DEVICE_REMOVE("c1541")
788   MCFG_DEVICE_REMOVE(C1541_TAG)
789789   MCFG_DEVICE_REMOVE("cart1")
790790   MCFG_DEVICE_REMOVE("cart2")
791791
r11258r11259
802802   MCFG_DEVICE_REMOVE( "cassette" )
803803   MCFG_DEVICE_REMOVE( "quickload" )
804804   //MCFG_CBM_IEC_REMOVE()
805   //MCFG_DEVICE_REMOVE("c1541")
805   //MCFG_DEVICE_REMOVE(C1541_TAG)
806806MACHINE_CONFIG_END
807807
808808
809809static MACHINE_CONFIG_DERIVED( sx64, c64pal )
810   MCFG_DEVICE_REMOVE( C1541_TAG )
811   MCFG_SX1541_ADD(C1541_TAG, 8)
810812
811//   MCFG_DEVICE_REMOVE( "c1541" )
812//   MCFG_SX1541_ADD("c1541", 8)
813
814813   MCFG_DEVICE_REMOVE( "dac" )
815814   MCFG_DEVICE_REMOVE( "cassette" )
816815#ifdef CPU_SYNC

Previous 15994 Revisions Next


© 1998-2018 The MESS Team