test_cpu_state - Add test for SI

This commit is contained in:
madmaurice 2023-08-30 22:46:06 +02:00
parent 9c07356ead
commit ed202b107e

View file

@ -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);
}