stop printing curent segment when it doesn't change. more info on assert
with emit_arm_code