Changeset 00c31a2 in buchla-68k for ram/dformat.c
- Timestamp:
- 11/15/2017 07:46:27 PM (6 years ago)
- Branches:
- master
- Children:
- 58ff1a9
- Parents:
- 72741f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/dformat.c
r72741f4 r00c31a2 55 55 for (trk = 0; trk < 80; trk++) { 56 56 57 if ( dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,58 trk, 0, 1, 0x87654321L, 0xE5E5)) {57 if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9, 58 trk, 0, 1, 0x87654321L, 0xE5E5))) { 59 59 60 60 defect = 1; /* unable to format 1st side */ … … 64 64 if (dfsides EQ 2) { /* format second side */ 65 65 66 if ( dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,67 trk, 1, 1, 0x87654321L, 0xE5E5)) {66 if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9, 67 trk, 1, 1, 0x87654321L, 0xE5E5))) { 68 68 69 69 defect = 2; /* unable to format 2nd side */ … … 80 80 /* write boot sector to disk */ 81 81 82 if ( dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1)) {82 if ((dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1))) { 83 83 84 84 defect = 3; /* unable to write boot sector */ … … 101 101 } 102 102 103 if ( dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,104 DF_FSIZ, DF_FREC, 0)) {103 if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf, 104 DF_FSIZ, DF_FREC, 0))) { 105 105 106 106 defect = 4; /* unable to write primary FAT */ … … 108 108 } 109 109 110 if ( dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,111 DF_FSIZ, DF_FREC-DF_FSIZ, 0)) {110 if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf, 111 DF_FSIZ, DF_FREC-DF_FSIZ, 0))) { 112 112 113 113 defect = 5; /* unable to write secondary FAT */ … … 119 119 memsetw(dfbuf, 0, 4096); 120 120 121 if ( dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,122 DF_DSIZ, DF_FREC+DF_FSIZ, 0)) {121 if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf, 122 DF_DSIZ, DF_FREC+DF_FSIZ, 0))) { 123 123 124 124 defect = 6; /* unable to write directory */
Note:
See TracChangeset
for help on using the changeset viewer.