Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PM0215 Datenblatt(PDF) 54 Page - STMicroelectronics

Teilenummer PM0215
Bauteilbeschribung  STM32F0xxx Cortex-M0 programming manual
PDF  91 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0215 Datenblatt(HTML) 54 Page - STMicroelectronics

Back Button PM0215 Datasheet HTML 50Page - STMicroelectronics PM0215 Datasheet HTML 51Page - STMicroelectronics PM0215 Datasheet HTML 52Page - STMicroelectronics PM0215 Datasheet HTML 53Page - STMicroelectronics PM0215 Datasheet HTML 54Page - STMicroelectronics PM0215 Datasheet HTML 55Page - STMicroelectronics PM0215 Datasheet HTML 56Page - STMicroelectronics PM0215 Datasheet HTML 57Page - STMicroelectronics PM0215 Datasheet HTML 58Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 54 / 91 page
background image
The STM32 Cortex-M0 instruction set
PM0215
54/91
Doc ID 022979 Rev 1
3.5.5
MOV, MOVS and MVNS
Move and move NOT.
Syntax
MOV{S} Rd, Rm
MOVS Rd, #imm
MVNS Rd, Rm
where:
‘S’ is an optional suffix. If S is specified, the condition code flags are updated on the
result of the operation (see Conditional execution on page 39).
‘Rd’ is the destination register
‘Rm’ is a register
‘imm’ is any value in the range 0-255
Operation
The MOV instruction copies the value of Rm into Rd.
The MOVS instruction performs the same operation as the MOV instruction, but also
updates the N and Z flags.
The MVNS instruction takes the value of Rm, performs a bitwise logical NOT operation on the
value, and places the result into Rd.
Restrictions
In these instructions, Rd, and Rm must only specify R0-R7.
When Rd is the PC in a MOV instruction:
bit[0] of the result is ignored
A branch occurs to the address created by forcing bit[0] of that value to 0. The T-bit
remains unmodified.
Note:
Though it is possible to use MOV as a branch instruction, ARM strongly recommends the use
of a BX or BLX instruction to branch for software portability to the ARM instruction set.
Condition flags
If S is specified, these instructions:
Update the N and Z flags according to the result
Do not affect the C or V flag
Example
MOVS
R0, #0x000B
; Write value of 0x000B to R0, flags get updated
MOVS
R1, #0x0
; Write value of zero to R1, flags are updated
MOV
R10, R12
; Write value in R12 to R10, flags are not updated
MOVS
R3, #23
; Write value of 23 to R3
MOV
R8, SP
; Write value of stack pointer to R8
MVNS
R2, R0
; Write inverse of R0 to the R2 and update flags



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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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