mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 00:29:47 +00:00
Tidy the i8080 interrupt handling to be more like the Z80 implementation
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
f1b3fc1932
commit
1bf797490b
@ -266,15 +266,14 @@ int EightBit::Intel8080::step() {
|
||||
ExecutingInstruction.fire(*this);
|
||||
resetCycles();
|
||||
if (LIKELY(powered())) {
|
||||
uint8_t instruction;
|
||||
if (UNLIKELY(INT() && m_interruptEnable)) {
|
||||
if (UNLIKELY(INT())) {
|
||||
INT() = false;
|
||||
di();
|
||||
instruction = BUS().DATA();
|
||||
} else {
|
||||
instruction = fetchByte();
|
||||
if (m_interruptEnable) {
|
||||
di();
|
||||
return execute(BUS().DATA());
|
||||
}
|
||||
}
|
||||
return execute(instruction);
|
||||
return execute(fetchByte());
|
||||
}
|
||||
return cycles();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user