ARM (Advanced RISC ) Machine
Instruction Set
• Definition
• Instructions are commands that tell the
microcontroller what operations to perform.
• These instructions are part of a microcontroller's
instruction set
Instructions set
• Data processing
• Arithmetic
• Logical
• Comparison
• Load and store instruction
• Stack instructions
• Branch instruction
Instruction
• Each instruction set has the following format:
• In the pre- and post-conditions, memory is
denoted as
– mem<data_size>[address]
• ARM instructions process data held in
registers and only access memory with load
and store instructions.
Instruction sets
Move Instructions
Load-Store Instructions
• LDR
• STR
Word 32 bit
• LDRB
• STRB
• Byte
• LDRH
• STRH
• Halfword
• LDRSB
• Signed byte load
• LDRSH
• Signed halfword load
Registers
•Orthogonal
Registers
– We say R0~R13 are
orthogonal, for given
instruction, if it can use R0,
then others can also be
used.
• SPRs
– R13(stack pointer), R14(link
register), R15(program
counter)
Current Program Status Register
Out come of the Topic
• For quick remember
• Poster presentation activity
• Students skill or ability- Communication
• Attribute –PO10
• Laboratory based method
• Keil compiler
• Attribute –PO5