All interrupt handling state tests to work

This commit is contained in:
Adrian Conlon
2025-03-27 11:13:41 +00:00
parent e3258846a8
commit 4db203de48
2 changed files with 6 additions and 1 deletions

View File

@@ -206,7 +206,11 @@
var e_good = this.Check("E", final.E, cpu.E);
var h_good = this.Check("H", final.H, cpu.H);
var l_good = this.Check("L", final.L, cpu.L);
var ime_good = this.Check("IME", final.IME, (byte)(cpu.IME ? 1 : 0));
var ime_good = true;
if (final.EI is not null)
{
ime_good = this.Check("IME", final.EI.Value, (byte)(cpu.IME ? 1 : 0));
}
if (!f_good)
{

View File

@@ -20,6 +20,7 @@
public byte IME { get; set; }
public byte IE { get; set; }
public byte? EI { get; set; }
public int[][]? RAM { get; set; }
}