From f051ddb9b7feee2e40e9c34c2af78b13847f7e4b Mon Sep 17 00:00:00 2001 From: Jaby Date: Sun, 15 Jan 2023 16:52:32 +0100 Subject: [PATCH] Enable CD IRQ code which caused those problems --- include/PSX/System/IOPorts/cd_io.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;