public void Execute() { reg[8] = 0x00FFFF00; target = new AndiInstruction(9, 8, 0xFFFF); target.Execute(ref pc, mem, reg); Assert.AreEqual(0x0000FF00, reg[9]); Assert.AreEqual(0x00000004, pc); }
public void ToString_Formatted() { target = new AndiInstruction(9, 8, 0xFFFF); Assert.AreEqual("ANDI $t1, $t0, 0xFFFF", target.ToString()); }