mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
24 lines
No EOL
614 B
C#
24 lines
No EOL
614 B
C#
using System;
|
|
|
|
|
|
using CPU = Indy.IL2CPU.Assembler.X86;
|
|
using System.Reflection;
|
|
using Indy.IL2CPU.Assembler;
|
|
|
|
namespace Indy.IL2CPU.IL.X86 {
|
|
[OpCode(OpCodeEnum.Ldsflda)]
|
|
public class Ldsflda: Op {
|
|
private readonly string mDataName;
|
|
|
|
public Ldsflda(ILReader aReader, MethodInformation aMethodInfo)
|
|
: base(aReader, aMethodInfo) {
|
|
FieldInfo xField = aReader.OperandValueField;
|
|
Engine.QueueStaticField(xField, out mDataName);
|
|
}
|
|
|
|
public override void DoAssemble() {
|
|
new CPU.Pushd(mDataName);
|
|
Assembler.StackContents.Push(new StackContent(4, true, false, false));
|
|
}
|
|
}
|
|
} |