コード例 #1
0
ファイル: Assembler.cs プロジェクト: lioncash/GekkoAssembler
 private IIRUnit ParseUnsigned16BitSet(string[] tokens, ref int instructionPointer)
 {
     var value = (ushort)ParseIntegerLiteral(tokens[1]);
     var result = new IRUnsigned16BitSet(instructionPointer, value);
     instructionPointer += 2;
     return result;
 }
コード例 #2
0
 public void Visit(IRUnsigned16BitSet instruction)
 {
 }
コード例 #3
0
 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());
 }