/// <summary> /// Initializes a new instance of the class. /// </summary> /// <param name="opcode">The opcode bytes of the instruction that has been executed.</param> /// <param name="stopper">An instance of <see cref="IExecutionStopper"/> that can be used /// by the event listener to request stop of the execution loop.</param> /// <param name="localUserState">The state object from the matching <see cref="IZ80Processor.BeforeInstructionExecution"/> event.</param> /// <param name="tStates">Total count of T states used for the instruction execution, including extra wait states</param> public AfterInstructionExecutionEventArgs(byte[] opcode, IExecutionStopper stopper, object localUserState, int tStates) { this.Opcode = opcode; this.ExecutionStopper = stopper; this.LocalUserState = localUserState; this.TotalTStates = tStates; }
/// <summary> /// Initializes a new instance of the class. /// </summary> /// <param name="stopper">An instance of <see cref="IExecutionStopper"/> that can be used /// by the event listener to request stop of the execution loop.</param> public BeforeInstructionFetchEventArgs(IExecutionStopper stopper) { this.ExecutionStopper = stopper; }