예제 #1
0
        public void alu_IMul8()
        {
            Assert.AreEqual(_alu.IMul8(Signed8(-2), Signed8(5)), Signed16(-10));
            Assert.IsFalse(_alu.FlagC);
            Assert.IsFalse(_alu.FlagO);

            Assert.AreEqual(_alu.IMul8(Signed8(-3), Signed8(50)), Signed16(-150));
            Assert.IsTrue(_alu.FlagC);
            Assert.IsTrue(_alu.FlagO);
        }