Moving code blocks around
Tricks with reg.

When compiling new image, reg must point to the new structure.
This can collide with old register needs, thus oreg.