mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-30 12:50:19 +00:00
25 lines
No EOL
601 B
C#
25 lines
No EOL
601 B
C#
using System;
|
|
using System.IO;
|
|
using Mono.Cecil;
|
|
using Mono.Cecil.Cil;
|
|
using CPU = Indy.IL2CPU.Assembler.X86;
|
|
using Asm = Indy.IL2CPU.Assembler;
|
|
|
|
namespace Indy.IL2CPU.IL.X86 {
|
|
[OpCode(Code.Newobj, false)]
|
|
public class Newobj: Op {
|
|
public string CtorName;
|
|
public Newobj()
|
|
: base(null, null) {
|
|
}
|
|
|
|
public Newobj(Mono.Cecil.Cil.Instruction aInstruction, MethodInformation aMethodInfo)
|
|
: base(aInstruction, aMethodInfo) {
|
|
CtorName = new Asm.Label((MethodReference)aInstruction.Operand).Name;
|
|
}
|
|
|
|
public override void DoAssemble() {
|
|
Call(CtorName);
|
|
}
|
|
}
|
|
} |