Exemplo n.º 1
0
 public void DecodeTestAddMin4095()
 {
     ADD target = new ADD();
     target.Parse("ADD -4095");
     Instruction expected = new Instruction(16383);
     Instruction actual = target.Decode();
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 2
0
 public void DecodeTestAdd35()
 {
     ADD target= new ADD();
     target.Parse("ADD 35");
     Instruction expected = new Instruction(8262);
     Instruction actual;
     actual = target.Decode();
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 3
0
 public void DecodeTestAddR1()
 {
     ADD target = new ADD();
     target.Parse("ADD R1");
     Instruction expected = new Instruction(3840);
     Instruction actual = target.Decode();
     Assert.AreEqual(expected, actual);
 }