public void SBC_A_nTest() { PrivateObject z = new PrivateObject(new Z80(new Memory48K())); Z80_Accessor target = new Z80_Accessor(z); target.Memory[0x5000] = 0x05; target.A = 0x16; target.PC = 0x5000; target.Set(Flag.Carry); target.SBC_A_n(); Assert.IsTrue(target.A == 0x10, "Error: SBC A n"); }