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

Arithmatic:

Most machines provide the basic arithmatic operations like add, subtract, multiply, divide etc. These are invariably provided for signed integer (fixed-point) numbers. They are also available for floating point number.

The execution of an arithmatic operation may involve data transfer operation to provide the operands to the ALU input and to deliver the result of the ALU operation.

Commonly used data transfer operation:

  Operation Name  
            Description
  Add Compute sum of two operands
  Subtract Compute difference of two operands
  Multiply Compute product of two operands
  Divide Compute quotient of two operands
  Absolute Replace operand by its absolute value
  Negate   Change sign of operand
  Increment   Add 1 to operand
  Decrement  

Subtract 1 from operand

<< Previous |  First |  Last |  Next >>