|
MC68030 Datasheet, PDF (87/602 Pages) Motorola, Inc – ENHANCED 32-BIT MICROPROCESSOR | |||
|
◁ |
Instruction Set Summary
Instruction
BCHG
BCLR
BSET
BTST
Table 3-5. Bit Manipulation Operations
Operand Syntax
Dn,â©eaâª
#â©dataâª,ea
Dn,â©eaâª
#â©dataâª,ea
Dn,â©eaâª
#â©dataâª,â©eaâª
Dn,â©eaâª
#â©dataâª,ea
Operand Size
Operation
8, 32
â¼ (â©bit number⪠of destination) â Z â bit of destination
8, 32
8, 32
â¼ (â©bit number⪠of destination) â Z;
8, 32
â 0 â bit of destination
8, 32
â¼ (â©bit number⪠of destination) â Z;
8, 32
â 1 â bit of destination
8, 32
â¼ (â©bit number⪠of destination) â Z
8, 32
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.
Table 3-6. Bit Field Operations
Instruction
BFCHG
BFCLR
BFEXTS
BFEXTU
BFFFO
BFINS
BFSET
BFTST
Operand Syntax
â©ea⪠{offset:width}
â©ea⪠{offset:width}
â©ea⪠{offset:width},Dn
â©ea⪠{offset:width},Dn
â©ea⪠{offset:width},Dn
Dn,â©ea⪠{offset:width}
â©ea⪠{offset:width}
â©ea⪠{offset:width}
Operand Size
1 â 32
1 â 32
1â32
1 â 32
1 â 32
1 â 32
1 â 32
1 â 32
Operation
â¼ Field â Field
0's â Field
Field â Dn; Sign Extended
Field â Dn; Zero Extended
Scan for first bit set in field; offset â Dn
Dn â Field
1's â Field
Field MSB â N; â¼ (OR of all bits in field) â Z
NOTE: All bit ï¬eld instructions set the N and Z bits as shown for BFTST before performing the speciï¬ed operation.
MOTOROLA
MC68030 USERâS MANUAL
3-9
|
▷ |