sim: add halt condition (self jump)