mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
19 lines
No EOL
497 B
C#
19 lines
No EOL
497 B
C#
using System;
|
|
using System.IO;
|
|
|
|
|
|
using CPU = Indy.IL2CPU.Assembler.X86;
|
|
|
|
namespace Indy.IL2CPU.IL.X86 {
|
|
[OpCode(OpCodeEnum.Br)]
|
|
public class Br: Op {
|
|
private readonly string mTargetInstructionName;
|
|
public Br(ILReader aReader, MethodInformation aMethodInfo)
|
|
: base(aReader, aMethodInfo) {
|
|
mTargetInstructionName = GetInstructionLabel(aReader.OperandValueBranchPosition);
|
|
}
|
|
public override void DoAssemble() {
|
|
new CPU.JumpAlways(mTargetInstructionName);
|
|
}
|
|
}
|
|
} |