25
The 68000's Instruction Set
address register. Doing this preserves the original contents of the
data register.
Condition codes:
X N Z V C
- - - - -
EXT
Sign-extend a data register
Operation:
[destination]
←
sign-extended[destination]
Syntax:
EXT.W Dn
EXT.L Dn
Attributes:
Size = word, longword
Description:
Extend the least-significant byte in a data register to a word, or
extend the least-significant word in a data register to a longword.
If the operation is word sized, bit 7 of the designated data register
is copied to bits (8:15). If the operation is longword sized, bit 15
is copied to bits (16:31).
Application:
If
[D0] = $12345678, EXT.W D0
results in 12340078
16
If
[D0] = $12345678, EXT.L D0
results in 00005678
16
Condition codes:
X N Z V C
- * * 0 0
ILLEGAL Illegal instruction
Operation:
[SSP]
←
[SSP] - 4; [M([SSP])]
←
[PC];
[SSP]
←
[SSP] - 2; [M([SSP])]
←
[SR];
[PC]
←
Illegal instruction vector
Syntax:
ILLEGAL
Attributes:
None
Description:
The bit pattern of the illegal instruction, 4AFC
16
causes the illegal
instruction trap to be taken. As in all exceptions, the contents of
the program counter and the processor status word are pushed
onto the supervisor stack at the start of exception processing.
Summary of Contents for 68000
Page 1: ...Motorola 68000 s Instruction Set ...
Page 2: ......