Instruction(ILReader reader, OpCode op, Operand arg, ushort label) { this.reader = reader; this.OpCode = op; this.Operand = arg; this.label = (ushort)label; }
/// <summary> /// Construct an instruction. /// </summary> /// <param name="reader">The reader that created this instruction.</param> /// <param name="op">The instruction opcode.</param> /// <param name="arg">The instruction operand.</param> /// <param name="label">The instruction's address in the bytecode.</param> public Instruction(ILReader reader, OpCode op, Operand arg, IL.Label label) : this(reader, op, arg, (ushort)label.pos) { }