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); }
public void ToString_Formatted() { target = new SwInstruction(8, 9, 0x0004); Assert.AreEqual("SW $t0, 0x0004($t1)", target.ToString()); }