DaveSpace
Home
RISC OS
ARM
Python
Contents
Rationale
Why Learn Assembly?
Not A Trivial Mapping
ARM Assembly Language
Instruction Sets
Registers
Program Counter
Instruction Syntax
Organisation
Movement
Arithmetic
Logical
Compare
Barrel Shifter
Operand2
Immediate Values
Branch
Conditional Execution
Multiply
Data Transfer
Addressing Modes
Multiple Register Data Transfer
The Stack
A Call Chain
Worked Examples
Task One
Task Two
Thumb
Thumb
Interworking
Thumb Example
Thumb-2
ARM & Its Architectures
ARM Ltd.
Tools
Applications
ARM Architecture
Early Architectures
Architecture 4
Architecture 5
Architecture 6
Architecture 7
Summary of current ARM cores
What’s Inside Various Devices?
Test
References
Books
Introduction to ARM
Movement Instructions
<operation>{cond}{S} Rd,<Operand2>
<operation>
MOV
–
move
Rd := Operand2
MVN
–
move negated
Rd := 0xFFFFFFFF EOR Operand2
Examples
MOV r0, #42
Move the constant 42 into register R0.
MOV r2, r3
Move the contents of register R3 into register R2.
MVN r1, r0
R1 = NOT(R0) = -43
MOV r0, r0
A
NOP
(no operation) instruction.
Navigate
Previous
Next