Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/IL/Ldc_I4.cs
kudzu_cp 5ab61e0eed
2009-07-23 15:41:15 +00:00

49 lines
1.2 KiB
C#

using System;
namespace Cosmos.IL2CPU.X86.IL
{
[Cosmos.IL2CPU.OpCode(ILOp.Code.Ldc_I4)]
public class Ldc_I4: ILOpX86
{
#region Old code
// using System;
// using System.Linq;
// using Indy.IL2CPU.Assembler;
// using CPU = Indy.IL2CPU.Assembler.X86;
// using System.Collections.Generic;
//
// namespace Indy.IL2CPU.IL.X86 {
// [Cosmos.IL2CPU.OpCode(ILOp.Code.Ldc_I4)]
// public class Ldc_I4: ILOpX86 {
// private int mValue;
// protected void SetValue(int aValue) {
// mValue = aValue;
// }
//
// protected void SetValue(string aValue) {
// SetValue((Int32)UInt32.Parse(aValue));
// }
//
// public Ldc_I4(ILReader aReader, MethodInformation aMethodInfo)
// : base(aReader, aMethodInfo) {
// if (aReader != null) {
// SetValue(aReader.OperandValueInt32);
// }
// }
//
// public int Value {
// get {
// return mValue;
// }
// }
// public override sealed void DoAssemble() {
// new CPU.Push { DestinationValue = (uint)mValue };
// Assembler.StackContents.Push(new StackContent(4, typeof(int)));
// }
// }
// }
#endregion
}
}