cpu/cpu - Add way to signal interrupt from outside

This commit is contained in:
madmaurice 2023-08-29 13:45:55 +02:00
parent 7aa1af40fb
commit 216cf660a1
2 changed files with 6 additions and 3 deletions

View file

@ -103,6 +103,11 @@ void Cpu::doRet()
state.PC = popStack16(); state.PC = popStack16();
} }
void Cpu::signalInterrupt(InterruptType it)
{
state.IF |= it;
}
bool Cpu::decodeCond(u8 cc) bool Cpu::decodeCond(u8 cc)
{ {
switch(cc) switch(cc)

View file

@ -132,9 +132,7 @@ public:
unsigned long processed_mcycles; unsigned long processed_mcycles;
void signal(InterruptType it); void signalInterrupt(InterruptType it);
void setIE(u8 val);
u8 getIE();
void step(); void step();
}; };