mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
22 lines
550 B
C#
22 lines
550 B
C#
using XSharp.Common;
|
|
using static XSharp.Common.XSRegisters;
|
|
|
|
namespace Cosmos.IL2CPU.X86.IL
|
|
{
|
|
[OpCode(ILOpCode.Code.Ldind_I1)]
|
|
public class Ldind_I1 : ILOp
|
|
{
|
|
public Ldind_I1(Cosmos.Assembler.Assembler aAsmblr)
|
|
: base(aAsmblr)
|
|
{
|
|
}
|
|
|
|
public override void Execute(_MethodInfo aMethod, ILOpCode aOpCode)
|
|
{
|
|
DoNullReferenceCheck(Assembler, DebugEnabled, 0);
|
|
XS.Pop(ECX);
|
|
XS.MoveSignExtend(EAX, ECX, sourceIsIndirect: true, size: RegisterSize.Byte8);
|
|
XS.Push(EAX);
|
|
}
|
|
}
|
|
}
|