コード例 #1
0
ファイル: Assembler.cs プロジェクト: lioncash/GekkoAssembler
 private IIRUnit ParseUnsigned8BitUnset(string[] tokens, ref int instructionPointer)
 {
     var value = (byte)ParseIntegerLiteral(tokens[1]);
     var result = new IRUnsigned8BitUnset(instructionPointer, value);
     ++instructionPointer;
     return result;
 }
コード例 #2
0
 public void Visit(IRUnsigned8BitUnset instruction)
 {
 }
コード例 #3
0
 private IIRUnit replaceUnsigned8BitUnset(IRUnsigned8BitUnset instruction)
 {
     builder.AddWarning("There is no way of unsetting individual bits, using \"Unsigned 8 Write\" instead.");
     return new CustomIRWriteData(instruction.Address, new byte[] { 0 });
 }