It now sort of works but something isn't right in the track handling logic
so that's partly commented out. We issue excess seeks as a result.
while (ct < 2) {
for (tries = 0; tries < 4 ; tries++) {
-// kprintf("Issue command: %d drive %d sec %d\n", cmd[0], minor, cmd[2]);
err = fd_operation(cmd, driveptr);
-// kprintf("Issue command: return %d\n", err);
if (err == 0)
break;
if (tries > 1)
sta <FDCTRK ; reset track register
pshs x,y
cmpa TRACK,x ; target track
- beq fdiosetup
+;
+; FIXME: what have we screwed up here so this always branches ???
+;
+; beq fdiosetup
sta <FDCTRK ; target
;