1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Proceed to receiving a sense interrupt status.

This commit is contained in:
Thomas Harte 2023-11-25 18:15:37 -05:00
parent 0bb048e24b
commit 9bd75464b5
2 changed files with 11 additions and 1 deletions

View File

@ -13,6 +13,10 @@ namespace Intel::i8272 {
class Status {
public:
Status() {
reset();
}
uint8_t main() const {
return main_status_;
}

View File

@ -66,6 +66,10 @@ class FloppyController {
return status_.main();
}
void write(uint8_t value) {
decoder_.push_back(value);
}
private:
void reset() {
decoder_.clear();
@ -822,10 +826,12 @@ class IO {
case 0x03f2:
fdc_.set_digital_output(uint8_t(value));
break;
case 0x03f5:
fdc_.write(uint8_t(value));
break;
case 0x03f3:
case 0x03f4:
case 0x03f5:
case 0x03f6:
case 0x03f7:
printf("TODO: FDC write of %02x at %04x\n", value, port);