! 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. */
| 9366 | as well. |
| 9367 | */ |
| 9368 | bool 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 |
nothing calls this directly
no test coverage detected