diff --git a/include/PSX/System/IOPorts/cd_io.hpp b/include/PSX/System/IOPorts/cd_io.hpp index 587346eb..5f248bf0 100644 --- a/include/PSX/System/IOPorts/cd_io.hpp +++ b/include/PSX/System/IOPorts/cd_io.hpp @@ -34,17 +34,17 @@ namespace JabyEngine { }; struct Interrupt { - /*static void enable_all(IOPort& port) { - port.write_combined(InterruptEnable::InterruptTypValue.max(), InterruptEnable::UnknownIRQ, InterruptEnable::CommandStartIRQ); + static void enable_all(IOPort& port) { + port.write({InterruptEnable::with(InterruptEnable::InterruptTypValue.max(), InterruptEnable::UnknownIRQ, InterruptEnable::CommandStartIRQ)}); } - static uint8_t get_type(const IOPort& port) { + static uint8_t get_type(const IOPort& port) { return port.read().get_value(InterruptFlag::InterruptTypValue); } - static void ack(IOPort& port) { - port.write_combined(InterruptFlag::InterruptTypValue.max()); - }*/ + static void ack(IOPort& port) { + port.write_range_value(InterruptFlag::InterruptTypValue.max()); + } }; typedef uint8_t ResponseFifo;