Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/IL/Ldc_I4.cs
kudzu_cp 1459fd78c3
2009-07-26 05:04:23 +00:00

18 lines
588 B
C#

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