diff --git a/cpu/cpu.cpp b/cpu/cpu.cpp index 90784ce..d6d1188 100644 --- a/cpu/cpu.cpp +++ b/cpu/cpu.cpp @@ -103,6 +103,11 @@ void Cpu::doRet() state.PC = popStack16(); } +void Cpu::signalInterrupt(InterruptType it) +{ + state.IF |= it; +} + bool Cpu::decodeCond(u8 cc) { switch(cc) diff --git a/cpu/cpu.h b/cpu/cpu.h index a566f1f..a87b476 100644 --- a/cpu/cpu.h +++ b/cpu/cpu.h @@ -132,9 +132,7 @@ public: unsigned long processed_mcycles; - void signal(InterruptType it); - void setIE(u8 val); - u8 getIE(); + void signalInterrupt(InterruptType it); void step(); };