3/20/23, 12:10 AM                                                        8085 Arithmetic Instructions
8085 Arithmetic Instructions
   Following is the table showing the list of Arithmetic instructions with their meanings.
https://www.tutorialspoint.com/microprocessor/microprocessor_8085_arithmetic_instructions.htm           1/4
3/20/23, 12:10 AM                                                        8085 Arithmetic Instructions
     Opcode              Operand                       Meaning                                          Explanation
                                                                                The contents of the register or memory are
                                             Add         register        or
                              R                                                 added to the contents of the accumulator
       ADD                                   memory,           to       the     and the result is stored in the accumulator.
                              M
                                             accumulator
                                                                                Example − ADD K.
                                                                                The contents of the register or memory &
                                             Add register to the                M the Carry flag are added to the contents
                              R
       ADC                                   accumulator              with      of the accumulator and the result is stored
                              M                                                 in the accumulator.
                                             carry
                                                                                Example − ADC K
                                                                                The 8-bit data is added to the contents of
                                             Add the immediate to               the accumulator and the result is stored in
        ADI             8-bit data                                              the accumulator.
                                             the accumulator
                                                                                Example − ADI 55K
                                                                                The 8-bit data and the Carry flag are
                                             Add the immediate to               added to the contents of the accumulator
        ACI             8-bit data           the accumulator with               and the result is stored in the accumulator.
                                             carry
                                                                                Example − ACI 55K
                                                                                The instruction stores 16-bit data into the
                        Reg. pair,           Load the register pair             register pair designated in the operand.
        LXI
                        16bit data           immediate
                                                                                Example − LXI K, 3025M
                                                                                The 16-bit data of the specified register
                                             Add the register pair              pair are added to the contents of the HL
       DAD              Reg. pair
                                             to H and L registers               register.
                                                                                Example − DAD K
       SUB                    R              Subtract the register              The contents of the register or the memory
                                             or the memory from                 are subtracted from the contents of the
                              M
                                             the accumulator                    accumulator, and the result is stored in the
                                                                                accumulator.
https://www.tutorialspoint.com/microprocessor/microprocessor_8085_arithmetic_instructions.htm                                  2/4
3/20/23, 12:10 AM                                                        8085 Arithmetic Instructions
                                                                                Example − SUB K
                                                                                The contents of the register or the memory
                                             Subtract the source                & M the Borrow flag are subtracted from
                              R
        SBB                                  and borrow from the                the contents of the accumulator and the
                              M              accumulator                        result is placed in the accumulator.
                                                                                Example − SBB K
                                                                                The 8-bit data is subtracted from the
                                             Subtract                   the     contents of the accumulator & the result is
        SUI             8-bit data           immediate from the                 stored in the accumulator.
                                             accumulator
                                                                                Example − SUI 55K
                                                                                The contents of register H are exchanged
                                                                                with the contents of register D, and the
                                             Exchange H and L                   contents of register L are exchanged with
      XCHG                 None
                                             with D and E                       the contents of register E.
                                                                                Example − XCHG
                                                                                The contents of the designated register or
                              R              Increment                  the     the memory are incremented by 1 and
        INR                                  register         or        the
                                                                                their result is stored at the same place.
                              M              memory by 1
                                                                                Example − INR K
                                                                                The contents of the designated register
                                             Increment             register     pair are incremented by 1 and their result
        INX                   R
                                             pair by 1                          is stored at the same place.
                                                                                Example − INX K
                                                                                The contents of the designated register or
                              R              Decrement                  the     memory are decremented by 1 and their
       DCR                                   register         or        the
                                                                                result is stored at the same place.
                              M              memory by 1
                                                                                Example − DCR K
       DCX                    R              Decrement                  the     The contents of the designated register
                                             register pair by 1                 pair are decremented by 1 and their result
https://www.tutorialspoint.com/microprocessor/microprocessor_8085_arithmetic_instructions.htm                                 3/4
3/20/23, 12:10 AM                                                        8085 Arithmetic Instructions
                                                                                is stored at the same place.
                                                                                Example − DCX K
                                                                                The contents of the accumulator are
                                                                                changed from a binary value to two 4-bit
                                                                                BCD digits.
                                                                                If the value of the low-order 4-bits in the
                                                                                accumulator is greater than 9 or if AC flag
                                             Decimal                adjust      is set, the instruction adds 6 to the low-
       DAA                 None
                                             accumulator                        order four bits.
                                                                                If the value of the high-order 4-bits in the
                                                                                accumulator is greater than 9 or if the
                                                                                Carry flag is set, the instruction adds 6 to
                                                                                the high-order four bits.
                                                                                Example − DAA
https://www.tutorialspoint.com/microprocessor/microprocessor_8085_arithmetic_instructions.htm                                  4/4