Cosmos/source/Indy.IL2CPU/IL/x86/Br.cs
mterwoord_cp 824acc19fc
2008-11-07 18:39:24 +00:00

19 lines
No EOL
522 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.Jump { DestinationLabel = mTargetInstructionName };
}
}
}