mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
23 lines
595 B
C#
23 lines
595 B
C#
using System;
|
|
|
|
using XSharp.Common;
|
|
using CPUx86 = Cosmos.Assembler.x86;
|
|
|
|
namespace Cosmos.IL2CPU.X86.IL
|
|
{
|
|
[Cosmos.IL2CPU.OpCode( ILOpCode.Code.Ldind_U4 )]
|
|
public class Ldind_U4 : ILOp
|
|
{
|
|
public Ldind_U4( Cosmos.Assembler.Assembler aAsmblr )
|
|
: base( aAsmblr )
|
|
{
|
|
}
|
|
|
|
public override void Execute(_MethodInfo aMethod, ILOpCode aOpCode )
|
|
{
|
|
DoNullReferenceCheck(Assembler, DebugEnabled, 0);
|
|
XS.Pop(XSRegisters.EAX);
|
|
XS.Push(XSRegisters.EAX, isIndirect: true);
|
|
}
|
|
}
|
|
}
|