test_cpu_state - Add test for SI
This commit is contained in:
parent
9c07356ead
commit
ed202b107e
1 changed files with 11 additions and 0 deletions
|
@ -18,3 +18,14 @@ TEST_CASE("16-bit registers map to two 8-bit registers")
|
||||||
CHECK(c.H == 0x33);
|
CHECK(c.H == 0x33);
|
||||||
CHECK(c.L == 0x44);
|
CHECK(c.L == 0x44);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("SI works correctly")
|
||||||
|
{
|
||||||
|
Cpu_state c;
|
||||||
|
|
||||||
|
|
||||||
|
c.IE = 0b10000111;
|
||||||
|
c.IF = 0b10011100;
|
||||||
|
|
||||||
|
CHECK(c.SI() == 0b00000100);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue