1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Makes some further random swings at tracking the startup procedure.

This commit is contained in:
Thomas Harte
2019-06-28 13:03:47 -04:00
parent 651fd9c4a5
commit 6c588a1510
4 changed files with 22 additions and 13 deletions
+7 -7
View File
@@ -8,7 +8,7 @@
#include "IWM.hpp"
#define NDEBUG
//#define NDEBUG
#include "../../Outputs/Log.hpp"
using namespace Apple;
@@ -66,7 +66,7 @@ uint8_t IWM::read(int address) {
// printf("\n\nIWM:%02x\n\n", data_register_);
data_register_ = 0;
}
LOG("Reading data register: " << PADHEX(2) << int(result));
// LOG("Reading data register: " << PADHEX(2) << int(result));
return result;
}
@@ -92,16 +92,16 @@ uint8_t IWM::read(int address) {
LOG("unknown)");
break;
// 4 = step finished (0 = done)
// Possible other meanings:
// B = ready (0 = ready)
// 8 = motor on
//
// {CA1,CA0,SEL,CA2}
// case 0: // Head step direction.
case 0: // Head step direction.
// (0 = inward)
// printf("head step direction)\n");
// break;
LOG("head step direction)");
sense = (step_direction_ > 0) ? 0 : 1;
break;
case SEL: // Disk in place.
// (0 = disk present)