X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffloppydrive.h;fp=src%2Ffloppydrive.h;h=15290d33df4703ab9c93411103032f9a9bc069a9;hb=695e6c22a404fc7e4141a5c8e5ceda10d48c7fd3;hp=d463a79d33ac30899ba161d48cb79c55ad4678ae;hpb=e4b94bfc1e03e2c2848ab34e5f0cd8790e10f4b3;p=apple2 diff --git a/src/floppydrive.h b/src/floppydrive.h index d463a79..15290d3 100644 --- a/src/floppydrive.h +++ b/src/floppydrive.h @@ -76,7 +76,9 @@ class FloppyDrive uint8_t motorOn; uint8_t activeDrive; uint8_t ioMode; + public: // temp, for testing... :-P uint8_t dataRegister; + private: uint8_t phase[2]; uint8_t headPos[2]; bool ioHappened; @@ -85,19 +87,22 @@ class FloppyDrive uint32_t currentPos[2]; uint8_t cpuDataBus; - uint8_t slSwitch; // Shift/Load soft switch - uint8_t rwSwitch; // Read/Write soft switch - uint8_t readPulse; // Disk read head "pulse" signal - uint8_t pulseClock; // Disk read head bitstream "pulse clock" + uint8_t slSwitch; // Shift/Load soft switch + uint8_t rwSwitch; // Read/Write soft switch + uint8_t readPulse; // Disk read head "pulse" signal + uint8_t pulseClock; // Disk read head bitstream "pulse clock" uint8_t sequencerState; uint32_t driveOffTimeout; uint8_t zeroBitCount; uint16_t trackLength[2]; +// uint8_t pulseTiming; // WOZ disk "optimal" pulse timing (in 0.25µs) + uint8_t window; }; // Exported functions/variables void InstallFloppy(uint8_t slot); extern FloppyDrive floppyDrive[]; +extern char sequence[]; #endif // __FLOPPY_H__