Cosmos/source/Indy.IL2CPU.IL.X86/Nop.cs

25 lines
No EOL
747 B
C#

using System;
using System.IO;
using Indy.IL2CPU.IL;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Cil = Mono.Cecil.Cil;
using CPU = Indy.IL2CPU.Assembler.X86;
namespace Indy.IL2CPU.IL.X86 {
[OpCode(Cil.Code.Nop)]
public class Nop : Op {
public Nop(Mono.Cecil.Cil.Instruction aInstruction, MethodInformation aMethodInfo)
: base(aInstruction, aMethodInfo, null) {
}
public override void DoAssemble() {
// Assembler would be base type in IL
// Cast to ours
// var x = (X86.Assembler)Assembler
// This would solve the threading issue
// and later allow for operator overloads etc.
// x.Noop();
Assembler.Add(new CPU.Noop());
}
}
}