sim: added branchreg and stackop