Move.w, Move immediate integer word (agu), Description – Freescale Semiconductor StarCore SC140 User Manual
Page 599: Operation assembler syntax

MOVE.W
SC140 DSP Core Reference Manual
A-285
MOVE.W
Move Immediate Integer Word (AGU)
MOVE.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.
Operation
Assembler Syntax
#s7
→ DR
MOVE.W #s7,DR {–64
≤ s7 < 64}
#s16
→ C4
MOVE.W #s16,C4 {–2
15
≤ s16 < 2
15
}
#s16
→ (aa)
MOVE.W #s16,(a16) {–2
15
≤ s16 < 2
15
}{0
≤ a16 < 2
16
,W}
#s16
→ (SP–u5)
MOVE.W #s16,(SP–u5) {–2
15
≤ s16 < 2
15
}{0
≤ u5 < 64,W]
#s16
→ (Rn)
MOVE.W #s16,(Rn) {–2
15
≤ s16 < 2
15
}
#s16
→ (SP+sa16)
MOVE.W #s16,(SP+sa16) {–2
15
≤ s16 < 2
15
}{–2
15
≤ sa16 < 2
15
,W}
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.
SIGN EXTENSION
39
0
16
D
0
16
31
SIGN EXTENSION