public void Execute_NegativeNumber()
        {
            reg[9]  = 0x3;
            reg[10] = 0xFFFFFFFF;
            target  = new AdduInstruction(8, 9, 10);

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

            Assert.AreEqual(0x2, reg[8]);
            Assert.AreEqual(0x4, pc);
        }
        public void Execute_Overflow()
        {
            reg[9]  = 0xFFFFFFFF;
            reg[10] = 0x1;
            target  = new AdduInstruction(8, 9, 10);

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

            Assert.AreEqual(0x0, reg[8]);
            Assert.AreEqual(0x4, pc);
        }
        public void Execute_PositiveNumbers()
        {
            reg[9]  = 0x1;
            reg[10] = 0x3;
            target  = new AdduInstruction(8, 9, 10);

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

            Assert.AreEqual(0x4, reg[8]);
            Assert.AreEqual(0x4, pc);
        }
        public void ToString_Formatted()
        {
            target = new AdduInstruction(8, 9, 10);

            Assert.AreEqual("ADDU $t0, $t1, $t2", target.ToString());
        }