i) ADD
Syntax: ADD R/M
Syntax: ADC R/M
Syntax: ADI 8-bit data
Syntax: ACI 8-bit data
Syntax: SUB R/M
Syntax: SBB R/M
Syntax: SUI 8-bit data
Syntax: SBI 8-bit data
Syntax: DAD register pair
Syntax: INR R/M
Syntax: DCR R/M
Syntax: INX register pair
Syntax: DCX register pair
Syntax: ADD R/M
- e.g. ADD B ;A<=A+B
Syntax: ADC R/M
- e.g. ADC B ;A<=A+B+CY
Syntax: ADI 8-bit data
- e.g. ADI 45 ;A<=A+45
Syntax: ACI 8-bit data
- e.g. ACI 45 ;A<=A+45+CY
Syntax: SUB R/M
- e.g. SUB B ;A<=A-B
Syntax: SBB R/M
- e.g. SBB B ;A<=A-B-CY
Syntax: SUI 8-bit data
- e.g. SUI 45 ; A<=A-45
Syntax: SBI 8-bit data
- e.g. SBI 45 ;A<=A-45-CY
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
Syntax: INR R/M
- e.g. INR B ;B<=B-1
Syntax: DCR R/M
- e.g. DCR C ;C<=C-1
Syntax: INX register pair
- e.g. INX H ;HL<=HL+1
Syntax: DCX register pair
- e.g. DCX B ;BC<=BC-1
No comments:
Post a Comment