Exemple #1
0
        public void alu_Neg8()
        {
            Assert.AreEqual(_alu.Neg8(Signed8(-10)), Signed8(10));
            Assert.IsTrue(_alu.FlagC);
            Assert.IsFalse(_alu.FlagZ);

            Assert.AreEqual(_alu.Neg8(Signed8(10)), Signed8(-10));
            Assert.IsTrue(_alu.FlagC);
            Assert.IsFalse(_alu.FlagZ);

            Assert.AreEqual(_alu.Neg8(Signed8(0)), Signed8(0));
            Assert.IsFalse(_alu.FlagC);
            Assert.IsTrue(_alu.FlagZ);
        }