Esempio n. 1
0
 private IIRUnit ParseUnsigned32BitSet(string[] tokens, ref int instructionPointer)
 {
     var value = (uint)ParseIntegerLiteral(tokens[1]);
     var result = new IRUnsigned32BitSet(instructionPointer, value);
     instructionPointer += 4;
     return result;
 }
Esempio n. 2
0
 public void Visit(IRUnsigned32BitSet instruction)
 {
 }
 private IIRUnit replaceUnsigned32BitSet(IRUnsigned32BitSet instruction)
 {
     builder.AddWarning("There is no way of setting individual bits, using \"Unsigned 32 Write\" instead.");
     return new CustomIRWriteData(instruction.Address, BitConverter.GetBytes(instruction.Value).SwapEndian32());
 }