Example #1
0
 private IIRUnit ParseUnsigned16BitSet(string[] tokens, ref int instructionPointer)
 {
     var value = (ushort)ParseIntegerLiteral(tokens[1]);
     var result = new IRUnsigned16BitSet(instructionPointer, value);
     instructionPointer += 2;
     return result;
 }
Example #2
0
 public void Visit(IRUnsigned16BitSet instruction)
 {
 }
 private IIRUnit replaceUnsigned16BitSet(IRUnsigned16BitSet instruction)
 {
     builder.AddWarning("There is no way of setting individual bits, using \"Unsigned 16 Write\" instead.");
     return new CustomIRWriteData(instruction.Address, BitConverter.GetBytes(instruction.Value).SwapEndian16());
 }