Enable CD IRQ code which caused those problems

This commit is contained in:
Jaby 2023-01-15 16:52:32 +01:00
parent fc915a887a
commit a58d352790
1 changed files with 6 additions and 6 deletions

View File

@ -34,17 +34,17 @@ namespace JabyEngine {
};
struct Interrupt {
/*static void enable_all(IOPort<InterruptEnable>& port) {
port.write_combined(InterruptEnable::InterruptTypValue.max(), InterruptEnable::UnknownIRQ, InterruptEnable::CommandStartIRQ);
static void enable_all(IOPort<InterruptEnable::UnderlyingType, InterruptEnable>& port) {
port.write({InterruptEnable::with(InterruptEnable::InterruptTypValue.max(), InterruptEnable::UnknownIRQ, InterruptEnable::CommandStartIRQ)});
}
static uint8_t get_type(const IOPort<InterruptFlag>& port) {
static uint8_t get_type(const IOPort<InterruptFlag::UnderlyingType, InterruptFlag>& port) {
return port.read().get_value(InterruptFlag::InterruptTypValue);
}
static void ack(IOPort<InterruptFlag>& port) {
port.write_combined(InterruptFlag::InterruptTypValue.max());
}*/
static void ack(IOPort<InterruptFlag::UnderlyingType, InterruptFlag>& port) {
port.write_range_value(InterruptFlag::InterruptTypValue.max());
}
};
typedef uint8_t ResponseFifo;