public InvalidInstructionEncodingEventArgs(Instruction instruction)
        {
            if (instruction == null)
                throw new ArgumentNullException("instruction");

            Instruction = instruction;
        }
Ejemplo n.º 2
0
        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);
        }