pkhtb

Pack Halfword Top Bottom

PKHTB<c> <Rd>, <Rn>, <Rm> {, ASR #<imm>}

Combines top half of Rn with bottom half of shifted Rm.

Details

The Pack Halfword Top Bottom instruction combines top half of Rn with bottom half of shifted Rm.

Pseudocode Operation

// Combines top half of Rn with bottom half of shifted Rm

Example

PKHTB r0, r1, r2

Encoding

Binary Layout
cond
01101000
Rn
Rd
shift
1
01
Rm
 
Format Data Proc
Opcode 0x06800050
Extension A32 (DSP)

Operands

  • Rd
    Destination general-purpose register
  • Rn
    Top Src
  • Rm
    Bottom Src