public void SBC_A_rTest() { PrivateObject z = new PrivateObject(new Z80(new Memory48K())); Z80_Accessor target = new Z80_Accessor(z); target.A = 0x16; target.Set(Flag.Carry); target.Set16BitRegisters(2, 0x5433); target.Memory[0x5433] = 0x05; target.SBC_A_r(6); Assert.IsTrue(target.A == 0x10, "Error: SBC A r"); }