MCPcopy Create free account
hub / github.com/devosoft/avida / Inst_CollectCellData

Method Inst_CollectCellData

avida-core/source/cpu/cHardwareCPU.cc:9368–9377  ·  view source on GitHub ↗

! Collect this cell's data, and place it in ?BX?. Set the flag indicating that this organism has collected cell data to true, and set the last collected cell data as well. */

Source from the content-addressed store, hash-verified

9366 as well.
9367 */
9368bool cHardwareCPU::Inst_CollectCellData(cAvidaContext&)
9369{
9370 assert(m_organism != 0);
9371 const int out_reg = FindModifiedRegister(REG_BX);
9372 GetRegister(out_reg) = m_organism->GetCellData();
9373 // Update last collected cell data:
9374 m_last_cell_data = std::make_pair(true, GetRegister(out_reg));
9375
9376 return true;
9377}
9378
9379
9380/*! Detect if the cell data in which this organism lives has changed since the

Callers

nothing calls this directly

Calls 1

GetCellDataMethod · 0.45

Tested by

no test coverage detected