Ejemplo n.º 1
0
        public void Execute_DataStoredInMem()
        {
            reg[8] = 0x11037;
            target = new SwInstruction(8, 9, 0x0004);

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

            Assert.AreEqual(0x11037, mem[4]);
            Assert.AreEqual(0x00000004, pc);
        }
Ejemplo n.º 2
0
        public void ToString_Formatted()
        {
            target = new SwInstruction(8, 9, 0x0004);

            Assert.AreEqual("SW $t0, 0x0004($t1)", target.ToString());
        }