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

Method Inst_Move

avida-core/source/cpu/cHardwareGP8.cc:2233–2245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2231}
2232
2233bool cHardwareGP8::Inst_Move(cAvidaContext& ctx)
2234{
2235 // In TestCPU, movement fails...
2236 if (m_organism->GetOrgInterface().GetCellID() == -1) return false;
2237
2238 if (m_juv_enabled && m_organism->GetPhenotype().GetTimeUsed() < m_world->GetConfig().JUV_PERIOD.Get()) return false;
2239
2240 if (!m_hw_queue_move) {
2241 m_hw_queue[m_hw_queued++] = aMOVE;
2242 m_hw_queue_move = true;
2243 }
2244 return true;
2245}
2246
2247bool cHardwareGP8::Inst_GetNorthOffset(cAvidaContext& ctx) {
2248 const int out_reg = FindModifiedRegister(rBX);

Callers

nothing calls this directly

Calls 4

GetConfigMethod · 0.80
GetCellIDMethod · 0.45
GetTimeUsedMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected