поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PM0056 датащи(PDF) 57 Page - STMicroelectronics

номер детали PM0056
подробное описание детали  This programming manual provides information
PDF  156 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0056 датащи(HTML) 57 Page - STMicroelectronics

Back Button PM0056 Datasheet HTML 53Page - STMicroelectronics PM0056 Datasheet HTML 54Page - STMicroelectronics PM0056 Datasheet HTML 55Page - STMicroelectronics PM0056 Datasheet HTML 56Page - STMicroelectronics PM0056 Datasheet HTML 57Page - STMicroelectronics PM0056 Datasheet HTML 58Page - STMicroelectronics PM0056 Datasheet HTML 59Page - STMicroelectronics PM0056 Datasheet HTML 60Page - STMicroelectronics PM0056 Datasheet HTML 61Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 57 / 156 page
background image
DocID15491 Rev 5
57/156
PM0056
The Cortex-M3 instruction set
3.3.7
Conditional execution
Most data processing instructions can optionally update the condition flags in the application
program status register (APSR) according to the result of the operation (see Application
program status register on page 17). Some instructions update all flags, and some only
update a subset. If a flag is not updated, the original value is preserved. See the instruction
descriptions for the flags they affect.
You can execute an instruction conditionally, based on the condition flags set in another
instruction:
Immediately after the instruction that updated the flags
After any number of intervening instructions that have not updated the flags
Conditional execution is available by using conditional branches or by adding condition code
suffixes to instructions. See Table 23: Condition code suffixes on page 58 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 94 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 58
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 16.
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 result of an add, subtract, or compare is greater than or equal to 231,
or less than -231.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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