Bit testing

Could you tell me what the bit manipulation opcodes are please? - the ones which see if a bit is either on or off and the ones which set bits on/off.


cheers




Comments

  • : Could you tell me what the bit manipulation opcodes are please? - the ones which see if a bit is either on or off and the ones which set bits on/off.


    : cheers


    BT - Bit Test (386+)


    Example:


    BT AX, 3


    Sets carry flag if bit 3 of AX is set, otherwise clears it.


    BTR - Bit Test and Reset (386+)


    Example:


    BTR AX, 3


    As BT, but also clears the 3rd bit in AX.


    BTS - Bit Test and Set (386+)


    Example:


    BTS AX, 3


    As BT, but sets the 3rd bit in AX.




    URL:http://acheronx.resnet.tamu.edu/home/

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories