Correct Z80 NMI assertion and reset test

This commit is contained in:
Adrian Conlon committed 2026-09-11 21:29:21 +01:00
1 parent 53f0b74014
commit 8b10bc575d
2 files changed
+2 -3

No files matched your search

+2 -2
View File
@@ -64,12 +64,12 @@ namespace Z80.UnitTests
}
[TestMethod]
public void Reset_Deasserts_Reset_Pin()
public void Reset_Ignores_Reset_Pin()
{
this.cpu.LowerRESET(); // asserts RESET — fires LoweredRESET event
Assert.IsTrue(this.cpu.RESET.Lowered(), "RESET pin must be asserted before step");
this.cpu.Step();
Assert.IsTrue(this.cpu.RESET.Raised(), "HandleRESET must deassert the RESET pin");
Assert.IsTrue(this.cpu.RESET.Lowered());
}
[TestMethod]
-1
View File
@@ -202,7 +202,6 @@ namespace Z80
}
Debug.Assert(this.RESET.Raised());
Debug.Assert(this.NMI.Raised());
// ** From the Z80 CPU User Manual
// When a software HALT instruction is executed, the CPU executes NOPs until an interrupt