Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->BFEXTS

BFEXTS    Extract Bit Field Signed

Compatibility: 68020 family only

<bit field> of Source -> Dn

Assembler Syntax:    BFEXTS <ea>{offset:width},Dn

Unsized

Extracts the bit field from the specified effective address location, sign extends it to 32 bits, and loads the result into the destination data register

The field offset and field width select the bit field.  The field offset specifies the starting bit of the field.  The field width determines the number of bits in the field.


Condition Codes:
N    Set if the most significant bit of the field is set, otherwise cleared
Z    Set if all bits of the field are zero, otherwise cleared
V    Always cleared
C    Always cleared
X    Not affected

This instruction is not supported by CPU32 based microcontrollers.

    
Allowable Addressing Modes
    
BFEXTSDn{offset:width},Dn
BFEXTS(An){offset:width},Dn
BFEXTS(d16,An){offset:width},Dn
BFEXTS(d8,An,Xn){offset:width},Dn
BFEXTS(bd,An,Xn){offset:width},Dn
BFEXTS([bd,An,Xn],od){offset:width},Dn
BFEXTS([bd,An],Xn,od){offset:width},Dn
BFEXTS(xxx).W{offset:width},Dn
BFEXTS(xxx).L{offset:width},Dn
BFEXTS(d16,PC),Dn
BFEXTS(d8,PC,Xn),Dn
BFEXTS(bd,PC,Xn),Dn
BFEXTS([bd,PC,Xn],od),Dn
BFEXTS([bd,PC],Xn,od),Dn
where:

offset specifies the starting bit of the field and is either a data register Dn or an expression having a value from 0 to 31.

width specifies the width of the field and is either a data register Dn or an expression having a value from 0 to 31 where 1 to 31 specify field widths of 1 to 31 and 0 specifies a field width of 32.