Arithmetic Group Instruction Set of 8085 Microprocessor | ADD, ADC, ACI, ADI, DAD, SUB, SBB, SUI, DCR, INR, INX, DCX instruction
Arithmetic Group of 8085 Microprocessor
- ADD r
- The data in Accumulator and entered register will get added and the result will copy to Accumulator
(A) + (B) ⇢ (A)
- ADD M
- The data in Accumulator and data in the memory location pointed by HL pair will get added and the result will copy to Accumulator.
(A) + ((H-L)) ⇢ (A)
- ADC M
- The data in Accumulator, data in the memory location pointed by HL pair and value of Carry Bit will get added and the result will copy to Accumulator.
(A) + ((H-L)) + (CS) ⇢ (A)
- ADC r
- The data in Accumulator, data in entered register and value of Carry Bit will get added and the result will copy to Accumulator.
(A) + (B) + (CS) ⇢ (A)
- ACI data
- The data in Accumulator, entered data and value of carry bit will get added and the result will copy to Accumulator.
(A) + (06) + (CS) ⇢ (A)
- ADI data
- The data in Accumulator, entered data will get added and the result will copy to Accumulator.
(A) + (06) ⇢ (A)
- DAD rp
- The data in the memory location pointed by entered register pair and data in the memory location pointed by HL pair will get added and the result will copy to the memory location pointed by HL pair
((B-C)) + ((H-L))⇢ ((H-L))
- SUB r
- The data in Accumulator and entered register will get subtracted and the result will copy to Accumulator
- SUB M
- The data in Accumulator and data in the memory location pointed by HL pair will get subtracted and the result will copy to Accumulator.
- Example - SUB C
(A) - (C) ⇢ (A)
- SBB M
- The data in Accumulator, data in the memory location pointed by HL pair and value of Carry Bit will get subtracted and the result will copy to Accumulator.
- Example - SUB M
(A) - ((H-L)) ⇢ (A)
- Example - SBB M
(A) - ((H-L)) - (CS) ⇢ (A)
- SBB r
- The data in Accumulator, entered data and value of carry bit will get subtracted and the result will copy to Accumulator.
- SUI data
- The data in Accumulator, entered data will get subtracted and the result will copy to Accumulator.
- Example - SBB 07
(A) - (07) - (CS) ⇢ (A)
- SBI data
- The data in Accumulator, entered data and value of carry bit will get added and the result will copy to Accumulator. Example - SBI 06
- DCR r
- This instruction is to decrease the value of entered register by 1.
- Example - SUI 06
(A) - (06) ⇢ (A)
(A) - (06) - (CS) ⇢ (A)
(B) - 1 ⇢ (B)
- DCR M
- This instruction is to decrease the value at the memory location pointed by HL pair by 1.
((H-L)) -1 ⇢ ((H-L))
- INR r
- This instruction is to increase the value of entered register by 1.
- INR M
- This instruction is to increase the value at the memory location pointed by HL pair by 1.
- Example - INR B
(B) + 1 ⇢ (B)
((H-L)) + 1 ⇢ ((H-L))
- INX rp
- This instruction is to increase the data in the memory location pointed by the entered register pair by 1.
((B-C)) + 1 ⇢ ((B-C))
- DCX rp
- This instruction is to decrease the data in the memory location pointed by the entered register pair by 1.
((D-E)) - 1 ⇢ ((D-E))
Comments
Post a Comment