sxtah
Signed Extend and Add Halfword
SXTAH<c> <Rd>, <Rn>, <Rm> {, <rotation>}
Sign-extends a halfword and adds to Rn.
Details
The Signed Extend and Add Halfword instruction sign-extends a halfword and adds to Rn.
Pseudocode Operation
Rd ← Rn + Rm
// Flags affected: N, Z, C, V
Example
SXTAH r0, r1, r2
Encoding
Binary Layout
cond
01101011
Rn
Rd
rot
0111
Rm
Operands
-
Rd
Destination general-purpose register -
Rn
Accumulator -
Rm
Second source / offset general-purpose register