コード例 #1
0
ファイル: AluTest.cs プロジェクト: tt195361/Casl2Simulator
        private void CheckCompareLogical(
            UInt16 ui16Val1, UInt16 ui16Val2, Boolean expectedSign, Boolean expectedZero, String message)
        {
            Word    word1 = new Word(ui16Val1);
            Word    word2 = new Word(ui16Val2);
            Boolean actualSign;
            Boolean actualZero;

            Alu.CompareLogical(word1, word2, out actualSign, out actualZero);

            Assert.AreEqual(expectedSign, actualSign, "Sign: " + message);
            Assert.AreEqual(expectedZero, actualZero, "Zero: " + message);
        }