using System; using System.IO; using Mono.Cecil; using Mono.Cecil.Cil; using CPU = Indy.IL2CPU.Assembler.X86; namespace Indy.IL2CPU.IL.X86 { [OpCode(Code.Ldind_U1)] public class Ldind_U1: Op { public Ldind_U1(Mono.Cecil.Cil.Instruction aInstruction, MethodInformation aMethodInfo) : base(aInstruction, aMethodInfo) { } public override void DoAssemble() { Assembler.StackSizes.Pop(); new CPU.Pop("ecx"); new CPU.Move("eax", "0"); new CPU.Move("al", "[ecx]"); new CPU.Push("eax"); Assembler.StackSizes.Push(1); } } }