mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-23 23:02:16 +00:00
Correct Z80 NMI assertion and reset test
This commit is contained in:
1 parent
53f0b74014
commit
8b10bc575d
2 files changed
+2
-3
No files matched your search
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user