Previous 15994 Revisions Next

r7426 Friday 19th February, 2010 at 11:18:26 UTC by Curt Coder
Implemented 'disk double sided' (TWOSID) floppy drive signal.
[docs]messnew.txt
[src/mess/devices]flopdrv.c flopdrv.h
[src/mess/drivers]trs80m2.c

src/mess/devices/flopdrv.c
r7425r7426
996996   return drive->dskchg;
997997}
998998
999/* 2-sided disk */
1000READ_LINE_DEVICE_HANDLER( floppy_twosid_r )
1001{
1002   floppy_drive *drive = get_safe_token(device);
1003
1004   if (drive->floppy == NULL)
1005      return ASSERT_LINE;
1006   else
1007      return !floppy_get_heads_per_disk(drive->floppy);
1008}
1009
9991010/*************************************
10001011 *
10011012 *  Device specification function
src/mess/devices/flopdrv.h
r7425r7426
150150/* disk changed */
151151READ_LINE_DEVICE_HANDLER( floppy_dskchg_r );
152152
153/* 2-sided disk */
154READ_LINE_DEVICE_HANDLER( floppy_twosid_r );
155
153156#define FLOPPY   DEVICE_GET_INFO_NAME(floppy)
154157DEVICE_GET_INFO(floppy);
155158
src/mess/drivers/trs80m2.c
r7425r7426
626626   data |= state->fdc_intrq;
627627 
628628   /* 2-sided diskette */
629   data |= 0x02;
629   data |= floppy_twosid_r(state->floppy) << 1;
630630 
631631   /* disk change */
632632   data |= floppy_dskchg_r(state->floppy) << 2;
r7425r7426
875875   MDRV_IMPORT_FROM(trs80m2)
876876 
877877   /* basic machine hardware */
878   MDRV_CPU_ADD(M68000_TAG, M68000, 6000000)
879   MDRV_CPU_PROGRAM_MAP(m68000_mem)
878//   MDRV_CPU_ADD(M68000_TAG, M68000, 6000000)
879//   MDRV_CPU_PROGRAM_MAP(m68000_mem)
880880 
881881   /* video hardware */
882882   MDRV_PALETTE_INIT(monochrome_green)
docs/messnew.txt
r7425r7426
103103- Placed floppy drive head initially on track 0 to fix alignment issues
104104  with Commodore drives, where physical track 1 is a half track. [Curt Coder]
105105
106- Implemented 'disk changed' floppy drive signal. [Curt Coder]
106- Implemented 'disk changed' (DSKCHG) floppy drive signal. [Curt Coder]
107107
108108- Implemented floppy drive write protect signal toggling on floppy
109109  disk insert/eject. [Curt Coder]
110 
111- Implemented 'disk double sided' (TWOSID) floppy drive signal. [Curt Coder]
110112
111113- Emulated the following Commodore floppy disk drives at hardware level:
112114  1551, 1571, 1581, 2040, 3040, 4040, 8050, 8250, SFD-1001. [Curt Coder]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team