Many operations allow an optional S to be added to the opcode. This will force a flag update (the flags which are updated depend on the instruction in question). Note that the S flag is implicit in CMP, CMN, TEQ and TST
SUBS R1,R1,R2 ; set flags based on R1-R2
ADD R1,R1,R3
BEQ xxx ; jump if R1-R2 = 0
|
|
|