VMS Help  —  RTL Routines, LIB$  LIB$BBCCI
    The Test and Clear Bit with Interlock routine tests and clears
    a selected bit under memory interlock. LIB$BBCCI makes the VAX
    BBCCI instruction available as a callable routine.

    Format

      LIB$BBCCI  position ,bit-zero-address

1  –  Returns

    OpenVMS usage:longword_unsigned
    type:         longword (unsigned)
    access:       write only
    mechanism:    by value

    State of the bit before it was cleared by LIB$BBCCI: 1 if the bit
    was previously set, and 0 if the bit was previously clear.

2  –  Arguments

 position

    OpenVMS usage:longword_signed
    type:         longword integer (signed)
    access:       read only
    mechanism:    by reference

    Bit position, relative to bit-zero-address, of the bit that
    LIB$BBCCI tests and clears. The position argument is the address
    of a signed longword integer containing the bit position. A
    position of zero denotes the low-order bit of the byte base. The
    bit position is equal to the offset of the bit chosen from the
    base position. This offset may span the entire range of a signed
    longword integer; negative offsets access bits in lower addressed
    bytes.

 bit-zero-address

    OpenVMS usage:unspecified
    type:         address
    access:       read only
    mechanism:    by value

    Address of the byte containing bit 0 of the field that LIB$BBCCI
    references. The bit-zero-address argument is the location of
    the base position. The bit that LIB$BBCCI tests and clears is
    position bits offset from the low bit of bit-zero-address.
Close Help