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:
Mark Emmer 2014-03-02 22:27:45 -06:00
parent a07addf5fa
commit 0c6c4c7916

View file

@ -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;
} }