Skip to content

Commit

Permalink
Merge pull request #1373 from TomHarte/DiskReady
Browse files Browse the repository at this point in the history
Further adjust RDY.
  • Loading branch information
TomHarte authored May 1, 2024
2 parents 63009d0 + d90eedf commit e6724a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Machines/Acorn/Archimedes/FloppyDisc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ template <typename InterruptObserverT>
class FloppyDisc: public WD::WD1770, public WD::WD1770::Delegate {
public:
FloppyDisc(InterruptObserverT &observer) : WD::WD1770(P1772), observer_(observer) {
emplace_drives(1, 8000000, 300, 2, Storage::Disk::Drive::ReadyType::IBMRDY); // A guess at RDY type.
emplace_drives(1, 8000000, 300, 2, Storage::Disk::Drive::ReadyType::ShugartModifiedRDY); // A guess at RDY type.
set_delegate(this);
}

Expand Down
2 changes: 1 addition & 1 deletion Machines/Acorn/Archimedes/InputOutputController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ struct InputOutputController: public ClockingHint::Observer {
uint8_t value = control_ | 0xc0;
value &= ~(i2c_.data() ? 0x01 : 0x00);
value &= ~(i2c_.clock() ? 0x02 : 0x00);
value &= ~(floppy_.ready() ? 0x04 : 0x00);
value &= ~(floppy_.ready() ? 0x00 : 0x04);
value &= ~(video_.flyback_active() ? 0x00 : 0x80); // i.e. high during flyback.
set_byte(value);
// logger.error().append("IOC control read: C:%d D:%d", !(value & 2), !(value & 1));
Expand Down
3 changes: 3 additions & 0 deletions Storage/Disk/Controller/DiskController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ class Controller:
Drive &get_drive(size_t index) {
return *drives_[index];
}
const Drive &get_drive(size_t index) const {
return *drives_[index];
}

void for_all_drives(const std::function<void(Drive &, size_t)> &func) {
size_t index = 0;
Expand Down

0 comments on commit e6724a7

Please sign in to comment.