mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-29 20:30:44 +00:00
24 lines
No EOL
597 B
C#
24 lines
No EOL
597 B
C#
using System;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using Mono.Cecil;
|
|
using Mono.Cecil.Cil;
|
|
using Asm = Indy.IL2CPU.Assembler;
|
|
|
|
namespace Indy.IL2CPU.IL.X86 {
|
|
[OpCode(Code.Call)]
|
|
public class Call: Op {
|
|
public readonly string LabelName;
|
|
public Call(Mono.Cecil.Cil.Instruction aInstruction, MethodInformation aMethodInfo)
|
|
: base(aInstruction, aMethodInfo) {
|
|
LabelName = new Asm.Label((MethodReference)aInstruction.Operand).Name;
|
|
}
|
|
public void Assemble(string aMethod) {
|
|
Call(aMethod);
|
|
}
|
|
|
|
public override void Assemble() {
|
|
Assemble(LabelName);
|
|
}
|
|
}
|
|
} |