public void OUTITest() { PrivateObject z = new PrivateObject(new Z80(new Memory48K())); Z80_Accessor target = new Z80_Accessor(z); target.C = 0x07; target.B = 0x10; target.Set16BitRegisters(2, 0x1000); target.Memory[0x1000] = 0x59; target.OUTI(); Assert.IsTrue(target.B == 0x0f && target.Get16BitRegisters(2) == 0x1001, "Error: OUTI"); }