Category:Architecture/ARM/CMP

From aldeid
Jump to: navigation, search
You are here
CMP

Description

Compare and Compare Negative.

Syntax

CMP{cond} Rn, Operand2
CMN{cond} Rn, Operand2

where:

cond
is an optional condition code (see Conditional execution).
Rn
is the ARM register holding the first operand.
Operand2
is a flexible second operand.

Examples

.text:0000832C LDR     R3, [R11,#var_1C]
.text:00008330 CMP     R3, #8
.text:00008334 BNE     loc_82DC

This category currently contains no pages or media.