8085 Microprocessor :: Arithmetic Instructions

i) ADD
Syntax: ADD R/M
  • e.g. ADD B    ;A<=A+B
ii) ADC
Syntax: ADC R/M
  • e.g. ADC B    ;A<=A+B+CY
iii) ADI
Syntax: ADI 8-bit data
  • e.g. ADI 45    ;A<=A+45
iv) ACI
Syntax: ACI 8-bit data
  • e.g. ACI 45    ;A<=A+45+CY
v) SUB
Syntax: SUB R/M
  • e.g. SUB B    ;A<=A-B
vi) SBB
Syntax: SBB R/M
  • e.g. SBB B    ;A<=A-B-CY
vii) SUI
Syntax: SUI 8-bit data
  • e.g. SUI 45 ; A<=A-45
viii) SBI
Syntax: SBI 8-bit data
  • e.g. SBI 45    ;A<=A-45-CY
ix) DAD
Syntax: DAD register pair 
  • ;contents of register pair is added to HL and the sum is saved in HL pair.
  • e.g. DAD B    ;HL<=HL+BC
x) INR
Syntax: INR R/M
  • e.g. INR B    ;B<=B-1
xi) DCR
Syntax: DCR R/M
  • e.g. DCR C    ;C<=C-1
xii) INX
Syntax: INX register pair
  • e.g. INX H    ;HL<=HL+1
xiii) DCX
Syntax: DCX register pair
  • e.g. DCX B    ;BC<=BC-1

No comments:

Post a Comment