You have a * in front of your .mkvirus address.
cond
*.vtimer 0 =
start
*6 .mkvirus store
stop
This is loading the current value of memory location 6 (aimsx) into .mkvirus.
Given the rest of your DNA code, this number could be anything from 0 to 1860 depending on earlier genes.
Drop the * and it works fine.
cond
*.vtimer 0 =
start
6 .mkvirus store
stop
Your main problem is that your robot has no defence against his own virus. The sim ends up in a right old mess of your robots violently reproducing and dying. Most of them have upward of 20 genes after a couple thousand cycles.
Adding genes to the genome (via viruses) tends to make your desired virus gene move to some position other than 6 so the viruses are all different. :blink:
Not a bad little robot actually. Without the virus he would do reasonably well in the lower part of the F2 league