SDS: Fixed head disk addressing corrected when start new sector
rad_adjda was setting sba=0 at a sector boundary, which did not reflect that the first 12-bits of the sector have already be read or written. Must set sba=1 for proper addressing. Removed superfluous end-of-line spaces from file.
This commit is contained in:
parent
a07addf5fa
commit
0c6c4c7916
1 changed files with 3 additions and 3 deletions
|
@ -287,7 +287,7 @@ if (rad_sba >= (RAD_NUMWD * 2)) { /* next sector? */
|
||||||
((rad_da + 1) & RAD_SCMASK);
|
((rad_da + 1) & RAD_SCMASK);
|
||||||
else rad_da = (rad_da & ~RAD_TRSCMASK) + /* cross band */
|
else rad_da = (rad_da & ~RAD_TRSCMASK) + /* cross band */
|
||||||
((rad_da + 1) & RAD_TRSCMASK);
|
((rad_da + 1) & RAD_TRSCMASK);
|
||||||
sba = 0; /* start new sec */
|
sba = 1; /* start new sec */
|
||||||
}
|
}
|
||||||
return sba;
|
return sba;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue