34
The 68000's Instruction Set
Description:
Move the contents of the source operand to the status register.
The source operand is a word and all bits of the status register
are affected.
Application:
The
MOVE
to
SR
instruction allows the programmer to preset the
contents of the status register. This instruction permits the trace
mode, interrupt mask, and status bits to be modified. For example,
MOVE #$2700,SR
moves 00100111 00000000 to the status register
which clears all bits of the CCR, sets the S-bit, clears the T-bit,
and sets the interrupt mask level to 7.
Condition codes:
X N Z V C
* * * * *
Source operand addressing modes
MOVE USP
Copy data to or from USP
Operation 1:
IF [S] = 1
{MOVE USP,An form}
THEN [USP]
←
[An]
ELSE TRAP
Operation 2:
IF [S] = 1
{MOVE An,USP form}
THEN [An]
←
[USP]
ELSE TRAP
Syntax 1:
MOVE USP,An
Syntax 2:
MOVE An,USP
Attributes:
Size = longword
Description:
Move the contents of the user stack pointer to an address register
or vice versa. This is a privileged instruction and allows the
operating system running in the supervisor state either to read
the contents of the user stack pointer or to set up the user stack
pointer.
Condition codes:
X N Z V C
- - - - -
Summary of Contents for 68000
Page 1: ...Motorola 68000 s Instruction Set ...
Page 2: ......