beautypg.com

Freescale Semiconductor StarCore SC140 User Manual

Page 604

background image

A-290

SC140 DSP Core Reference Manual

MOVE.W

MOVE.W (Rn+u3),DR

MOVE.W DR,(Rn+u3)

Moves a signed word between a data or address register (DR) and a memory address pointed to by an
address register (Rn) with an unsigned 3-bit offset that is preshifted right by 1 bit. The offset u3, defined by
the programmer, must be an even integer from 0–14. It is encoded by the assembler with 3 bits, thus
creating a 3-bit offset, which is coded in the instruction. The core, when decoding the instruction, post
shifts left the 3-bit offset to reconstruct the real offset. This feature enables condensed code size when short
immediates are needed.

MOVE.W (Rn+s15),DR

MOVE.W DR,(Rn+s15)

Moves a signed word between a data or address register (DR) and a memory address pointed to by an
address register (Rn) with a signed 15-bit offset.

MOVE.W (Rn+Rr),DR

MOVE.W DR,(Rn+Rr)

Moves a signed word between a data or address register (DR) and a memory address pointed to by an
address register (Rn) with an offset contained in another address register (Rr). The second address register
(Rr) is shifted left by one bit prior to being added. The modifier mode of this instruction is determined by
Rn in MCTL. Rr is limited to R0–R7.

MOVE.W (EA),DR

MOVE.W DR,(EA)

Moves a signed word between a data or address register (DR) and a memory address pointed to by (EA) an
address register with an optional offset or post-increment.

MOVE.W (Rn),C3

MOVE.W C3,(Rn)

Moves a signed word between a control, offset, or modifier register (C3) and a memory address pointed to
by an address register (Rn).

MOVE.W (SP–u6),DR

MOVE.W DR,(SP–u6)

Moves a signed word between a data or address register (DR) and a memory address pointed to by the
active stack pointer (SP) minus a 6-bit unsigned offset.

MOVE.W (SP+s15),C4

MOVE.W C4,(SP+s15)

Moves a signed word between a general register (C4) and a memory address pointed to by the active stack
pointer (SP) with a signed 15-bit offset.