ARM Cortex-M Assembly Analysis and Branching

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts related to ARM Cortex-M assembly language instructions, particularly focusing on branching operations and status register flags.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

MOV

An assembly instruction that copies a value into a register.

2
New cards

CMP

An assembly instruction that compares two registers and sets the status flags based on the result.

3
New cards

BLT (Branch if Less Than)

A conditional branch instruction that transfers control if the result of the previous comparison indicates that the first operand is less than the second operand.

4
New cards

BGT (Branch if Greater Than)

A conditional branch instruction that transfers control if the result of the previous comparison indicates that the first operand is greater than the second operand.

5
New cards

Status Register (SR) Flags

Flags in the processor that indicate the result of the last arithmetic operation, including Zero (Z), Negative (N), and Overflow (V).

6
New cards

BLE (Branch if Less Than or Equal)

A conditional branch instruction that transfers control if the previous comparison indicates that the first operand is less than or equal to the second operand.

7
New cards

Z Flag

A flag in the Status Register indicating whether the result of the last operation was zero.

8
New cards

N Flag

A flag in the Status Register indicating whether the result of the last operation was negative.

9
New cards

V Flag

A flag in the Status Register indicating an overflow in signed operations.

10
New cards

R0, R1, R2, R3, R4, R5

Registers used to hold operands and results in ARM assembly programming.

11
New cards

Signed Comparison

A comparison that takes into account the sign of the operands, distinguishing between positive and negative values.

12
New cards

Assembly Code

Low-level code written for a specific processor architecture that translates closely to machine code.

13
New cards

Branch Logic

The decision-making process in a program that determines which section of code will be executed based on certain conditions.

14
New cards

Equivalent Assembly Code

The ARM assembly code that represents the logic of a higher-level programming statement.

15
New cards

Condition Code

A set of conditions defined by the result of operations, used to control branching in assembly.

16
New cards

Justification of Branch Choice

The reasoning behind selecting a specific branch instruction based on the outcome of a comparison.