public InvalidInstructionEncodingEventArgs(Instruction instruction) { if (instruction == null) throw new ArgumentNullException("instruction"); Instruction = instruction; }
protected void Emit(Instruction instruction) { if (instruction == null) throw new ArgumentNullException("instruction"); instruction.Encode(); if (instruction.Is16Bit) _writer.Write((ushort)instruction.Value); else _writer.Write(instruction.Value); }