Download 68kPM

Transcript
Integer Instructions
BFEXTS
BFEXTS
Extract Bit Field Signed
(MC68020, MC68030, MC68040)
Instruction Fields:
Effective Address field—Specifies the base location for the bit field. Only data register
direct or control addressing modes can be used as listed in the following table:
Addressing Mode Mode
Register
Addressing Mode Mode
Register
Dn
000
reg. number:Dn
(xxx).W
111
000
An
—
—
(xxx).L
111
001
(An)
010
reg. number:An
#<data>
—
—
(An) +
—
—
– (An)
—
—
(d16,An)
101
reg. number:An
(d16,PC)
111
010
(d8,An,Xn)
110
reg. number:An
(d8,PC,Xn)
111
011
(bd,An,Xn)
110
reg. number:An
(bd,PC,Xn)
111
011
([bd,An,Xn],od)
110
reg. number:An
([bd,PC,Xn],od)
111
011
([bd,An],Xn,od)
110
reg. number:An
([bd,PC],Xn,od)
111
011
Register field—Specifies the destination register.
Do field—Determines how the field offset is specified.
0 — The offset field contains the bit field offset.
1 — Bits 8 – 6 of the extension word specify a data register that contains the offset;
bits 10 – 9 are zero.
Offset field—Specifies the field offset, depending on Do.
If Do = 0, the offset field is an immediate operand; the operand value is in the range
of 0 – 31.
If Do = 1, the offset field specifies a data register that contains the offset. The value
is in the range of – 231 to 231 – 1.
Dw field—Determines how the field width is specified.
0 — The width field contains the bit field width.
1 — Bits 2 – 0 of the extension word specify a data register that contains the width;
bits 4 – 3 are zero.
4-38
M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL
MOTOROLA