mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Disks are now communicated to the 8272. Which is able to handle four of them.
This commit is contained in:
parent
c12425e141
commit
a7103f9333
@ -69,6 +69,9 @@ uint8_t i8272::get_register(int address) {
|
||||
}
|
||||
}
|
||||
|
||||
void i8272::set_disk(std::shared_ptr<Storage::Disk::Disk> disk, int drive) {
|
||||
}
|
||||
|
||||
#define BEGIN_SECTION() switch(resume_point_) { default:
|
||||
#define END_SECTION() }
|
||||
|
||||
|
@ -25,6 +25,8 @@ class i8272: public Storage::Disk::MFMController {
|
||||
void set_register(int address, uint8_t value);
|
||||
uint8_t get_register(int address);
|
||||
|
||||
void set_disk(std::shared_ptr<Storage::Disk::Disk> disk, int drive);
|
||||
|
||||
private:
|
||||
void posit_event(int type);
|
||||
uint8_t main_status_;
|
||||
|
@ -739,7 +739,13 @@ class ConcreteMachine:
|
||||
tape_player_.set_tape(target.tapes.front());
|
||||
}
|
||||
|
||||
// TODO: disks.
|
||||
// Insert up to four disks.
|
||||
int c = 0;
|
||||
for(auto &disk : target.disks) {
|
||||
fdc_.set_disk(disk, c);
|
||||
c++;
|
||||
if(c == 4) break;
|
||||
}
|
||||
}
|
||||
|
||||
// See header; provides the system ROMs.
|
||||
|
Loading…
Reference in New Issue
Block a user