I guess you could have a cap on bp execution per cycle, just stop at 32000.
Would just make the sim realy slow...
But if you want loops to work well I'd say there should be a fixed amount of bp executed per cycle and then you wouldn't have to worry about infinite loops. It probably wouldn't be much of a problem for evo bots, but it would make handcrafted bots harder to build (Unless you execute one bp per cycle, but then things would evolve rather slowly).
One thought occured to me, it might be possible to just execute one gene per cycle (Up to a cap of bp executed), this would make it possible to use infinite loops that jump back and forth, hit the cap, and keep going the next cycle, but also single genes who stop and wait for the cycle to finish.
Personaly I like the 1 pb per cycle idea, although you have to update a lot of heavy stuff every cycle without having done much code execution...