Keil Logo

Conditional instructions

5.1 Conditional instructions

Thumb instructions can execute conditionally on the condition flags set by a previous instruction.

The conditional instruction can occur either:
  • Immediately after the instruction that updated the flags.
  • After any number of intervening instructions that have not updated the flags.
To make an instruction conditional, you must add a condition code suffix to the instruction mnemonic. The condition code suffix enables the processor to test a condition based on the flags. If the condition test of a conditional instruction fails, the instruction:
  • Does not execute.
  • Does not write any value to its destination register.
  • Does not affect any of the flags.
  • Does not generate any exception.
Non-ConfidentialPDF file icon PDF versionARM DUI0379H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.