MC68030RC33 Bit Field Operations - Motorola

no-image

MC68030RC33

Manufacturer Part Number
MC68030RC33
Description
MC68030RC33ENHANCED 32-BIT MICROPROCESSOR
Manufacturer
Motorola
Datasheet
Table 3-5. Bit Manipulation Operations
Instruction
Operand Syntax
BCHG
Dn, ea
# data ,ea
BCLR
Dn, ea
# data ,ea
BSET
Dn, ea
# data , ea
BTST
Dn, ea
# data ,ea
3.2.6 Bit Field Operations
The MC68030 supports variable-length bit field operations on fields of up to 32 bits. The bit
field insert (BFINS) instruction inserts a value into a bit field. Bit field extract unsigned
(BFEXTU) and bit field extract signed (BFEXTS) extract a value from the field. Bit field find
first one (BFFFO) finds the first bit that is set in a bit field. Also included are instructions that
are analogous to the bit manipulation operations; bit field test (BFTST), bit field test and set
(BFSET), bit field test and clear (BFCLR), and bit field test and change (BFCHG). Table 3–
6 is a summary of the bit field operations.
Instruction
Operand Syntax
BFCHG
ea {offset:width}
BFCLR
ea {offset:width}
BFEXTS
ea {offset:width},Dn
BFEXTU
ea {offset:width},Dn
BFFFO
ea {offset:width},Dn
BFINS
Dn, ea {offset:width}
BFSET
ea {offset:width}
BFTST
ea {offset:width}
NOTE: All bit field instructions set the N and Z bits as shown for BFTST before performing the specified operation.
MOTOROLA
Operand Size
8, 32
( bit number of destination)
8, 32
8, 32
( bit number of destination)
8, 32
— 0
bit of destination
8, 32
( bit number of destination)
8, 32
— 1
bit of destination
8, 32
( bit number of destination)
8, 32
Table 3-6. Bit Field Operations
Operand Size
1 — 32
Field
Field
1 — 32
0's
Field
1—32
Field
Dn; Sign Extended
1 — 32
Field
Dn; Zero Extended
1 — 32
Scan for first bit set in field; offset
1 — 32
Dn
Field
1 — 32
1's
Field
1 — 32
Field MSB
N;
MC68030 USER’S MANUAL
Instruction Set Summary
Operation
Z
bit of destination
Z;
Z;
Z
Operation
Dn
(OR of all bits in field)
Z
3-9

Related parts for MC68030RC33