MOVE.W

MOVE.W Move Immediate Integer Word (AGU) MOVE.W

Operation

Assembler Syntax

#s7 → DR

MOVE.W #s7,DR {–64 s7 < 64}

#s16 → C4

MOVE.W #s16,C4 {–215s16 < 215}

#s16 → (aa)

MOVE.W #s16,(a16) {–215s16 < 215}{0 a16 < 216,W}

#s16 → (SP–u5)

MOVE.W #s16,(SP–u5) {–215s16 < 215}{0 u5 < 64,W]

#s16 → (Rn)

MOVE.W #s16,(Rn) {–215s16 < 215}

#s16 → (SP+sa16)

MOVE.W #s16,(SP+sa16) {–215s16 < 215}{–215sa16 < 215,W}

Description

These operations move a signed immediate integer word to a register or a memory address. The address of the access must be word-aligned.

D

31

16

0

 

SIGN EXTENSION

 

 

 

 

 

 

39

 

16

0

SIGN EXTENSION

 

 

 

 

 

 

MOVE.W #s7,DR

Loads an immediate signed 7-bit value into the LP of a data or address register and sign-extends it.

MOVE.W #s16,C4

Loads an immediate signed 16-bit value into the LP of a general register and sign-extends it.

MOVE.W #s16,(a16)

Writes an immediate signed 16-bit value to an absolute 16-bit address.

MOVE.W #s16,(SP–u5)

Writes an immediate signed 16-bit value to a memory address pointed to by the active stack pointer (SP) minus an unsigned 5-bit offset that is preshifted left 1 bit.

MOVE.W #s16,(Rn)

Writes an immediate signed 16-bit value to a memory address pointed to by an address register.

MOVE.W

#s16,(SP+sa16)

Writes a 16-bit signed immediate value to a memory address pointed to by the active stack pointer (SP) plus a signed 16-bit offset.

SC140 DSP Core Reference Manual

A-285

Page 599
Image 599
Freescale Semiconductor SC140 MOVE.W #s7,DR, MOVE.W #s16,C4, MOVE.W #s16,a16, MOVE.W #s16,SP-u5, MOVE.W #s16,Rn