Machine  Instruction                                                                                                                                   Print this page
<< Previous |  First Last |  Next >>       

Logical:

Most machines also provide a variety of operations for manipulating individual bits of a word or other addressable units.

Most commonly available logical operations are:

  Operation Name  
            Description
  AND Performs the logical operation AND bitwise
  OR Performs the logical operation OR bitwise
  NOT Performs the logical operation NOT bitwise  
  Exclusive OR Performs the specified logical operation Exculsive-OR bitwise
  Test Test specified condition; set flag(s) based on outcome
  Compare   Make logical or arithmatic comparison Set flag(s) based on outcome
  Set Control Variables  

Class of instructions to set controls for protection purposes, interrupt handling, timer control etc.

  Shift  

Left (right) shift operand, introducing constant at end

  Rotate   Left (right) shift operation, with wraparound end
<< Previous |  First |  Last |  Next >>