Ejemplo n.º 1
0
 void TestInstructionFParse(Byte subCode, ParsedInstructionCode exepected)
 {
     Byte[][] data = new Byte[][]
     {
         new Byte[] { 0xF0, subCode },
         new Byte[] { 0xF1, subCode },
         new Byte[] { 0xFF, subCode }
     };
     Byte[] expectedReg = new Byte[]
     {
         0x00, 0x01, 0x0F
     };
     for (int i = 0; i < data.Length; i++)
     {
         TestParseInstruction(data[i], new BinaryRegisterOperationStub(exepected, expectedReg[i]));
     }
 }
Ejemplo n.º 2
0
 public InstructionStub(ParsedInstructionCode code) => Code = code;