cpu/cpu - Add way to signal interrupt from outside
This commit is contained in:
parent
7aa1af40fb
commit
216cf660a1
2 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||||
|
|
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue