index image
  • Global Business Resources
    Find out worldwide manufacturers and traders.
    Discover best resources in global-business-resource.com.
    business services.


    Selective-set

    The selective-set operation sets to 1 the bits in register A where there are corresponding l's in register B. It does not affect bit positions that have O's in B. The following numerical example clarifies this operation:

    1010 A before

    1100 B (logic operand)

    1110 A after

    The two leftmost bits of B are l's, so the corresponding bits of A are set to 1. One of these two bits was already set and the other has been changed from 0 to 1. The two bits of A with corresponding O's in B remain unchanged. The example above serves as a truth table since it has all four possible combinations of two binary variables. From the truth table we note that the bits of A after the operation are obtained from the logic-OR operation of bits in B and previous values of A. Therefore, the OR microoperation can be used to selectively set bits of a register.


    terms and conditions | index1 | index2 | index3 |
    cadenti | web directory |