BITPOS


Obtains the second term of a bit symbol.

[Function]

Obtains the second term of a bit symbol.

[Application example]

BITSYM  .EQU    0x0FE20.3
        MOVW    AX, #BITPOS(BITSYM)     ; (1)

(1)

Execution of the MOVW instruction loads a value of 3 in the AX register.

[Caution]

No bit term (see "5.1.15 Bit position specifier") can be specified in the operand field.