Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }