! A generic broadcast method, to simplify the development of different range broadcasts. */
| 9836 | broadcasts. |
| 9837 | */ |
| 9838 | bool cHardwareCPU::BroadcastX(cAvidaContext& ctx, int depth) |
| 9839 | { |
| 9840 | const int label_reg = FindModifiedRegister(REG_BX); |
| 9841 | const int data_reg = FindNextRegister(label_reg); |
| 9842 | |
| 9843 | cOrgMessage msg = cOrgMessage(m_organism); |
| 9844 | msg.SetLabel(GetRegister(label_reg)); |
| 9845 | msg.SetData(GetRegister(data_reg)); |
| 9846 | return m_organism->BroadcastMessage(ctx, msg, depth); |
| 9847 | } |
| 9848 | |
| 9849 | |
| 9850 | /*! A single-hop broadcast instruction - send a message to all 1-hop neighbors |
nothing calls this directly
no test coverage detected