Assembly-Guidebook

Basic Arithmetic Operations

  1. ADD
    Example ADD AX, BX Adds 2nd operand to the first and stores in first.
    image

  2. SUB
    Example SUB AX, BX Subtracts2nd operand from first and stores in first.
    image

  3. INC Example INC DI Increase by 1. If, DI = 5, then after INC DI DI=6

  4. DEC Example DEC DI Decreases by 1