Cosmos/source/Indy.IL2CPU.IL.X86/Br_S.cs
mterwoord_cp 71ecc7cdf5
2007-09-05 13:51:29 +00:00

22 lines
No EOL
698 B
C#

using System;
using System.IO;
using Mono.Cecil;
using Mono.Cecil.Cil;
using CPU = Indy.IL2CPU.Assembler.X86;
namespace Indy.IL2CPU.IL.X86 {
[OpCode(Code.Br_S)]
public class Br_S: Op {
private bool mIsFake;
public Br_S(Mono.Cecil.Cil.Instruction aInstruction, MethodInformation aMethodInfo)
: base(aInstruction, aMethodInfo) {
// next physical opcode is +2, because the opcode is singlebyte, and has a byte as param
mIsFake = aInstruction.Next.Offset == (aInstruction.Offset + 2);
}
public override void Assemble() {
if (!mIsFake) {
throw new NotImplementedException("This file has been autogenerated and not been changed afterwards!");
}
}
}
}