reimplementation of the RodRego register machine in Go