Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/IL/Ldc_I4.cs
2009-07-29 05:48:10 +00:00

20 lines
611 B
C#

using System;
using Cosmos.IL2CPU;
using Cosmos.IL2CPU.ILOpCodes;
using CPU = Indy.IL2CPU.Assembler.X86;
using System.Collections.Generic;
using StackContent = Indy.IL2CPU.Assembler.StackContent;
namespace Cosmos.IL2CPU.X86.IL {
[Cosmos.IL2CPU.OpCode(ILOpCode.Code.Ldc_I4)]
public class Ldc_I4: ILOp {
public Ldc_I4(Cosmos.IL2CPU.Assembler aAsmblr):base(aAsmblr) {}
public override void Execute(MethodInfo aMethod, ILOpCode aOpCode) {
new CPU.Push { DestinationValue = ((OpInt)aOpCode).Value };
OldAsmblr.StackContents.Push(new StackContent(4, typeof(int)));
}
}
}