Exemple #1
0
        public void COMF()
        {
            _ram.SetupGet(p => p[_file]).Returns(0x_13);

            ResultInfo op_result = _opService.COMF(_file, _d1);

            Assert.AreEqual(1, op_result.Cycles);
            Assert.AreEqual(1, op_result.PCIncrement);
            Assert.IsTrue(op_result.CheckZ);
            Assert.AreEqual(0x_EC, op_result.OperationResults[0].Value);
            Assert.AreEqual(_file, op_result.OperationResults[0].Address);

            _ram.Verify(p => p[_file]);
        }