expose selected drive and track for debugging

This commit is contained in:
Jorj Bauer 2020-07-04 08:03:13 -04:00
parent 7f561b1b90
commit 6d0f168232
2 changed files with 16 additions and 1 deletions

View File

@ -759,3 +759,15 @@ void DiskII::maintenance(uint32_t cycle)
}
}
uint8_t DiskII::selectedDrive()
{
return selectedDisk;
}
uint8_t DiskII::headPosition(uint8_t drive)
{
return curHalfTrack[drive];
}

View File

@ -37,6 +37,9 @@ class DiskII : public Slot {
void maintenance(uint32_t cycles);
uint8_t selectedDrive();
uint8_t headPosition(uint8_t drive);
private:
void setPhase(uint8_t phase);
@ -57,7 +60,7 @@ class DiskII : public Slot {
public:
// debugging
WozSerializer *disk[2];
private:
private:
volatile int8_t curHalfTrack[2];
volatile uint8_t curWozTrack[2];
volatile int8_t curPhase[2];