Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/IL/Ldc_I4.cs
kudzu_cp 81978c6235
2009-07-26 04:57:55 +00:00

18 lines
569 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: ILOpX86 {
public Ldc_I4(ILOpCode aOpCode):base(aOpCode) { }
public override void Execute(uint aMethodUID) {
new CPU.Push { DestinationValue = ((OpInt)OpCode).Value };
((CPU.Assembler)Assembler.CurrentInstance.Peek()).StackContents.Push(new StackContent(4, typeof(int)));
}
}
}