sim: register initialization and change halt condition