The followings are ARM assembly.
2: cmp $r0, 5 ;r0 – 5, save result to status reg.
3: addgt $r1, $r0, 4096 ;if (r0>5) then r1=r0+4096.
(2) The addgt instruction (line3) is executed based on condition flags, and adds 4096 to register $r0. Represent 4096 (10000000000002) in the 12bit ARM immediate field.