src/mess/machine/c1581.c
| r6695 | r6696 | |
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | | Commodore 1581 Single Disk Drive emulation |
| 3 | Commodore 1581/1563 Single Disk Drive emulation |
| 4 | 4 | |
| 5 | 5 | Copyright MESS Team. |
| 6 | 6 | Visit http://mamedev.org for licensing and usage restrictions. |
| r6695 | r6696 | |
| 68 | 68 | { |
| 69 | 69 | assert(device != NULL); |
| 70 | 70 | assert(device->token != NULL); |
| 71 | | assert(device->type == C1581); |
| 71 | assert((device->type == C1581) || (device->type == C1563)); |
| 72 | 72 | return (c1581_t *)device->token; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | INLINE c1581_config *get_safe_config(const device_config *device) |
| 76 | 76 | { |
| 77 | 77 | assert(device != NULL); |
| 78 | | assert(device->type == C1581); |
| 78 | assert((device->type == C1581) || (device->type == C1563)); |
| 79 | 79 | return (c1581_config *)device->inline_config; |
| 80 | 80 | } |
| 81 | 81 | |
| r6695 | r6696 | |
| 84 | 84 | ***************************************************************************/ |
| 85 | 85 | |
| 86 | 86 | /*------------------------------------------------- |
| 87 | | c1581_atn_w - serial bus attention |
| 87 | c1581_iec_atn_w - serial bus attention |
| 88 | 88 | -------------------------------------------------*/ |
| 89 | 89 | |
| 90 | | static CBM_IEC_ATN( c1581 ) |
| 90 | WRITE_LINE_DEVICE_HANDLER( c1581_iec_atn_w ) |
| 91 | 91 | { |
| 92 | 92 | c1581_t *c1581 = get_safe_token(device); |
| 93 | 93 | int data_out = !c1581->data_out && !(c1581->atn_ack && !state); |
| r6695 | r6696 | |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /*------------------------------------------------- |
| 101 | | c1581_reset_w - serial bus reset |
| 101 | c1581_iec_reset_w - serial bus reset |
| 102 | 102 | -------------------------------------------------*/ |
| 103 | 103 | |
| 104 | | static CBM_IEC_RESET( c1581 ) |
| 104 | WRITE_LINE_DEVICE_HANDLER( c1581_iec_reset_w ) |
| 105 | 105 | { |
| 106 | 106 | if (!state) |
| 107 | 107 | { |
| r6695 | r6696 | |
| 121 | 121 | ADDRESS_MAP_END |
| 122 | 122 | |
| 123 | 123 | /*------------------------------------------------- |
| 124 | ADDRESS_MAP( c1563_map ) |
| 125 | -------------------------------------------------*/ |
| 126 | |
| 127 | static ADDRESS_MAP_START( c1563_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 128 | AM_RANGE(0x0000, 0x1fff) AM_MIRROR(0x2000) AM_RAM |
| 129 | AM_RANGE(0x4000, 0x400f) AM_MIRROR(0x1ff0) AM_DEVREADWRITE(M8520_TAG, cia_r, cia_w) |
| 130 | AM_RANGE(0x6000, 0x6003) AM_MIRROR(0x1ffc) AM_DEVREADWRITE(WD1770_TAG, wd17xx_r, wd17xx_w) |
| 131 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_REGION("c1563", 0) |
| 132 | ADDRESS_MAP_END |
| 133 | |
| 134 | /*------------------------------------------------- |
| 124 | 135 | cia6526_interface c1581_cia_intf |
| 125 | 136 | -------------------------------------------------*/ |
| 126 | 137 | |
| r6695 | r6696 | |
| 322 | 333 | MACHINE_DRIVER_END |
| 323 | 334 | |
| 324 | 335 | /*------------------------------------------------- |
| 336 | MACHINE_DRIVER( c1563 ) |
| 337 | -------------------------------------------------*/ |
| 338 | |
| 339 | static MACHINE_DRIVER_START( c1563 ) |
| 340 | MDRV_CPU_ADD(M6502_TAG, M6502, XTAL_16MHz/8) |
| 341 | MDRV_CPU_PROGRAM_MAP(c1563_map) |
| 342 | |
| 343 | MDRV_CIA8520_ADD(M8520_TAG, XTAL_16MHz/8, c1581_cia_intf) |
| 344 | MDRV_WD1770_ADD(WD1770_TAG, /*XTAL_16MHz/2,*/ c1581_wd1770_intf) |
| 345 | |
| 346 | MDRV_FLOPPY_DRIVE_ADD(FLOPPY_0, c1581_floppy_config) |
| 347 | MACHINE_DRIVER_END |
| 348 | |
| 349 | /*------------------------------------------------- |
| 325 | 350 | ROM( c1581 ) |
| 326 | 351 | -------------------------------------------------*/ |
| 327 | 352 | |
| r6695 | r6696 | |
| 403 | 428 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(c1581); break; |
| 404 | 429 | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 405 | 430 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(c1581); break; |
| 406 | | case DEVINFO_FCT_CBM_IEC_ATN: info->f = (genf *)CBM_IEC_ATN_NAME(c1581); break; |
| 407 | | case DEVINFO_FCT_CBM_IEC_RESET: info->f = (genf *)CBM_IEC_RESET_NAME(c1581); break; |
| 408 | 431 | |
| 409 | 432 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 410 | 433 | case DEVINFO_STR_NAME: strcpy(info->s, "Commodore 1581"); break; |
| r6695 | r6696 | |
| 414 | 437 | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright the MESS Team"); break; |
| 415 | 438 | } |
| 416 | 439 | } |
| 440 | |
| 441 | /*------------------------------------------------- |
| 442 | DEVICE_GET_INFO( c1563 ) |
| 443 | -------------------------------------------------*/ |
| 444 | |
| 445 | DEVICE_GET_INFO( c1563 ) |
| 446 | { |
| 447 | switch (state) |
| 448 | { |
| 449 | /* --- the following bits of info are returned as pointers --- */ |
| 450 | case DEVINFO_PTR_ROM_REGION: info->romregion = ROM_NAME(c1563); break; |
| 451 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_DRIVER_NAME(c1563); break; |
| 452 | |
| 453 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 454 | case DEVINFO_STR_NAME: strcpy(info->s, "Commodore 1563"); break; |
| 455 | |
| 456 | default: DEVICE_GET_INFO_CALL(c1581); break; |
| 457 | } |
| 458 | } |
src/mess/machine/c128.c
| r6695 | r6696 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | | |
| 13 | #include "includes/c128.h" |
| 14 | #include "includes/c64.h" |
| 15 | #include "includes/cbm.h" |
| 16 | #include "machine/cbmiec.h" |
| 14 | 17 | #include "cpu/m6502/m6502.h" |
| 15 | | #include "sound/sid6581.h" |
| 18 | #include "devices/cassette.h" |
| 16 | 19 | #include "machine/6526cia.h" |
| 17 | | |
| 18 | | #include "includes/cbm.h" |
| 19 | | #include "includes/cbmserb.h" |
| 20 | | #include "includes/cbmdrive.h" |
| 21 | | #include "includes/vc1541.h" |
| 20 | #include "sound/sid6581.h" |
| 22 | 21 | #include "video/vic6567.h" |
| 23 | 22 | #include "video/vdc8563.h" |
| 24 | 23 | |
| 25 | | |
| 26 | | #include "includes/c128.h" |
| 27 | | #include "includes/c64.h" |
| 28 | | |
| 29 | | #include "devices/cassette.h" |
| 30 | | |
| 31 | | |
| 32 | 24 | #define VERBOSE_LEVEL 0 |
| 33 | 25 | #define DBG_LOG( MACHINE, N, M, A ) \ |
| 34 | 26 | do { \ |
| r6695 | r6696 | |
| 77 | 69 | |
| 78 | 70 | static int c128_va1617; |
| 79 | 71 | static int c128_cia1_on; |
| 80 | | static UINT8 serial_clock, serial_data, serial_atn; |
| 81 | 72 | static UINT8 vicirq; |
| 82 | | static int emulated_drive; |
| 83 | 73 | |
| 84 | 74 | static void c128_nmi( running_machine *machine ) |
| 85 | 75 | { |
| r6695 | r6696 | |
| 237 | 227 | static READ8_DEVICE_HANDLER( c128_cia1_port_a_r ) |
| 238 | 228 | { |
| 239 | 229 | UINT8 value = 0xff; |
| 240 | | const device_config *serbus = devtag_get_device(device->machine, "serial_bus"); |
| 230 | const device_config *serbus = devtag_get_device(device->machine, "iec"); |
| 241 | 231 | |
| 242 | | if (!serial_clock || !cbm_serial_clock_read(serbus, 0)) |
| 232 | if (!cbm_iec_clk_r(serbus)) |
| 243 | 233 | value &= ~0x40; |
| 244 | 234 | |
| 245 | | if (!serial_data || !cbm_serial_data_read(serbus, 0)) |
| 235 | if (!cbm_iec_data_r(serbus)) |
| 246 | 236 | value &= ~0x80; |
| 247 | 237 | |
| 248 | 238 | return value; |
| r6695 | r6696 | |
| 251 | 241 | static WRITE8_DEVICE_HANDLER( c128_cia1_port_a_w ) |
| 252 | 242 | { |
| 253 | 243 | static const int helper[4] = {0xc000, 0x8000, 0x4000, 0x0000}; |
| 254 | | const device_config *serbus = devtag_get_device(device->machine, "serial_bus"); |
| 244 | const device_config *serbus = devtag_get_device(device->machine, "iec"); |
| 255 | 245 | |
| 256 | | cbm_serial_clock_write(serbus, 0, serial_clock = !(data & 0x10)); |
| 257 | | cbm_serial_data_write(serbus, 0, serial_data = !(data & 0x20)); |
| 258 | | cbm_serial_atn_write(serbus, 0, serial_atn = !(data & 0x08)); |
| 246 | cbm_iec_clk_w(serbus, device, !(data & 0x10)); |
| 247 | cbm_iec_data_w(serbus, device, !(data & 0x20)); |
| 248 | cbm_iec_atn_w(serbus, device, !(data & 0x08)); |
| 259 | 249 | c64_vicaddr = c64_memory + helper[data & 0x03]; |
| 260 | 250 | c128_vicaddr = c64_memory + helper[data & 0x03] + c128_va1617; |
| 261 | 251 | } |
| r6695 | r6696 | |
| 1099 | 1089 | { |
| 1100 | 1090 | c64_tape_on = 1; |
| 1101 | 1091 | c64_pal = 0; |
| 1102 | | emulated_drive = 0; |
| 1103 | 1092 | c128_common_driver_init(machine); |
| 1104 | 1093 | vic6567_init(1, c64_pal, c128_dma_read, c128_dma_read_color, c128_vic_interrupt); |
| 1105 | 1094 | vic2_set_rastering(0); |
| r6695 | r6696 | |
| 1111 | 1100 | { |
| 1112 | 1101 | c64_tape_on = 1; |
| 1113 | 1102 | c64_pal = 1; |
| 1114 | | emulated_drive = 0; |
| 1115 | 1103 | c128_common_driver_init(machine); |
| 1116 | 1104 | vic6567_init(1, c64_pal, c128_dma_read, c128_dma_read_color, c128_vic_interrupt); |
| 1117 | 1105 | vic2_set_rastering(1); |
| r6695 | r6696 | |
| 1122 | 1110 | DRIVER_INIT( c128d ) |
| 1123 | 1111 | { |
| 1124 | 1112 | DRIVER_INIT_CALL( c128 ); |
| 1125 | | emulated_drive = 1; |
| 1126 | | cbm_drive_config(machine, type_1571, 0, 0, "cpu_vc1571", 8); |
| 1127 | 1113 | } |
| 1128 | 1114 | |
| 1129 | 1115 | DRIVER_INIT( c128dpal ) |
| 1130 | 1116 | { |
| 1131 | 1117 | DRIVER_INIT_CALL( c128pal ); |
| 1132 | | emulated_drive = 1; |
| 1133 | | cbm_drive_config(machine, type_1571, 0, 0, "cpu_vc1571", 8); |
| 1134 | 1118 | } |
| 1135 | 1119 | |
| 1136 | 1120 | DRIVER_INIT( c128dcr ) |
| 1137 | 1121 | { |
| 1138 | 1122 | DRIVER_INIT_CALL( c128 ); |
| 1139 | | emulated_drive = 1; |
| 1140 | | cbm_drive_config(machine, type_1571cr, 0, 0, "cpu_vc1571", 8); |
| 1141 | 1123 | } |
| 1142 | 1124 | |
| 1143 | 1125 | DRIVER_INIT( c128dcrp ) |
| 1144 | 1126 | { |
| 1145 | 1127 | DRIVER_INIT_CALL( c128pal ); |
| 1146 | | emulated_drive = 1; |
| 1147 | | cbm_drive_config(machine, type_1571cr, 0, 0, "cpu_vc1571", 8); |
| 1148 | 1128 | } |
| 1149 | 1129 | |
| 1150 | 1130 | DRIVER_INIT( c128d81 ) |
| 1151 | 1131 | { |
| 1152 | 1132 | DRIVER_INIT_CALL( c128 ); |
| 1153 | | emulated_drive = 1; |
| 1154 | | cbm_drive_config(machine, type_1581, 0, 0, "cpu_vc1571", 8); |
| 1155 | 1133 | } |
| 1156 | 1134 | |
| 1157 | 1135 | MACHINE_START( c128 ) |
| 1158 | 1136 | { |
| 1159 | | if (emulated_drive) |
| 1160 | | { |
| 1161 | | cbm_drive_reset(machine); |
| 1162 | | } |
| 1163 | | else if (c128_cia1_on) |
| 1164 | | { |
| 1165 | | cbm_drive_0_config(SERIAL, 8); |
| 1166 | | cbm_drive_1_config(SERIAL, 9); |
| 1167 | | serial_clock = serial_data = serial_atn = 1; |
| 1168 | | } |
| 1169 | | |
| 1170 | 1137 | // This was in MACHINE_START( c64 ), but never called |
| 1171 | 1138 | // TO DO: find its correct use, when fixing c64 mode |
| 1172 | 1139 | if (c64mode) |
src/mess/machine/c1571.c
| r6695 | r6696 | |
| 29 | 29 | #define M6526_TAG "u20"
|
| 30 | 30 | #define WD1770_TAG "u11"
|
| 31 | 31 | |
| 32 | static const double C1571_BITRATE[4] =
|
| 33 | {
|
| 34 | XTAL_16MHz/13.0, /* tracks 1-17 */
|
| 35 | XTAL_16MHz/14.0, /* tracks 18-24 */
|
| 36 | XTAL_16MHz/15.0, /* tracks 25-30 */
|
| 37 | XTAL_16MHz/16.0 /* tracks 31-42 */
|
| 38 | };
|
| 39 | |
| 40 | #define SYNC_MARK 0x3ff /* 10 consecutive 1-bits */
|
| 41 | |
| 42 | #define TRACK_BUFFER_SIZE 8194 /* 2 bytes track length + maximum of 8192 bytes of GCR encoded data */
|
| 43 | #define TRACK_DATA_START 2
|
| 44 | |
| 32 | 45 | /***************************************************************************
|
| 33 | 46 | TYPE DEFINITIONS
|
| 34 | 47 | ***************************************************************************/
|
| r6695 | r6696 | |
| 38 | 51 | {
|
| 39 | 52 | /* abstractions */
|
| 40 | 53 | int address;
|
| 54 | UINT8 track_buffer[TRACK_BUFFER_SIZE]; /* track data buffer */
|
| 55 | int track_len; /* track length */
|
| 56 | int buffer_pos; /* current byte position within track buffer */
|
| 57 | int bit_pos; /* current bit position within track buffer byte */
|
| 58 | int bit_count; /* current data byte bit counter */
|
| 59 | UINT16 data; /* data shift register */
|
| 41 | 60 | |
| 42 | 61 | /* signals */
|
| 43 | | int data_out;
|
| 44 | | int atn_ack;
|
| 62 | UINT8 yb; /* GCR data byte to write */
|
| 63 | int byte; /* byte ready */
|
| 64 | int atna; /* attention acknowledge */
|
| 65 | int ds; /* density select */
|
| 66 | int stp; /* stepping motor */
|
| 45 | 67 | int soe; /* s? output enable */
|
| 46 | 68 | int mode; /* mode (0 = write, 1 = read) */
|
| 47 | 69 | |
| 70 | int data_out;
|
| 71 | int atn_ack;
|
| 72 | |
| 48 | 73 | /* interrupts */
|
| 49 | 74 | int via0_irq; /* VIA #0 interrupt request */
|
| 50 | 75 | int via1_irq; /* VIA #1 interrupt request */
|
| r6695 | r6696 | |
| 58 | 83 | const device_config *wd1770;
|
| 59 | 84 | const device_config *serial_bus;
|
| 60 | 85 | const device_config *image;
|
| 86 | |
| 87 | /* timers */
|
| 88 | emu_timer *bit_timer;
|
| 61 | 89 | };
|
| 62 | 90 | |
| 63 | 91 | /***************************************************************************
|
| r6695 | r6696 | |
| 84 | 112 | ***************************************************************************/
|
| 85 | 113 | |
| 86 | 114 | /*-------------------------------------------------
|
| 87 | | c1571_atn_w - serial bus attention
|
| 115 | TIMER_CALLBACK( bit_tick )
|
| 88 | 116 | -------------------------------------------------*/
|
| 89 | 117 | |
| 90 | | static CBM_IEC_ATN( c1571 )
|
| 118 | static TIMER_CALLBACK( bit_tick )
|
| 91 | 119 | {
|
| 120 | const device_config *device = (device_config *)ptr;
|
| 92 | 121 | c1571_t *c1571 = get_safe_token(device);
|
| 122 | int byte = 0;
|
| 123 | |
| 124 | /* shift in data from the read head */
|
| 125 | c1571->data <<= 1;
|
| 126 | c1571->data |= BIT(c1571->track_buffer[c1571->buffer_pos], c1571->bit_pos);
|
| 127 | c1571->bit_pos--;
|
| 128 | c1571->bit_count++;
|
| 129 | |
| 130 | if (c1571->bit_pos < 0)
|
| 131 | {
|
| 132 | c1571->bit_pos = 7;
|
| 133 | c1571->buffer_pos++;
|
| 134 | |
| 135 | if (c1571->buffer_pos > c1571->track_len + 1)
|
| 136 | {
|
| 137 | /* loop to the start of the track */
|
| 138 | c1571->buffer_pos = TRACK_DATA_START;
|
| 139 | }
|
| 140 | }
|
| 141 | |
| 142 | if ((c1571->data & SYNC_MARK) == SYNC_MARK)
|
| 143 | {
|
| 144 | /* SYNC detected */
|
| 145 | c1571->bit_count = 0;
|
| 146 | }
|
| 147 | |
| 148 | if (c1571->bit_count > 7)
|
| 149 | {
|
| 150 | /* byte ready */
|
| 151 | c1571->bit_count = 0;
|
| 152 | byte = 1;
|
| 153 | |
| 154 | if (!(c1571->data & 0xff))
|
| 155 | {
|
| 156 | /* simulate weak bits with randomness */
|
| 157 | c1571->data = (c1571->data & 0xff00) | (mame_rand(machine) & 0xff);
|
| 158 | }
|
| 159 | }
|
| 160 | |
| 161 | if (c1571->byte != byte)
|
| 162 | {
|
| 163 | int byte_ready = !(byte && c1571->soe);
|
| 164 | |
| 165 | cpu_set_input_line(c1571->cpu, M6502_SET_OVERFLOW, byte_ready);
|
| 166 | via_ca1_w(c1571->via1, 0, byte_ready);
|
| 167 | |
| 168 | c1571->byte = byte;
|
| 169 | }
|
| 170 | }
|
| 171 | |
| 172 | /*-------------------------------------------------
|
| 173 | c1571_iec_atn_w - serial bus attention
|
| 174 | -------------------------------------------------*/
|
| 175 | |
| 176 | WRITE_LINE_DEVICE_HANDLER( c1571_iec_atn_w )
|
| 177 | {
|
| 178 | c1571_t *c1571 = get_safe_token(device);
|
| 93 | 179 | int data_out = !c1571->data_out && !(c1571->atn_ack ^ !state);
|
| 94 | 180 | |
| 95 | 181 | via_ca1_w(c1571->via0, 0, !state);
|
| r6695 | r6696 | |
| 98 | 184 | }
|
| 99 | 185 | |
| 100 | 186 | /*-------------------------------------------------
|
| 101 | | c1571_reset_w - serial bus reset
|
| 187 | c1571_iec_reset_w - serial bus reset
|
| 102 | 188 | -------------------------------------------------*/
|
| 103 | 189 | |
| 104 | | static CBM_IEC_RESET( c1571 )
|
| 190 | WRITE_LINE_DEVICE_HANDLER( c1571_iec_reset_w )
|
| 105 | 191 | {
|
| 106 | 192 | if (!state)
|
| 107 | 193 | {
|
| r6695 | r6696 | |
| 204 | 290 | |
| 205 | 291 | c1571_t *c1571 = get_safe_token(device->owner);
|
| 206 | 292 | |
| 293 | /* 1/2 MHz */
|
| 294 | UINT32 clock = BIT(data, 5) ? XTAL_16MHz/8 : XTAL_16MHz/16;
|
| 295 | |
| 296 | device_set_clock(c1571->cpu, clock);
|
| 297 | device_set_clock(c1571->cia, clock);
|
| 298 | device_set_clock(c1571->via0, clock);
|
| 299 | device_set_clock(c1571->via1, clock);
|
| 300 | |
| 207 | 301 | /* side */
|
| 208 | 302 | wd17xx_set_side(c1571->wd1770, BIT(data, 2));
|
| 209 | 303 | }
|
| r6695 | r6696 | |
| 392 | 486 | PB7 _SYNC SYNC detect line
|
| 393 | 487 | |
| 394 | 488 | */
|
| 489 | |
| 490 | c1571_t *c1571 = get_safe_token(device->owner);
|
| 491 | int stp = data & 0x03;
|
| 492 | int ds = (data >> 5) & 0x03;
|
| 493 | int mtr = BIT(data, 2);
|
| 494 | |
| 495 | /* stepper motor */
|
| 496 | if (c1571->stp != stp)
|
| 497 | {
|
| 498 | int tracks = 0;
|
| 499 | |
| 500 | switch (c1571->stp)
|
| 501 | {
|
| 502 | case 0: if (stp == 1) tracks++; else if (stp == 3) tracks--; break;
|
| 503 | case 1: if (stp == 2) tracks++; else if (stp == 0) tracks--; break;
|
| 504 | case 2: if (stp == 3) tracks++; else if (stp == 1) tracks--; break;
|
| 505 | case 3: if (stp == 0) tracks++; else if (stp == 2) tracks--; break;
|
| 506 | }
|
| 507 | |
| 508 | if (tracks != 0)
|
| 509 | {
|
| 510 | c1571->track_len = TRACK_BUFFER_SIZE;
|
| 511 | c1571->buffer_pos = TRACK_DATA_START;
|
| 512 | c1571->bit_pos = 7;
|
| 513 | c1571->bit_count = 0;
|
| 514 | |
| 515 | /* step read/write head */
|
| 516 | floppy_drive_seek(c1571->image, tracks);
|
| 517 | |
| 518 | /* read track data */
|
| 519 | floppy_drive_read_track_data_info_buffer(c1571->image, 0, c1571->track_buffer, &c1571->track_len);
|
| 520 | |
| 521 | /* extract track length */
|
| 522 | c1571->track_len = (c1571->track_buffer[1] << 8) | c1571->track_buffer[0];
|
| 523 | }
|
| 524 | |
| 525 | c1571->stp = stp;
|
| 526 | }
|
| 527 | |
| 528 | /* spindle motor */
|
| 529 | floppy_mon_w(c1571->image, !mtr);
|
| 530 | timer_enable(c1571->bit_timer, mtr);
|
| 531 | |
| 532 | /* activity LED */
|
| 533 | |
| 534 | /* density select */
|
| 535 | if (c1571->ds != ds)
|
| 536 | {
|
| 537 | timer_adjust_periodic(c1571->bit_timer, attotime_zero, 0, ATTOTIME_IN_HZ(C1571_BITRATE[ds]/4));
|
| 538 | c1571->ds = ds;
|
| 539 | }
|
| 395 | 540 | }
|
| 396 | 541 | |
| 397 | 542 | static WRITE_LINE_DEVICE_HANDLER( soe_w )
|
| 398 | 543 | {
|
| 399 | 544 | c1571_t *c1571 = get_safe_token(device->owner);
|
| 545 | int byte_ready = !(state && c1571->byte);
|
| 400 | 546 | |
| 401 | 547 | c1571->soe = state;
|
| 548 | |
| 549 | cpu_set_input_line(c1571->cpu, M6502_SET_OVERFLOW, byte_ready);
|
| 550 | via_ca1_w(device, 0, byte_ready);
|
| 402 | 551 | }
|
| 403 | 552 | |
| 404 | 553 | static WRITE_LINE_DEVICE_HANDLER( mode_w )
|
| r6695 | r6696 | |
| 467 | 616 | -------------------------------------------------*/
|
| 468 | 617 | |
| 469 | 618 | static FLOPPY_OPTIONS_START( c1571 )
|
| 470 | | FLOPPY_OPTION( c1571, "g64", "Commodore 1541 GCR Disk Image", g64_dsk_identify, g64_dsk_construct, NULL )
|
| 471 | | // FLOPPY_OPTION( c1571, "d64", "Commodore 1541 Disk Image", d64_dsk_identify, d64_dsk_construct, NULL )
|
| 619 | FLOPPY_OPTION( c1571, "g64", "Commodore 1571 GCR Disk Image", g64_dsk_identify, g64_dsk_construct, NULL )
|
| 620 | // FLOPPY_OPTION( c1571, "d64", "Commodore 1571 Disk Image", d64_dsk_identify, d64_dsk_construct, NULL )
|
| 472 | 621 | // FLOPPY_OPTION( c1571, "d71", "Commodore 1571 Disk Image", d64_dsk_identify, d64_dsk_construct, NULL )
|
| 473 | 622 | FLOPPY_OPTIONS_END
|
| 474 | 623 | |
| r6695 | r6696 | |
| 509 | 658 | -------------------------------------------------*/
|
| 510 | 659 | |
| 511 | 660 | static MACHINE_DRIVER_START( c1570 )
|
| 512 | | MDRV_CPU_ADD(M6502_TAG, M6502, 2000000)
|
| 661 | MDRV_CPU_ADD(M6502_TAG, M6502, XTAL_16MHz/8)
|
| 513 | 662 | MDRV_CPU_PROGRAM_MAP(c1570_map)
|
| 514 | 663 | |
| 515 | | MDRV_VIA6522_ADD(M6522_0_TAG, 2000000, c1571_via0_intf)
|
| 516 | | MDRV_VIA6522_ADD(M6522_1_TAG, 2000000, c1571_via1_intf)
|
| 517 | | MDRV_CIA6526_ADD(M6526_TAG, CIA6526R1, 2000000, c1571_cia_intf)
|
| 664 | MDRV_VIA6522_ADD(M6522_0_TAG, XTAL_16MHz/8, c1571_via0_intf)
|
| 665 | MDRV_VIA6522_ADD(M6522_1_TAG, XTAL_16MHz/8, c1571_via1_intf)
|
| 666 | MDRV_CIA6526_ADD(M6526_TAG, CIA6526R1, XTAL_16MHz/8, c1571_cia_intf)
|
| 518 | 667 | MDRV_WD1770_ADD(WD1770_TAG, c1571_wd1770_intf)
|
| 519 | 668 | |
| 520 | 669 | MDRV_FLOPPY_DRIVE_ADD(FLOPPY_0, c1570_floppy_config)
|
| r6695 | r6696 | |
| 525 | 674 | -------------------------------------------------*/
|
| 526 | 675 | |
| 527 | 676 | static MACHINE_DRIVER_START( c1571 )
|
| 528 | | MDRV_CPU_ADD(M6502_TAG, M6502, 2000000)
|
| 677 | MDRV_CPU_ADD(M6502_TAG, M6502, XTAL_16MHz/8)
|
| 529 | 678 | MDRV_CPU_PROGRAM_MAP(c1571_map)
|
| 530 | 679 | |
| 531 | | MDRV_VIA6522_ADD(M6522_0_TAG, 2000000, c1571_via0_intf)
|
| 532 | | MDRV_VIA6522_ADD(M6522_1_TAG, 2000000, c1571_via1_intf)
|
| 533 | | MDRV_CIA6526_ADD(M6526_TAG, CIA6526R1, 2000000, c1571_cia_intf)
|
| 680 | MDRV_VIA6522_ADD(M6522_0_TAG, XTAL_16MHz/8, c1571_via0_intf)
|
| 681 | MDRV_VIA6522_ADD(M6522_1_TAG, XTAL_16MHz/8, c1571_via1_intf)
|
| 682 | MDRV_CIA6526_ADD(M6526_TAG, CIA6526R1, XTAL_16MHz/8, c1571_cia_intf)
|
| 534 | 683 | MDRV_WD1770_ADD(WD1770_TAG, c1571_wd1770_intf)
|
| 535 | 684 | |
| 536 | 685 | MDRV_FLOPPY_DRIVE_ADD(FLOPPY_0, c1571_floppy_config)
|
| r6695 | r6696 | |
| 541 | 690 | -------------------------------------------------*/
|
| 542 | 691 | |
| 543 | 692 | static MACHINE_DRIVER_START( c1571cr )
|
| 544 | | MDRV_CPU_ADD(M6502_TAG, M6502, 2000000)
|
| 693 | MDRV_CPU_ADD(M6502_TAG, M6502, XTAL_16MHz/8)
|
| 545 | 694 | MDRV_CPU_PROGRAM_MAP(c1571cr_map)
|
| 546 | 695 | |
| 547 | | MDRV_VIA6522_ADD(M6522_0_TAG, 2000000, c1571_via0_intf)
|
| 548 | | MDRV_VIA6522_ADD(M6522_1_TAG, 2000000, c1571_via1_intf)
|
| 549 | | MDRV_CIA6526_ADD(M6526_TAG, CIA6526R1, 2000000, c1571_cia_intf)
|
| 696 | MDRV_VIA6522_ADD(M6522_0_TAG, XTAL_16MHz/8, c1571_via0_intf)
|
| 697 | MDRV_VIA6522_ADD(M6522_1_TAG, XTAL_16MHz/8, c1571_via1_intf)
|
| 698 | MDRV_CIA6526_ADD(M6526_TAG, CIA6526R1, XTAL_16MHz/8, c1571_cia_intf)
|
| 550 | 699 | MDRV_WD1770_ADD(WD1770_TAG, c1571_wd1770_intf)
|
| 551 | 700 | |
| 552 | 701 | MDRV_FLOPPY_DRIVE_ADD(FLOPPY_0, c1571_floppy_config)
|
| r6695 | r6696 | |
| 604 | 753 | c1571->serial_bus = devtag_get_device(device->machine, config->serial_bus_tag);
|
| 605 | 754 | c1571->image = device_find_child_by_tag(device, FLOPPY_0);
|
| 606 | 755 | |
| 756 | /* set floppy density */
|
| 757 | wd17xx_set_density(c1571->wd1770, DEN_MFM_LO);
|
| 758 | |
| 759 | /* allocate data timer */
|
| 760 | c1571->bit_timer = timer_alloc(device->machine, bit_tick, (void *)device);
|
| 761 | |
| 607 | 762 | /* register for state saving */
|
| 608 | 763 | }
|
| 609 | 764 | |
| r6695 | r6696 | |
| 643 | 798 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(c1571); break;
|
| 644 | 799 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 645 | 800 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(c1571); break;
|
| 646 | | case DEVINFO_FCT_CBM_IEC_ATN: info->f = (genf *)CBM_IEC_ATN_NAME(c1571); break;
|
| 647 | | case DEVINFO_FCT_CBM_IEC_RESET: info->f = (genf *)CBM_IEC_RESET_NAME(c1571); break;
|
| 648 | 801 | |
| 649 | 802 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 650 | 803 | case DEVINFO_STR_NAME: strcpy(info->s, "Commodore 1570"); break;
|
src/mess/drivers/c128.c
| r6695 | r6696 | |
| 178 | 178 | #include "machine/6526cia.h" |
| 179 | 179 | |
| 180 | 180 | #include "machine/cbmipt.h" |
| 181 | #include "machine/c1571.h" |
| 182 | #include "machine/c1581.h" |
| 181 | 183 | #include "video/vic6567.h" |
| 182 | 184 | #include "video/vdc8563.h" |
| 183 | 185 | |
| 186 | |
| 184 | 187 | /* devices config */ |
| 185 | 188 | #include "includes/cbm.h" |
| 186 | | #include "includes/cbmserb.h" |
| 187 | | #include "includes/cbmdrive.h" |
| 188 | | #include "includes/vc1541.h" |
| 189 | #include "machine/cbmiec.h" |
| 189 | 190 | |
| 190 | 191 | #include "includes/c128.h" |
| 191 | 192 | #include "includes/c64.h" |
| r6695 | r6696 | |
| 578 | 579 | c128_m6510_port_write, /* port_write_func */ |
| 579 | 580 | }; |
| 580 | 581 | |
| 582 | static CBM_IEC_DAISY( c128_iec_bus ) |
| 583 | { |
| 584 | { "cia_1", DEVCB_DEVICE_LINE("cia_0", mos6526_flag_w) }, |
| 585 | { C1571_IEC("c1571") }, |
| 586 | { NULL} |
| 587 | }; |
| 581 | 588 | |
| 589 | static CBM_IEC_DAISY( c128d81_iec_bus ) |
| 590 | { |
| 591 | { "cia_1", DEVCB_DEVICE_LINE("cia_0", mos6526_flag_w) }, |
| 592 | { C1581_IEC("c1581") }, |
| 593 | { NULL} |
| 594 | }; |
| 595 | |
| 582 | 596 | /************************************* |
| 583 | 597 | * |
| 584 | 598 | * Machine driver |
| r6695 | r6696 | |
| 636 | 650 | MDRV_CIA6526_ADD("cia_1", CIA6526R1, VIC6567_CLOCK, c128_ntsc_cia1) |
| 637 | 651 | |
| 638 | 652 | /* floppy from serial bus */ |
| 639 | | MDRV_IMPORT_FROM(simulated_drive) |
| 653 | MDRV_CBM_IEC_ADD("iec", c128_iec_bus) |
| 654 | MDRV_C1571_ADD("c1571", "iec", 8) |
| 640 | 655 | |
| 641 | 656 | MDRV_IMPORT_FROM(c64_cartslot) |
| 642 | 657 | MACHINE_DRIVER_END |
| r6695 | r6696 | |
| 644 | 659 | |
| 645 | 660 | static MACHINE_DRIVER_START( c128d ) |
| 646 | 661 | MDRV_IMPORT_FROM( c128 ) |
| 647 | | |
| 648 | | MDRV_DEVICE_REMOVE("serial_bus") // in the current code, serial bus device is tied to the floppy drive |
| 649 | | MDRV_IMPORT_FROM( cpu_c1571 ) |
| 650 | 662 | MACHINE_DRIVER_END |
| 651 | 663 | |
| 652 | 664 | static MACHINE_DRIVER_START( c128dcr ) |
| 653 | 665 | MDRV_IMPORT_FROM( c128 ) |
| 654 | 666 | |
| 655 | | MDRV_DEVICE_REMOVE("serial_bus") // in the current code, serial bus device is tied to the floppy drive |
| 656 | | MDRV_IMPORT_FROM( cpu_c1571cr ) |
| 667 | MDRV_DEVICE_REMOVE("c1571") |
| 668 | MDRV_C1571CR_ADD("c1571", "iec", 8) |
| 657 | 669 | MACHINE_DRIVER_END |
| 658 | 670 | |
| 659 | 671 | static MACHINE_DRIVER_START( c128d81 ) |
| 660 | 672 | MDRV_IMPORT_FROM( c128 ) |
| 661 | 673 | |
| 662 | | MDRV_DEVICE_REMOVE("serial_bus") // in the current code, serial bus device is tied to the floppy drive |
| 663 | | MDRV_IMPORT_FROM( cpu_c1581 ) |
| 674 | MDRV_DEVICE_REMOVE("iec") |
| 675 | MDRV_DEVICE_REMOVE("c1571") |
| 676 | |
| 677 | MDRV_CBM_IEC_ADD("iec", c128d81_iec_bus) |
| 678 | MDRV_C1563_ADD("c1563", "iec", 8) |
| 664 | 679 | MACHINE_DRIVER_END |
| 665 | 680 | |
| 666 | 681 | |
| r6695 | r6696 | |
| 687 | 702 | |
| 688 | 703 | static MACHINE_DRIVER_START( c128dpal ) |
| 689 | 704 | MDRV_IMPORT_FROM( c128pal ) |
| 690 | | |
| 691 | | MDRV_DEVICE_REMOVE("serial_bus") // in the current code, serial bus device is tied to the floppy drive |
| 692 | | MDRV_IMPORT_FROM( cpu_c1571 ) |
| 693 | 705 | MACHINE_DRIVER_END |
| 694 | 706 | |
| 695 | 707 | static MACHINE_DRIVER_START( c128dcrp ) |
| 696 | 708 | MDRV_IMPORT_FROM( c128pal ) |
| 697 | 709 | |
| 698 | | MDRV_DEVICE_REMOVE("serial_bus") // in the current code, serial bus device is tied to the floppy drive |
| 699 | | MDRV_IMPORT_FROM( cpu_c1571cr ) |
| 700 | 710 | MACHINE_DRIVER_END |
| 701 | 711 | |
| 702 | 712 | |
| r6695 | r6696 | |
| 847 | 857 | ROM_LOAD( "390059-01.bin", 0x120000, 0x2000, CRC(6aaaafe6) SHA1(29ed066d513f2d5c09ff26d9166ba23c2afb2b3f) ) |
| 848 | 858 | |
| 849 | 859 | ROM_REGION( 0x10000, "m8502", ROMREGION_ERASEFF ) |
| 850 | | C1571_ROM("cpu_vc1571") |
| 851 | 860 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASEFF ) |
| 852 | 861 | ROM_REGION( 0x100, "gfx2", ROMREGION_ERASEFF ) |
| 853 | 862 | ROM_END |
| r6695 | r6696 | |
| 862 | 871 | ROM_LOAD( "390059-01.bin", 0x120000, 0x2000, CRC(6aaaafe6) SHA1(29ed066d513f2d5c09ff26d9166ba23c2afb2b3f) ) // Character |
| 863 | 872 | |
| 864 | 873 | ROM_REGION( 0x10000, "m8502", ROMREGION_ERASEFF ) |
| 865 | | C1571CR_ROM("cpu_vc1571") |
| 866 | 874 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASEFF ) |
| 867 | 875 | ROM_REGION( 0x100, "gfx2", ROMREGION_ERASEFF ) |
| 868 | 876 | ROM_END |
| r6695 | r6696 | |
| 877 | 885 | ROM_LOAD( "315079-01.bin", 0x120000, 0x2000, CRC(fe5a2db1) SHA1(638f8aff51c2ac4f99a55b12c4f8c985ef4bebd3) ) |
| 878 | 886 | |
| 879 | 887 | ROM_REGION( 0x10000, "m8502", ROMREGION_ERASEFF ) |
| 880 | | C1571CR_ROM("cpu_vc1571") |
| 881 | 888 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASEFF ) |
| 882 | 889 | ROM_REGION( 0x100, "gfx2", ROMREGION_ERASEFF ) |
| 883 | 890 | ROM_END |
| r6695 | r6696 | |
| 890 | 897 | ROM_LOAD( "325181-01.bin", 0x120000, 0x2000, CRC(7a70d9b8) SHA1(aca3f7321ee7e6152f1f0afad646ae41964de4fb) ) |
| 891 | 898 | |
| 892 | 899 | ROM_REGION( 0x10000, "m8502", ROMREGION_ERASEFF ) |
| 893 | | C1571CR_ROM("cpu_vc1571") |
| 894 | 900 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASEFF ) |
| 895 | 901 | ROM_REGION( 0x100, "gfx2", ROMREGION_ERASEFF ) |
| 896 | 902 | ROM_END |
| r6695 | r6696 | |
| 906 | 912 | ROM_LOAD( "325167-01.bin", 0x120000, 0x2000, BAD_DUMP CRC(bad36b88) SHA1(9119b27a1bf885fa4c76fff5d858c74c194dd2b8) ) |
| 907 | 913 | |
| 908 | 914 | ROM_REGION( 0x10000, "m8502", ROMREGION_ERASEFF ) |
| 909 | | C1571CR_ROM("cpu_vc1571") |
| 910 | 915 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASEFF ) |
| 911 | 916 | ROM_REGION( 0x100, "gfx2", ROMREGION_ERASEFF ) |
| 912 | 917 | ROM_END |
| r6695 | r6696 | |
| 921 | 926 | ROM_LOAD( "390059-01.bin", 0x120000, 0x2000, CRC(6aaaafe6) SHA1(29ed066d513f2d5c09ff26d9166ba23c2afb2b3f) ) |
| 922 | 927 | |
| 923 | 928 | ROM_REGION( 0x10000, "m8502", ROMREGION_ERASEFF ) |
| 924 | | C1581_ROM("cpu_vc1571") |
| 925 | 929 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASEFF ) |
| 926 | 930 | ROM_REGION( 0x100, "gfx2", ROMREGION_ERASEFF ) |
| 927 | 931 | ROM_END |
| 928 | 932 | |
| 929 | 933 | |
| 930 | 934 | |
| 931 | | /************************************* |
| 932 | | * |
| 933 | | * System configuration(s) |
| 934 | | * |
| 935 | | *************************************/ |
| 936 | | |
| 937 | | |
| 938 | | static SYSTEM_CONFIG_START(c128) |
| 939 | | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 940 | | SYSTEM_CONFIG_END |
| 941 | | |
| 942 | | static SYSTEM_CONFIG_START(c128d) |
| 943 | | CONFIG_DEVICE(c1571_device_getinfo) |
| 944 | | SYSTEM_CONFIG_END |
| 945 | | |
| 946 | | static SYSTEM_CONFIG_START(c128d81) |
| 947 | | CONFIG_DEVICE(c1581_device_getinfo) |
| 948 | | SYSTEM_CONFIG_END |
| 949 | | |
| 950 | | |
| 951 | 935 | /*************************************************************************** |
| 952 | 936 | |
| 953 | 937 | Game driver(s) |
| r6695 | r6696 | |
| 956 | 940 | |
| 957 | 941 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 958 | 942 | |
| 959 | | COMP( 1985, c128, 0, 0, c128, c128, c128, c128, "Commodore Business Machines Co.", "Commodore 128 (NTSC)", 0) |
| 960 | | COMP( 1985, c128cr, c128, 0, c128, c128, c128, c128, "Commodore Business Machines Co.", "Commodore 128CR (NTSC, proto?)", 0) |
| 943 | COMP( 1985, c128, 0, 0, c128, c128, c128, 0, "Commodore Business Machines Co.", "Commodore 128 (NTSC)", 0) |
| 944 | COMP( 1985, c128cr, c128, 0, c128, c128, c128, 0, "Commodore Business Machines Co.", "Commodore 128CR (NTSC, proto?)", 0) |
| 961 | 945 | |
| 962 | | COMP( 1985, c128sfi, c128, 0, c128pal, c128fra, c128pal, c128, "Commodore Business Machines Co.", "Commodore 128 (PAL, Swedish / Finnish)", 0) |
| 963 | | COMP( 1985, c128fino, c128, 0, c128pal, c128swe, c128pal, c128, "Commodore Business Machines Co.", "Commodore 128 (PAL, Finland, Unconfirmed Dumps)", 0) |
| 964 | | COMP( 1985, c128fra, c128, 0, c128pal, c128fra, c128pal, c128, "Commodore Business Machines Co.", "Commodore 128 (PAL, France)", 0) |
| 965 | | COMP( 1985, c128ger, c128, 0, c128pal, c128ger, c128pal, c128, "Commodore Business Machines Co.", "Commodore 128 (PAL, Germany)", 0) |
| 966 | | COMP( 1985, c128nor, c128, 0, c128pal, c128ita, c128pal, c128, "Commodore Business Machines Co.", "Commodore 128 (PAL, Norway)", 0) |
| 946 | COMP( 1985, c128sfi, c128, 0, c128pal, c128fra, c128pal, 0, "Commodore Business Machines Co.", "Commodore 128 (PAL, Swedish / Finnish)", 0) |
| 947 | COMP( 1985, c128fino, c128, 0, c128pal, c128swe, c128pal, 0, "Commodore Business Machines Co.", "Commodore 128 (PAL, Finland, Unconfirmed Dumps)", 0) |
| 948 | COMP( 1985, c128fra, c128, 0, c128pal, c128fra, c128pal, 0, "Commodore Business Machines Co.", "Commodore 128 (PAL, France)", 0) |
| 949 | COMP( 1985, c128ger, c128, 0, c128pal, c128ger, c128pal, 0, "Commodore Business Machines Co.", "Commodore 128 (PAL, Germany)", 0) |
| 950 | COMP( 1985, c128nor, c128, 0, c128pal, c128ita, c128pal, 0, "Commodore Business Machines Co.", "Commodore 128 (PAL, Norway)", 0) |
| 967 | 951 | // we miss other countries: Spain, Belgium, etc. |
| 968 | 952 | |
| 969 | 953 | // the following drivers use a 1571 floppy drive |
| 970 | | COMP( 1985, c128dpr, c128, 0, c128d, c128, c128d, c128d, "Commodore Business Machines Co.", "Commodore 128D (NTSC, proto)", GAME_NOT_WORKING) |
| 971 | | COMP( 1985, c128d, c128, 0, c128dpal, c128, c128dpal, c128d, "Commodore Business Machines Co.", "Commodore 128D (PAL)", GAME_NOT_WORKING) |
| 954 | COMP( 1985, c128dpr, c128, 0, c128d, c128, c128d, 0, "Commodore Business Machines Co.", "Commodore 128D (NTSC, proto)", GAME_NOT_WORKING) |
| 955 | COMP( 1985, c128d, c128, 0, c128dpal, c128, c128dpal, 0, "Commodore Business Machines Co.", "Commodore 128D (PAL)", GAME_NOT_WORKING) |
| 972 | 956 | |
| 973 | 957 | // the following drivers use a 1571CR floppy drive |
| 974 | | COMP( 1986, c128dcr, c128, 0, c128dcr, c128, c128dcr, c128d, "Commodore Business Machines Co.", "Commodore 128DCR (NTSC)", GAME_NOT_WORKING) |
| 975 | | COMP( 1986, c128drde, c128, 0, c128dcrp, c128ger, c128dcrp, c128d, "Commodore Business Machines Co.", "Commodore 128DCR (PAL, Germany)", GAME_NOT_WORKING) |
| 976 | | COMP( 1986, c128drit, c128, 0, c128dcrp, c128ita, c128dcrp, c128d, "Commodore Business Machines Co.", "Commodore 128DCR (PAL, Italy)", GAME_NOT_WORKING) |
| 977 | | COMP( 1986, c128drsw, c128, 0, c128dcrp, c128swe, c128dcrp, c128d, "Commodore Business Machines Co.", "Commodore 128DCR (PAL, Sweden)", GAME_NOT_WORKING) |
| 958 | COMP( 1986, c128dcr, c128, 0, c128dcr, c128, c128dcr, 0, "Commodore Business Machines Co.", "Commodore 128DCR (NTSC)", GAME_NOT_WORKING) |
| 959 | COMP( 1986, c128drde, c128, 0, c128dcrp, c128ger, c128dcrp, 0, "Commodore Business Machines Co.", "Commodore 128DCR (PAL, Germany)", GAME_NOT_WORKING) |
| 960 | COMP( 1986, c128drit, c128, 0, c128dcrp, c128ita, c128dcrp, 0, "Commodore Business Machines Co.", "Commodore 128DCR (PAL, Italy)", GAME_NOT_WORKING) |
| 961 | COMP( 1986, c128drsw, c128, 0, c128dcrp, c128swe, c128dcrp, 0, "Commodore Business Machines Co.", "Commodore 128DCR (PAL, Sweden)", GAME_NOT_WORKING) |
| 978 | 962 | |
| 979 | 963 | // the following driver is a c128 with 1581 floppy drive. it allows us to document 1581 firmware dumps, but it does not do much more |
| 980 | | COMP( 1986, c128d81, c128, 0, c128d81, c128, c128d81, c128d81, "Commodore Business Machines Co.", "Commodore 128D/81 (NTSC, proto)", GAME_NOT_WORKING) |
| 964 | COMP( 1986, c128d81, c128, 0, c128d81, c128, c128d81, 0, "Commodore Business Machines Co.", "Commodore 128D/81 (NTSC, proto)", GAME_NOT_WORKING) |