SlideShare a Scribd company logo
1 of 40
What is instruction?
An instruction is a binary pattern designed
inside a microprocessor to perform a specific
function.
 The entire group of instructions that a
microprocessor supports is called Instruction Set.
8085 has 246 instructions.
 Each instruction is represented by an 8-bit
binary value.
 These 8-bits of binary value is called Op-Code or
Instruction Byte.
2.According
to size
3.According to
operation
1.According
to
addressing
modes
What is addressing ?
Every instruction of a program has to
operate on a data.
The method of specifying the data to
be operated by the instruction is called
Addressing.
The 8085 has the following 5 different
types of addressing modes.
ADDRESSING MODES OF
8085
1.Immediate addressing mode
2.Register addressing mode
3.Direct addressing mode
4.Indirect addressing mode
5.Implicit addressing mode
1.Immediate addressing
mode
In this mode of addressing ,the
data is specified in the instruction
itself.
The data will be a part of the
program instruction.
EX. MVI B, 3EH - Move the data 3EH
given in the instruction to B register.
2. Register Addressing mode
In register addressing mode, the
instruction specifies the name of the
register in which the data is available.
EX. MOV A, B - Move the content of
B register to A register.
3.Direct addressing mode
In direct addressing mode, the address of
the data is specified in the instruction.
The data will be in memory. In this
addressing mode, the program instructions
and data can be stored in different memory.
EX. LDA 1050H - Load the data available in
memory location 1050H in to accumulator in
the instruction.
4.Indirect addressing mode
In indirect addressing mode, the
instruction specifies the name of the
register in which the address of the data is
available. Here the data will be in memory
and the address will be in the register pair.
EX. MOV A, M - The memory data
addressed by H L pair is moved to A
register.
5.Implicit addressing
mode
In implicit addressing mode, the
instruction itself specifies the data to be
operated.
EX. CMA - Complement the content of
accumulator; RAL
Instructions in terms of
byte size or word size
1.1-byte instruction
2.2-byte instruction
3.3-byte instruction
1.One byte instruction
A one byte instruction includes the
operand and the op-code in same byte.
These type of instructions occupy only
one memory location.
For example:
Op-code
MOV
ADD
CMA
Operand
C,A
B
--
2.Two byte instruction
A two byte instruction includes the op-code
and the 8-bit data or address.
This type of instruction occupies 2-memory
location.
For example:
Op-code
MVI
IN
Operand
A,O5
01
3.Three byte instruction
A 3-byte instruction includes the op-code and
16-bit address or data.
This type of instructions occupy three memory
location.
For example:
Op-code
LXI
STA
Operand
2050
2051
TYPES OF INSTRUCTION
SET
Data Transfer Instruction
Arithmetic Instructions
Logical Instructions
Branching Instructions
Control Instructions
These instructions move data between
registers, or between memory and
registers.
These instructions copy data from
source to destination.
While copying, the contents of source
are not modified.
Op-code
• MOV
• MOV
• MOV
• MVI
• LDA
• STA
• LDAX
• STAX
• LXI
• LHLD
Operand
• Rd,Rs
• R,M
• M,R
• R,8-bit data
• 16-bit address
• 16-bit address
• Rp
• Rp
• Rp,16-bit address
• 16-bit address
Op-code
•SHLD
•XCHG
•IN
•OUT
•PCHL
•XTHL
•SPHL
Operand
•16-bit address
•8-bit address
•8-bit address
These instructions perform the
operations like:
1. Addition
2. Subtract
3. Increment
4. Decrement
OPERATOR OPRAND DESCRIPTION
ADD R Add data of register with aacumulator
ADD M Add data of register with accumulator
ADC R Add data of register to accumulator with carry
ADC M Add data of memory to accumulator with carry
DAD Reg. pair Add register pair to H-L pair
SUB M Subtract data of memory with accumulator
OPERATOR OPERAND DESCRIPTION
SBB R Subtract data of register from accumulator
SBB M Subtract data of memory from accumulator
SBI 8 bit data Subtract immediate from accumulator with
borrow
INR R Increment in register by +1
DCR R Decrement in register by - 1
INX Rp Increment in register pair by +1
DCX Rp Decrement in register pair by -1
OPERATOR OPERAND DESCRIPTION
ADI 8 bit data Add immediate 8 bit data with
accumulator
ACI 8 bit data Add immediate 8bit data to
accumulator with carry
SUI 8 bit data Subtract immediate 8 bit data to
accumulator with carry
INR M Increment data of memory by +1
DCR M Decrement data of memory by -1
These instructions perform logical operations
on data stored in registers, memory and status
flags.
The logical operations are:
 AND
 OR
 XOR
 Rotate
 Compare
 Complement
OPERATOR OPERAND DESCRIPTION
ANA R Anding data of register with accumulator
ANA M Anding data of memory with accumulator
ANI 8 bit data Immediate anding of 8 bit data with
accumulator
ORA R Oring data of register with accumulator
ORA M Oring data of memory with accumulator
ORI 8 bit data Immediate Oring of 8 bit data with accumulator
XRA R Xoring data of register with accumulator
OPERATOR OPERAND DESCRIPTION
XRA M Xoring data of memory with accumulator
XRI 8 bit data Immediate xoring 8bit data with accumulator
CMP R Compare data of register to accumulator
CMP M Compare data of memory to accumulator
CPI 8 bit data Immediate compare 8 bit data to accumulator
CMA None Complement data of accumulator
CMC None Complement carry flag
OPERATOR OPERAND DESCRIPTION
RLC None Rotate accumulator left without carry
RAL None Rotate accumulator left with carry
RRC None Rotate accumulator right without carry
RAR None Rotate accumulator right with carry
The branching instruction alter the normal
sequential flow.
These instructions alter either unconditionally
or conditionally.
Op-code
• JMP
• Jx
• CALL
• Cx
• RET
• Rx
• RST
Operand
• 16-bit address
• 16-bit address
• 16-bit address
• 16-bit address
• None
• None
• 0-7
Description
• Jump unconditionally
• Jump conditionally
• call unconditionally
• Call conditionally
• Return unconditionally
• Call conditionally
• Restart (software interrupts)
Op-code
• JC
• JNC
• JP
• JM
• JZ
• JNZ
• JPE
• JPO
Description
• Jump if carry
• Jump if not carry
• Jump if positive
• Jump if minus
• Jump if zero
• Jump if not zero
• Jump if even parity
• Jump if odd parity
Flag status
• CY=1
• CY=0
• S=0
• S=1
• Z=1
• Z=0
• P=1
• P=0
Op-code
• CC
• CNC
• CP
• CM
• CZ
• CNZ
• CPE
• CPO
Description
• Call if carry
• Call if not carry
• Call if positive
• Call if minus
• Call if zero
• Call if not zero
• Call if even parity
• Call if odd parity
Flag status
• CY=1
• CY=0
• S=0
• S=1
• Z=1
• Z=0
• P=1
• P=0
Op-code
• RC
• RNC
• RP
• RM
• RZ
• RNZ
• RPE
• RPO
Description
• Return if carry
• Return if not carry
• Return if positive
• Return if minus
• Return if zero
• Return if not zero
• Return if even parity
• Return if odd parity
Flag status
• CY=1
• CY=0
• S=0
• S=1
• Z=1
• Z=0
• P=1
• P=0
Instructions
• RST0
• RST1
• RST2
• RST3
• RST4
• RST5
• RST6
• RST7
Address
• 0000H
• 0008H
• 0010H
• 0018H
• 0020H
• 0028H
• 0030H
• 0038H
The control instructions control
the operation of microprocessor.
OPERATOR OPERAND DESCRIPTION
LXI SP 16 bit address Load 16-bit address into stack pointer register
PUSH Rp Push data of reg. pair in stack
POP Rp Pop data of reg. pair from stack
PUSH PSW Push data of PSW(accumulator + flag) in stack
POP PSW Pop data of PSW(accumulator + flag) from stack
NOP None No operation perform
HLT None Waiting state
Op-code
• EI
• DI
• RIM
• SIM
Operand
• NONE
• NONE
• NONE
• NONE
Description
• Enable interrupt
• Disable interrupt
• Read interrupt mask
• Set interrupt mask
What is an instruction set
What is an instruction set

More Related Content

What's hot

8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor pptRJ Aniket
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086Dr. AISHWARYA N
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycleRani Rahul
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture pptParvesh Gautam
 
8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripherals8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripheralsamrutachintawar239
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontrollerSiva Kumar
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORSagar Kuntumal
 
RISC (reduced instruction set computer)
RISC (reduced instruction set computer)RISC (reduced instruction set computer)
RISC (reduced instruction set computer)LokmanArman
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 

What's hot (20)

Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
8253ppt
8253ppt8253ppt
8253ppt
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
 
8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripherals8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripherals
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
DATA TRANSFER SCHEMES OF 8085
DATA TRANSFER SCHEMES OF 8085DATA TRANSFER SCHEMES OF 8085
DATA TRANSFER SCHEMES OF 8085
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Instruction Set of 8051 Microcontroller
Instruction Set of 8051 MicrocontrollerInstruction Set of 8051 Microcontroller
Instruction Set of 8051 Microcontroller
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
 
RISC (reduced instruction set computer)
RISC (reduced instruction set computer)RISC (reduced instruction set computer)
RISC (reduced instruction set computer)
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 

Viewers also liked

Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085saleForce
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Chinmayee samal
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085shiji v r
 
Microprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersMicroprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersAbhijith Augustine
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorKashyap Shah
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction setSaumitra Rukmangad
 

Viewers also liked (9)

Computer basics
Computer basicsComputer basics
Computer basics
 
8085 instructions
8085 instructions8085 instructions
8085 instructions
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
Microprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersMicroprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answers
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 

Similar to What is an instruction set

microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTSssuser2b759d
 
8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).pptKanikaJindal9
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxpvg123456
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3Dr.Umadevi V
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01cairo university
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085Mani Afranzio
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdfHimanshuPant41
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)Nemish Bhojani
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructionscmkandemir
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollerchirag patil
 
(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)Alveena Saleem
 
Microcontroller instruction set
Microcontroller instruction setMicrocontroller instruction set
Microcontroller instruction setShail Modi
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptxSachinKupade
 

Similar to What is an instruction set (20)

module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTS
 
8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdf
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructions
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)
 
Microcontroller instruction set
Microcontroller instruction setMicrocontroller instruction set
Microcontroller instruction set
 
12 mt06ped008
12 mt06ped008 12 mt06ped008
12 mt06ped008
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptx
 

Recently uploaded

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

What is an instruction set

  • 1.
  • 2. What is instruction? An instruction is a binary pattern designed inside a microprocessor to perform a specific function.  The entire group of instructions that a microprocessor supports is called Instruction Set. 8085 has 246 instructions.  Each instruction is represented by an 8-bit binary value.  These 8-bits of binary value is called Op-Code or Instruction Byte.
  • 4.
  • 5. What is addressing ? Every instruction of a program has to operate on a data. The method of specifying the data to be operated by the instruction is called Addressing. The 8085 has the following 5 different types of addressing modes.
  • 6. ADDRESSING MODES OF 8085 1.Immediate addressing mode 2.Register addressing mode 3.Direct addressing mode 4.Indirect addressing mode 5.Implicit addressing mode
  • 7. 1.Immediate addressing mode In this mode of addressing ,the data is specified in the instruction itself. The data will be a part of the program instruction. EX. MVI B, 3EH - Move the data 3EH given in the instruction to B register.
  • 8. 2. Register Addressing mode In register addressing mode, the instruction specifies the name of the register in which the data is available. EX. MOV A, B - Move the content of B register to A register.
  • 9. 3.Direct addressing mode In direct addressing mode, the address of the data is specified in the instruction. The data will be in memory. In this addressing mode, the program instructions and data can be stored in different memory. EX. LDA 1050H - Load the data available in memory location 1050H in to accumulator in the instruction.
  • 10. 4.Indirect addressing mode In indirect addressing mode, the instruction specifies the name of the register in which the address of the data is available. Here the data will be in memory and the address will be in the register pair. EX. MOV A, M - The memory data addressed by H L pair is moved to A register.
  • 11. 5.Implicit addressing mode In implicit addressing mode, the instruction itself specifies the data to be operated. EX. CMA - Complement the content of accumulator; RAL
  • 12.
  • 13. Instructions in terms of byte size or word size 1.1-byte instruction 2.2-byte instruction 3.3-byte instruction
  • 14. 1.One byte instruction A one byte instruction includes the operand and the op-code in same byte. These type of instructions occupy only one memory location. For example: Op-code MOV ADD CMA Operand C,A B --
  • 15. 2.Two byte instruction A two byte instruction includes the op-code and the 8-bit data or address. This type of instruction occupies 2-memory location. For example: Op-code MVI IN Operand A,O5 01
  • 16. 3.Three byte instruction A 3-byte instruction includes the op-code and 16-bit address or data. This type of instructions occupy three memory location. For example: Op-code LXI STA Operand 2050 2051
  • 17.
  • 18. TYPES OF INSTRUCTION SET Data Transfer Instruction Arithmetic Instructions Logical Instructions Branching Instructions Control Instructions
  • 19. These instructions move data between registers, or between memory and registers. These instructions copy data from source to destination. While copying, the contents of source are not modified.
  • 20. Op-code • MOV • MOV • MOV • MVI • LDA • STA • LDAX • STAX • LXI • LHLD Operand • Rd,Rs • R,M • M,R • R,8-bit data • 16-bit address • 16-bit address • Rp • Rp • Rp,16-bit address • 16-bit address
  • 22. These instructions perform the operations like: 1. Addition 2. Subtract 3. Increment 4. Decrement
  • 23. OPERATOR OPRAND DESCRIPTION ADD R Add data of register with aacumulator ADD M Add data of register with accumulator ADC R Add data of register to accumulator with carry ADC M Add data of memory to accumulator with carry DAD Reg. pair Add register pair to H-L pair SUB M Subtract data of memory with accumulator
  • 24. OPERATOR OPERAND DESCRIPTION SBB R Subtract data of register from accumulator SBB M Subtract data of memory from accumulator SBI 8 bit data Subtract immediate from accumulator with borrow INR R Increment in register by +1 DCR R Decrement in register by - 1 INX Rp Increment in register pair by +1 DCX Rp Decrement in register pair by -1
  • 25. OPERATOR OPERAND DESCRIPTION ADI 8 bit data Add immediate 8 bit data with accumulator ACI 8 bit data Add immediate 8bit data to accumulator with carry SUI 8 bit data Subtract immediate 8 bit data to accumulator with carry INR M Increment data of memory by +1 DCR M Decrement data of memory by -1
  • 26. These instructions perform logical operations on data stored in registers, memory and status flags. The logical operations are:  AND  OR  XOR  Rotate  Compare  Complement
  • 27. OPERATOR OPERAND DESCRIPTION ANA R Anding data of register with accumulator ANA M Anding data of memory with accumulator ANI 8 bit data Immediate anding of 8 bit data with accumulator ORA R Oring data of register with accumulator ORA M Oring data of memory with accumulator ORI 8 bit data Immediate Oring of 8 bit data with accumulator XRA R Xoring data of register with accumulator
  • 28. OPERATOR OPERAND DESCRIPTION XRA M Xoring data of memory with accumulator XRI 8 bit data Immediate xoring 8bit data with accumulator CMP R Compare data of register to accumulator CMP M Compare data of memory to accumulator CPI 8 bit data Immediate compare 8 bit data to accumulator CMA None Complement data of accumulator CMC None Complement carry flag
  • 29. OPERATOR OPERAND DESCRIPTION RLC None Rotate accumulator left without carry RAL None Rotate accumulator left with carry RRC None Rotate accumulator right without carry RAR None Rotate accumulator right with carry
  • 30. The branching instruction alter the normal sequential flow. These instructions alter either unconditionally or conditionally.
  • 31. Op-code • JMP • Jx • CALL • Cx • RET • Rx • RST Operand • 16-bit address • 16-bit address • 16-bit address • 16-bit address • None • None • 0-7 Description • Jump unconditionally • Jump conditionally • call unconditionally • Call conditionally • Return unconditionally • Call conditionally • Restart (software interrupts)
  • 32. Op-code • JC • JNC • JP • JM • JZ • JNZ • JPE • JPO Description • Jump if carry • Jump if not carry • Jump if positive • Jump if minus • Jump if zero • Jump if not zero • Jump if even parity • Jump if odd parity Flag status • CY=1 • CY=0 • S=0 • S=1 • Z=1 • Z=0 • P=1 • P=0
  • 33. Op-code • CC • CNC • CP • CM • CZ • CNZ • CPE • CPO Description • Call if carry • Call if not carry • Call if positive • Call if minus • Call if zero • Call if not zero • Call if even parity • Call if odd parity Flag status • CY=1 • CY=0 • S=0 • S=1 • Z=1 • Z=0 • P=1 • P=0
  • 34. Op-code • RC • RNC • RP • RM • RZ • RNZ • RPE • RPO Description • Return if carry • Return if not carry • Return if positive • Return if minus • Return if zero • Return if not zero • Return if even parity • Return if odd parity Flag status • CY=1 • CY=0 • S=0 • S=1 • Z=1 • Z=0 • P=1 • P=0
  • 35. Instructions • RST0 • RST1 • RST2 • RST3 • RST4 • RST5 • RST6 • RST7 Address • 0000H • 0008H • 0010H • 0018H • 0020H • 0028H • 0030H • 0038H
  • 36. The control instructions control the operation of microprocessor.
  • 37. OPERATOR OPERAND DESCRIPTION LXI SP 16 bit address Load 16-bit address into stack pointer register PUSH Rp Push data of reg. pair in stack POP Rp Pop data of reg. pair from stack PUSH PSW Push data of PSW(accumulator + flag) in stack POP PSW Pop data of PSW(accumulator + flag) from stack NOP None No operation perform HLT None Waiting state
  • 38. Op-code • EI • DI • RIM • SIM Operand • NONE • NONE • NONE • NONE Description • Enable interrupt • Disable interrupt • Read interrupt mask • Set interrupt mask