src/cpu/cpu.cc
/*
 * Checks if the global nmi line has signaled for an interrupt using an
 * edge detector.
 *
 * When an nmi is detected, the edge signal stays high until it is handled.
 */
Checks if the global nmi line has signaled for an interrupt using an
edge detector.

When an nmi is detected, the edge signal stays high until it is handled.
Checks if the global nmi line has signaled for an interrupt using an edge detector . When an nmi is detected the edge signal stays high until it is handled .
void Cpu::PollNmiLine(void) {
  if (nmi_line_ && !nmi_prev_) { nmi_edge_ = true; }
  nmi_prev_ = nmi_line_;
  return;
}
void Cpu :: PollNmiLine ( void ) { if ( nmi_line_ && ! nmi_prev_ ) { nmi_edge_ = true ; } nmi_prev_ = nmi_line_ ; return ; }
Checks if the global nmi line has signaled for an interrupt using an
 edge detector.
Checks if the global nmi line has signaled for an interrupt using an edge detector .
// The internal nmi signal is rising edge sensitive, so we should only set it // when the previous value was false and the current value is true.