| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PM0214 bảng dữ liệu(PDF) 65 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0214 bảng dữ liệu(HTML) 65 Page - STMicroelectronics |
|
65 / 245 page ![]() DocID022708 Rev 4 65/245 PM0214 The STM32 Cortex-M4 instruction set 244 Conditional execution is available by using conditional branches or by adding condition code suffixes to instructions. See Table 24: Condition code suffixes on page 66 for a list of the suffixes to add to instructions to make them conditional instructions. 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 Conditional instructions, except for conditional branches, must be inside an If-then instruction block. See IT on page 144 for more information and restrictions when using the IT instruction. Depending on the vendor, the assembler might automatically insert an IT instruction if you have conditional instructions outside the IT block. Use the CBZ and CBNZ instructions to compare the value of a register against zero and branch on the result. This section describes: • The condition flags • Condition code suffixes on page 66 The condition flags The APSR contains the following condition flags: • N: Set to 1 when the result of the operation is negative, otherwise cleared to 0 • Z: Set to 1 when the result of the operation is zero, otherwise cleared to 0 • C: Set to 1 when the operation results in a carry, otherwise cleared to 0. • V: Set to 1 when the operation causes an overflow, otherwise cleared to 0. For more information about the APSR see Program status register on page 18. A carry occurs: • If the result of an addition is greater than or equal to 232 • If the result of a subtraction is positive or zero • As the result of an inline barrel shifter operation in a move or logical instruction Overflow occurs if the sign of a result does not match the sign of the result had the operation been performed at infinite precision, for example: • if adding two negative values results in a positive value • if adding two positive values results in a negative value • if subtracting a positive value from a negative value generates a positive value • if subtracting a negative value from a positive value generates a negative value. The Compare operations are identical to subtracting, for CMP, or adding, for CMN, except that the result is discarded. See the instruction descriptions for more information. Most instructions update the status flags only if the S suffix is specified. See the instruction descriptions for more information. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |