Move; Register Move - Analog Devices adsp-2100 Manual

Adsp-2100 family programmable single-chip microprocessors
Table of Contents

Advertisement

Syntax:
reg = reg ;
Permissible registers
AX0
MX0
SI
AX1
MX1
SE
AY0
MY0
SR1
AY1
MY1
SR0
AR
MR2
I0-I7
MR1
M0-M7
MR0
L0-L7
Example:
I7 = AR;
Description:
Move the contents of the source to the destination
location. The contents of the source are always right-justified in the
destination location after the move.
When transferring a smaller register to a larger register (e.g., an 8-bit
register to a 16-bit register), the value stored in the destination is either
sign-extended to the left if the source is a signed value, or zero-filled to the
left if the source is an unsigned value. The unsigned registers which
(when used as the source) cause the value stored in the destination to be
zero-filled to the left are: I0 through I7, L0 through L7, CNTR, PX, ASTAT,
MSTAT, SSTAT, IMASK, and ICNTL. All other registers cause sign-
extension to the left.
When transferring a larger register to a smaller register (e.g., a 16-bit
register to a 14-bit register), the value stored in the destination is right-
justified (bit 0 maps to bit 0) and the higher-order bits are dropped.
Note that whenever MR1 is loaded with data, it is sign-extended into
MR2.
Status Generated:
SB
PX
ASTAT
MSTAT
SSTAT(read only) TX0
IMASK
ICNTL
None affected.
(instruction continues on next page)

REGISTER MOVE

CNTR
OWRCNTR(write only)
RX0
RX1
TX1
IFC(write only)

MOVE

15
15 – 63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents