SlideShare a Scribd company logo
1 of 16
SUBJECT : MPI
TOPIC ARITHMATIC
INSTRUCTION
ADD
opcode operand byte M-cycle T states
ADD R 1 1 4
ADD M 1 2 7
The contents of the register or memory are added to the contents of the accumulator and the result is stored
in the accumulator.
All flags are affected by implementing this instruction.
Example − ADD K.
ADI
opcode operand byte M cycle T states
ADI 8 bit data 2 2 7
Add the immediate to the accumulator
The 8-bit data is added to the contents of the accumulator and the result is stored in the accumulator. all flags
are affected.
Example − ADI 55K
ADC
opcode operand byte M cycle T states
ADC R 1 1 4
ADC M 1 2 7
Add register to the accumulator with carry
The contents of the register or memory & M the Carry flag are added to the contents of the accumulator and
the result is stored in the accumulator.
ALL flags are affected implementing this instruction
Example − ADC K
ACI
opcode operand byte M cycle T states
ACI 8 bit data 2 2 7
Add the immediate to the accumulator with carry
The 8-bit data and the Carry flag are added to the contents of the accumulator and the result is stored in the
accumulator.
Example − ACI 55K
SUB
opcode operand byte M cycle T states
SUB R 1 1 4
SUB M 1 2 7
Subtract the register or the memory from the accumulator
The contents of the register or the memory are subtracted from the contents of the accumulator, and the
result is stored in the accumulator. All flags are affected.
A-register or A-M
Example − SUB K
SUI
opcode operand byte M cycle T states
SUI 8-bit data 2 2 7
Subtract the immediate from the accumulator
The 8-bit data is subtracted from the contents of the accumulator & the result is stored in the accumulator.
All flags are affected.
Example − SUI 55K
SBB
opcode operand byte M cycle T states
SBB R 1 1 4
SBB M 1 2 7
Subtract the source and borrow from the accumulator
The contents of the register or the memory & M the Borrow flag are subtracted from the contents of the
accumulator and the result is placed in the accumulator.
All flags are affected.
Example − SBB K
SBI
opcode operand byte M cycle T states
SBI 8 bit data 2 2 7
Subtract the immediate from the accumulator with borrow
This instruction will subtract 8-bit immediate data with borrow and result will be stored in AC. By implementing
this instruction all flags are affected.
INR
opcode operand byte M cycle T states
INR R 1 1 4
INR M 1 3 10
Increment the register or the memory by 1
The contents of the designated register or the memory are incremented by 1 and their result is stored at the
same place.no flags are affected.
Example − INR K
DCR
opcode operand byte M cycle T states
DCR R 1 1 4
DCR M 1 3 10
Decrement the register or the memory by 1
The contents of the designated register or memory are decremented by 1 and their result is stored at the same
place.no flags are affected.
Example − DCR K
INX
opcode operand byte M cycle T states
INX REGISTER PAIR 1 1 6
Increment register pair by 1
The contents of the designated register pair are incremented by 1 and their result is stored at the same place.
No flags are affected.
Example − INX K
DCX
opcode operand byte M cycle T states
DCX REGISTER PAIR 1 1 6
Decrement the register pair by 1
The contents of the designated register pair are decremented by 1 and their result is stored at the same place.
No flags are affected.
Example − DCX K
DAD
opcode operand byte M cycle T states
DAD REGISTER PAIR
(HL,DE,BC)
1 3 10
Decimal adjust accumulator
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 is set, the instruction adds
6 to the low-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
Mpi

More Related Content

What's hot

itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
Shifali Sharma
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
saleForce
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
Jay Patel
 

What's hot (20)

8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction set
 
DAA AND DAS
DAA AND DASDAA AND DAS
DAA AND DAS
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
 
Lec 05 - Combinational Logic
Lec 05 - Combinational LogicLec 05 - Combinational Logic
Lec 05 - Combinational Logic
 
8085 is details
8085 is details8085 is details
8085 is details
 
Instruction set
Instruction setInstruction set
Instruction set
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl
 
microcomputer architecture - Arithmetic instruction
microcomputer architecture - Arithmetic instructionmicrocomputer architecture - Arithmetic instruction
microcomputer architecture - Arithmetic instruction
 
Arithmetic and logical instructions
Arithmetic and logical instructionsArithmetic and logical instructions
Arithmetic and logical instructions
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
Pda to cfg h2
Pda to cfg h2Pda to cfg h2
Pda to cfg h2
 
8085 instruction set (detailed)
8085 instruction set (detailed)8085 instruction set (detailed)
8085 instruction set (detailed)
 
microcomputer architecture-Instruction formats
microcomputer architecture-Instruction formatsmicrocomputer architecture-Instruction formats
microcomputer architecture-Instruction formats
 
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
 
Principles of Combinational Logic-1
Principles of Combinational Logic-1Principles of Combinational Logic-1
Principles of Combinational Logic-1
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Instruction Set 8085
Instruction Set 8085Instruction Set 8085
Instruction Set 8085
 
Introduction to 8085 by adi ppt
Introduction to 8085 by adi pptIntroduction to 8085 by adi ppt
Introduction to 8085 by adi ppt
 

Similar to Mpi

instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
ssuserb448e2
 

Similar to Mpi (20)

