Cosmos/source2/IL2PCU/Cosmos.IL2CPU.Profiler/IL/Nop.cs
kudzu_cp 4bb7fe0aeb
2009-07-23 00:37:07 +00:00

38 lines
1.1 KiB
C#

using System;
namespace Cosmos.IL2CPU.Profiler.IL
{
[Cosmos.IL2CPU.OpCode(ILOp.Code.Nop)]
public class Nop: ILOpProfiler
{
#region Old code
// using System;
// using System.IO;
// using Indy.IL2CPU.IL;
// using CPU = Indy.IL2CPU.Assembler.X86;
//
// namespace Indy.IL2CPU.IL.X86 {
// [Cosmos.IL2CPU.OpCode(ILOp.Code.Nop)]
// public class Nop : ILOpProfiler {
// public Nop(ILReader aReader, MethodInformation aMethodInfo) : base(aReader, aMethodInfo) {
// }
// 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();
//
// // For now we dont transalte NOOP's at all. Outputting them gives us nothing when coming from
// // IL.
// new CPU.Noop();
// }
// }
// }
#endregion
}
}