Update sigma_dp.c

Found by Ken Rector; TDV hangs because loop is missing its increment.
This commit is contained in:
rms47 2022-06-06 15:45:33 -04:00 committed by GitHub
parent 2e894a95c3
commit 78f56b24f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
/* sigma_dp.c: moving head disk pack controller
Copyright (c) 2008-2017, Robert M Supnik
Copyright (c) 2008-2022, Robert M Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@ -25,6 +25,7 @@
dp moving head disk pack controller
06-Jun-22 RMS Fixed missing loop increment in TDV (Ken Rector)
13-Mar-17 RMS Fixed bug in selecting 3281 unit F (COVERITY)
Transfers are always done a sector at a time.
@ -1028,6 +1029,7 @@ while (tptr->byte != 0) {
data = (uint8) ((ctx->dp_flags & tptr->mask) >> tptr->fpos);
c[tptr->byte] |= (data << tptr->tpos);
}
tptr++;
}
return;
}