register machine simulator