src/cpu/cpu.cc
/*
 * Loads the reset vector from memory and then adds a cycle to the state
 * queue. This function must be called before RunCycle() can be used.
 *
 * Assumes that the CPU has been connected to a valid Memory object.
 */
Loads the reset vector from memory and then adds a cycle to the state
queue. This function must be called before RunCycle() can be used.

Assumes that the CPU has been connected to a valid Memory object.
Loads the reset vector from memory and then adds a cycle to the state queue . This function must be called before RunCycle () can be used . Assumes that the CPU has been connected to a valid Memory object .
void Cpu::Power(void) {
  regs_->pc_lo = memory_->Read(MEMORY_RESET_ADDR);
  regs_->pc_hi = memory_->Read(MEMORY_RESET_ADDR + 1U);
  inst_buffer_[0] = MEM_FETCH | PC_INC;
  current_sequence_ = inst_buffer_;
  return;
}
void Cpu :: Power ( void ) { regs_ -> pc_lo = memory_ -> Read ( MEMORY_RESET_ADDR ) ; regs_ -> pc_hi = memory_ -> Read ( MEMORY_RESET_ADDR + 1U ) ; inst_buffer_ [ 0 ] = MEM_FETCH | PC_INC ; current_sequence_ = inst_buffer_ ; return ; }
Loads the reset vector from memory and then adds a cycle to the state
 queue.
Loads the reset vector from memory and then adds a cycle to the state queue .
// Loads the reset location into the program counter. // Queues the first cycle to be emulated.