Beispiel #1
0
        public void alu_Neg16()
        {
            Assert.AreEqual(_alu.Neg16(Signed16(-10)), Signed16(10));
            Assert.IsTrue(_alu.FlagC);
            Assert.IsFalse(_alu.FlagZ);

            Assert.AreEqual(_alu.Neg16(Signed16(10)), Signed16(-10));
            Assert.IsTrue(_alu.FlagC);
            Assert.IsFalse(_alu.FlagZ);

            Assert.AreEqual(_alu.Neg16(Signed16(0)), Signed16(0));
            Assert.IsFalse(_alu.FlagC);
            Assert.IsTrue(_alu.FlagZ);
        }