8085 Instructions.pdf
8085 Instructions.pdf8085 Instructions.pdf
8085 Instructions.pdf
 
Types of instruction in 8085 microprocessor
Types of instruction in 8085 microprocessorTypes of instruction in 8085 microprocessor
Types of instruction in 8085 microprocessor
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIR
 
8085 instructions
8085 instructions8085 instructions
8085 instructions
 
8085 instructions details
8085 instructions details8085 instructions details
8085 instructions details
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
Architecture of 8085
Architecture of  8085Architecture of  8085
Architecture of 8085
 
Unit 1 8085 Timing diagram - lecture 5b
Unit 1  8085 Timing diagram - lecture 5bUnit 1  8085 Timing diagram - lecture 5b
Unit 1 8085 Timing diagram - lecture 5b
 
8085 instruction-set part 1
8085 instruction-set part 18085 instruction-set part 1
8085 instruction-set part 1
 
5. 8085 instruction set ii
5. 8085 instruction set ii5. 8085 instruction set ii
5. 8085 instruction set ii
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085
 
Instruction set
Instruction setInstruction set
Instruction set
 
Lecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsLecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of Instructions
 
Instruction_Set.pdf
Instruction_Set.pdfInstruction_Set.pdf
Instruction_Set.pdf
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessor
 

More from JahnaviBhagat (10)

Se
SeSe
Se
 
A.java
A.javaA.java
A.java
 
System Programming
System ProgrammingSystem Programming
System Programming
 
Java
JavaJava
Java
 
Indeterminate forms
Indeterminate formsIndeterminate forms
Indeterminate forms
 
Contributor personality development
Contributor personality development Contributor personality development
Contributor personality development
 
Electrical engineering
Electrical engineeringElectrical engineering
Electrical engineering
 
computer organization
computer organizationcomputer organization
computer organization
 
Computer Network
Computer NetworkComputer Network
Computer Network
 
Dbms
DbmsDbms
Dbms
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Recently uploaded (20)

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

Mpi

  • 3. ADD opcode operand byte M-cycle T states ADD R 1 1 4 ADD M 1 2 7 The contents of the register or memory are added to the contents of the accumulator and the result is stored in the accumulator. All flags are affected by implementing this instruction. Example − ADD K.
  • 4. ADI opcode operand byte M cycle T states ADI 8 bit data 2 2 7 Add the immediate to the accumulator The 8-bit data is added to the contents of the accumulator and the result is stored in the accumulator. all flags are affected. Example − ADI 55K
  • 5. ADC opcode operand byte M cycle T states ADC R 1 1 4 ADC M 1 2 7 Add register to the accumulator with carry The contents of the register or memory & M the Carry flag are added to the contents of the accumulator and the result is stored in the accumulator. ALL flags are affected implementing this instruction Example − ADC K
  • 6. ACI opcode operand byte M cycle T states ACI 8 bit data 2 2 7 Add the immediate to the accumulator with carry The 8-bit data and the Carry flag are added to the contents of the accumulator and the result is stored in the accumulator. Example − ACI 55K
  • 7. SUB opcode operand byte M cycle T states SUB R 1 1 4 SUB M 1 2 7 Subtract the register or the memory from the accumulator The contents of the register or the memory are subtracted from the contents of the accumulator, and the result is stored in the accumulator. All flags are affected. A-register or A-M Example − SUB K
  • 8. SUI opcode operand byte M cycle T states SUI 8-bit data 2 2 7 Subtract the immediate from the accumulator The 8-bit data is subtracted from the contents of the accumulator & the result is stored in the accumulator. All flags are affected. Example − SUI 55K
  • 9. SBB opcode operand byte M cycle T states SBB R 1 1 4 SBB M 1 2 7 Subtract the source and borrow from the accumulator The contents of the register or the memory & M the Borrow flag are subtracted from the contents of the accumulator and the result is placed in the accumulator. All flags are affected. Example − SBB K
  • 10. SBI opcode operand byte M cycle T states SBI 8 bit data 2 2 7 Subtract the immediate from the accumulator with borrow This instruction will subtract 8-bit immediate data with borrow and result will be stored in AC. By implementing this instruction all flags are affected.
  • 11. INR opcode operand byte M cycle T states INR R 1 1 4 INR M 1 3 10 Increment the register or the memory by 1 The contents of the designated register or the memory are incremented by 1 and their result is stored at the same place.no flags are affected. Example − INR K
  • 12. DCR opcode operand byte M cycle T states DCR R 1 1 4 DCR M 1 3 10 Decrement the register or the memory by 1 The contents of the designated register or memory are decremented by 1 and their result is stored at the same place.no flags are affected. Example − DCR K
  • 13. INX opcode operand byte M cycle T states INX REGISTER PAIR 1 1 6 Increment register pair by 1 The contents of the designated register pair are incremented by 1 and their result is stored at the same place. No flags are affected. Example − INX K
  • 14. DCX opcode operand byte M cycle T states DCX REGISTER PAIR 1 1 6 Decrement the register pair by 1 The contents of the designated register pair are decremented by 1 and their result is stored at the same place. No flags are affected. Example − DCX K
  • 15. DAD opcode operand byte M cycle T states DAD REGISTER PAIR (HL,DE,BC) 1 3 10 Decimal adjust accumulator 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 is set, the instruction adds 6 to the low-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