From 8be6cb827bd14c5e3620002ac0d4b942aaa4a2e2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 7 Jan 2018 20:28:34 -0500 Subject: [PATCH] Implements MSX interrupt/data request reading register. The disk ROM now appears to accept on-disk bytes, but still announces an IO failure. --- Machines/MSX/DiskROM.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Machines/MSX/DiskROM.cpp b/Machines/MSX/DiskROM.cpp index 1af677d3e..9b90433f2 100644 --- a/Machines/MSX/DiskROM.cpp +++ b/Machines/MSX/DiskROM.cpp @@ -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]; }