6 ms·
For ARM thumb2 style you need a third instruction between the two: IT EQ The 'IT' is for 'if then'. There could also be more 'then's and 'else's for the con
by leicmi 11y ago
For ARM thumb2 style you need a third instruction between the two:
IT EQ
The 'IT' is for 'if then'.
There could also be more 'then's and 'else's for the conditional execution of muliple instructions:
ITTE LT
(If then then else)
The following instructions could for example be:
ADDEQ ...
STREQ ...
BNE ... (Branch - not equal because of the else)
Source:
http://community.arm.com/groups/processors/blog/2010/09/30/condition-codes-3-conditional-execution-in-thumb-2 http://community.arm.com/groups/processors/blog/2010/09/30/c...