Cosmos/source2/IL2CPU/Cosmos.IL2CPU/IL/Ldftn.cs
kudzu_cp 2249797e61
2012-08-13 00:39:42 +00:00

23 lines
No EOL
691 B
C#

using System;
using Cosmos.IL2CPU.ILOpCodes;
using CPUx86 = Cosmos.Assembler.x86;
using CPU = Cosmos.Assembler;
using Cosmos.Assembler;
namespace Cosmos.IL2CPU.X86.IL
{
[Cosmos.IL2CPU.OpCode( ILOpCode.Code.Ldftn )]
public class Ldftn : ILOp
{
public Ldftn( Cosmos.Assembler.Assembler aAsmblr )
: base( aAsmblr )
{
}
public override void Execute( MethodInfo aMethod, ILOpCode aOpCode )
{
new CPUx86.Push { DestinationRef = Cosmos.Assembler.ElementReference.New( LabelName.Get(((OpMethod)aOpCode).Value ) ) };
Assembler.Stack.Push(new StackContents.Item(4, typeof(uint)));
}
}
}