Ejemplo n.º 1
0
        public void OUTDTest()
        {
            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.OUTD();

            Assert.IsTrue(target.B == 0x0f && target.Get16BitRegisters(2) == 0x0fff, "Error: OUTD");
        }