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