Previous 15994 Revisions Next

r7262 Thursday 4th February, 2010 at 16:21:20 UTC by Curt Coder
[C8050] WIP
[src/mess/formats]g64_dsk.h
[src/mess/machine]c2040.c

src/mess/machine/c2040.c
r7261r7262
1111
1212   TODO:
1313
14   - 8050 illegal track or sector 0,255
14   - 8050 cannot load anything except directory
1515   - 4040 bumps head before reading directory
16   - 2040 DOS 1 FDC rom
1617   - Micropolis 8x50 stepper motor is same as 4040, except it takes 4 pulses to step a track instead of 1
1718   - save states
1819   - remove via_pb_r
r7261r7262
933934
934935   /* stepper motor 1 */
935936   int s1 = data & 0x03;
936   mpi_step_motor(c2040, 0, mtr1, s1);
937   mpi_step_motor(c2040, 1, mtr1, s1);
937938
938939   /* stepper motor 0 */
939940   int s0 = (data >> 2) & 0x03;
r7261r7262
11201121   data |= 0x10;
11211122
11221123   /* single/dual sided */
1123   data |= (device->type == C8050) << 6;
1124   if (device->owner->type == C8050)
1125   {
1126      data |= 0x40;
1127   }
11241128
11251129   return data;
11261130}
r7261r7262
11451149   c2040_t *c2040 = get_safe_token(device->owner);
11461150
11471151   /* drive select */
1148   if ((device->type == C8050) || (device->type == C8250))
1152   if ((device->owner->type == C8050) || (device->owner->type == C8250))
11491153   {
11501154      c2040->drive = BIT(newdata, 0);
11511155   }
r7261r7262
11601164   }
11611165
11621166   /* side select */
1163   if ((device->type == C8250) || (device->type == SFD1001))
1167   if ((device->owner->type == C8250) || (device->owner->type == SFD1001))
11641168   {
11651169      c2040->side = !BIT(newdata, 4);
11661170   }
r7261r7262
11861190-------------------------------------------------*/
11871191
11881192static FLOPPY_OPTIONS_START( c2040 )
1189   FLOPPY_OPTION( c2040, "d67", "Commodore 2040/3040 (DOS 1) Disk Image", d67_dsk_identify, d64_dsk_construct, NULL )
1193   FLOPPY_OPTION( c2040, "d67", "Commodore 2040/3040 Disk Image", d67_dsk_identify, d64_dsk_construct, NULL )
1194   FLOPPY_OPTION( c2040, "g64", "Commodore 2040/3040 GCR Disk Image", g64_dsk_identify, g64_dsk_construct, NULL )
11901195FLOPPY_OPTIONS_END
11911196
11921197/*-------------------------------------------------
src/mess/formats/g64_dsk.h
r7261r7262
3030
3131const int C8050_BITRATE[] =
3232{
33   XTAL_12MHz/3/16,   /* tracks  1-39 */
34   XTAL_12MHz/3/15,   /* tracks 40-53 */
35   XTAL_12MHz/3/14,   /* tracks 54-65 */
36   XTAL_12MHz/3/13      /* tracks 65-84 */
33   XTAL_12MHz/2/16,   /* tracks  1-39 */
34   XTAL_12MHz/2/15,   /* tracks 40-53 */
35   XTAL_12MHz/2/14,   /* tracks 54-65 */
36   XTAL_12MHz/2/13      /* tracks 65-84 */
3737};
3838
3939/***************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team