1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Disks are now communicated to the 8272. Which is able to handle four of them.

This commit is contained in:
Thomas Harte 2017-08-06 13:24:14 -04:00
parent c12425e141
commit a7103f9333
3 changed files with 12 additions and 1 deletions

View File

@ -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() }

View File

@ -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_;

View File

@ -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.