Esempio n. 1
0
        public void Execute()
        {
            reg[17] = 0x00FFFF00;
            reg[18] = 0x0000FFFF;
            target  = new NorInstruction(16, 17, 18);

            target.Execute(ref pc, mem, reg);

            Assert.AreEqual(0xFF000000, reg[16]);
            Assert.AreEqual(0x4, pc);
        }
Esempio n. 2
0
        public void ToString_Formatted()
        {
            target = new NorInstruction(16, 17, 18);

            Assert.AreEqual("NOR $s0, $s1, $s2", target.ToString());
        }