mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-18 01:29:49 +00:00
Correct problematic continuation from "halt" on Z80.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
4b0cf426b9
commit
2efd53d33a
@ -56,7 +56,8 @@ void EightBit::Z80::handleRESET() {
|
||||
|
||||
void EightBit::Z80::handleNMI() {
|
||||
raiseNMI();
|
||||
raiseHALT();
|
||||
if (halted())
|
||||
proceed();
|
||||
IFF1() = false;
|
||||
restart(0x66);
|
||||
tick(13);
|
||||
@ -64,7 +65,8 @@ void EightBit::Z80::handleNMI() {
|
||||
|
||||
void EightBit::Z80::handleINT() {
|
||||
IntelProcessor::handleINT();
|
||||
raiseHALT();
|
||||
if (halted())
|
||||
proceed();
|
||||
if (IFF1()) {
|
||||
di();
|
||||
switch (IM()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user