mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
21 lines
No EOL
576 B
C#
21 lines
No EOL
576 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Indy.IL2CPU.IL.X86 {
|
|
[OpCode(OpCodeEnum.Stelem)]
|
|
public class Stelem: Op {
|
|
private int mElementSize;
|
|
public Stelem(ILReader aReader, MethodInformation aMethodInfo)
|
|
: base(aReader, aMethodInfo) {
|
|
Type xType = aReader.OperandValueType;
|
|
if (xType == null)
|
|
throw new Exception("Unable to determine Type!");
|
|
mElementSize = Engine.GetFieldStorageSize(xType);
|
|
}
|
|
|
|
public override void DoAssemble() {
|
|
Stelem_Ref.Assemble(Assembler, mElementSize);
|
|
}
|
|
}
|
|
} |