1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-26 09:29:45 +00:00

Implements MSX interrupt/data request reading register.

The disk ROM now appears to accept on-disk bytes, but still announces an IO failure.
This commit is contained in:
Thomas Harte 2018-01-07 20:28:34 -05:00
parent 2f59226300
commit 8be6cb827b

View File

@ -44,6 +44,9 @@ uint8_t DiskROM::read(uint16_t address) {
if(address >= 0x7ff8 && address < 0x7ffc) {
return get_register(address);
}
if(address == 0x7fff) {
return (get_data_request_line() ? 0x00 : 0x80) | (get_interrupt_request_line() ? 0x00 : 0x40);
}
return rom_[address & 0x3fff];
}