SlideShare a Scribd company logo
B.RAMA PRABHA,
ASSISTANT PROFESSOR,
DEPARTMENT OF COMPUTER SCIENCE,
K.C.S.KASI NADAR COLLEGE OF ARTS & SCIENCE,
CHENNAI-21
INSTRUCTION
An instruction is a command to the microprocessor to
perform a given task on specified data. It may include
8-bit (or 16-bit) data, an internal register, a memory
location. The entire group of instructions that a
microprocessor supports is called Instruction Set.
OPCODE & OPERAND
Opcode is a part of the
instruction that tells the
processor what should be
done.
Operand is a part of the
instruction that contains
the data to be acted on, or
the memory location of
the data in a register
CLASSIFICATION OF INSTRUCTION BASED
ON WORD SIZE
The 8085 instruction set is classified into the following three
groups according to word size:
One-word or 1-byte instructions
Two-word or 2-byte instructions
Three-word or 3-byte instructions
ONE BYTE INSTRUCTION
 A 1-byte instruction includes the opcode and operand in the same byte.
Operand(s) are internal register and are coded into the instruction.
Mnemonic- ADD B
Task- Add the contents of accumulator to the contents of register B.
Opcode- ADD
Operand- B
Hex Code- 80H
Binary code- 1000 0000
TWO BYTE INSTRUCTIONS
In a two-byte instruction, the first byte specifies the operation code and
the second byte specifies the operand. Source operand is a data byte
immediately following the opcode. For example:
OPCODE
FIRST BYTE
SECOND BYTE
MVI A,Data
0011 1110(3E)
THREE BYTE INSTRUCTIONS
 In a three-byte instruction, the first byte specifies the opcode, and
the following two bytes specify the 16-bit address. Note that the
second byte is the low-order address and the third byte is the high-
order address.
Three byte instructions = opcode + data byte +
data byte
THREE BYTE INSTRUCTIONS
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 5 different types of addressing modes.
ADDRESSING MODES
 To perform any operation, we have to give the corresponding instructions to the
microprocessor.
 In each instruction, programmer has to specify 3 things:
1. Operation to be performed.
2. Address of source of data. MOV B,A
3. Address of destination of result.
 The method by which the address of source of data or the address of destination
of result is given in the instruction is called Addressing Modes.
 The term addressing mode refers to the way in which the operand of the
instruction is specified.
ADDRESSING MODES OF 8085
8085 uses the following addressing modes
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.
MVI is the operation.
 03 H is the immediate data (source).
B is the destination.
MVI B, 03H Move the data 03H 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.
MOV is the operation. B=08
B is the source of data. A=08
A is the destination.
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.
.
 LDA is the operation.
2500 H is the address of source.
 Accumulator is the destination.
LDA 2500H Load the data available in memory location 2500H in to
accumulator.
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.
MOV is the operation. HL-2085H
 M is the memory location specified by H-L register pair.
 A is the destination
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.
CMA is the operation.
 A is the source.
A is the destination.
CMA Complement the content of accumulator
instruction format and addressing modes
Ad

More Related Content

What's hot (20)

Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction Format
Dhrumil Panchal
 
Instruction Formats
Instruction FormatsInstruction Formats
Instruction Formats
RaaviKapoor
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
RAMESHBABUA3
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
Mahesh Kumar Attri
 
Instruction format
Instruction formatInstruction format
Instruction format
Sanjeev Patel
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
Nikhil Pandit
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
Anuj Modi
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
Sanjeev Patel
 
Addressing modes ppt
Addressing modes pptAddressing modes ppt
Addressing modes ppt
sanjay pachauri
 
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Mazin Alwaaly
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instruction
DeepikaT13
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
nishant upadhyay
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
Mazin Alwaaly
 
Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction Format
Dhrumil Panchal
 
Instruction Formats
Instruction FormatsInstruction Formats
Instruction Formats
RaaviKapoor
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
Nikhil Pandit
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
Anuj Modi
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
Sanjeev Patel
 
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Mazin Alwaaly
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instruction
DeepikaT13
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
Mazin Alwaaly
 

Similar to instruction format and addressing modes (20)

Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
pvg123456
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
talhashahid40
 
L-3microproceessors and microcontrollers.pdf
L-3microproceessors and microcontrollers.pdfL-3microproceessors and microcontrollers.pdf
L-3microproceessors and microcontrollers.pdf
23dec028
 
Microprocessor - unit 2-Addressing Modes of 8085
Microprocessor - unit 2-Addressing Modes of 8085Microprocessor - unit 2-Addressing Modes of 8085
Microprocessor - unit 2-Addressing Modes of 8085
solaiappans
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
Ambika Naik
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
ADDRESSING MODES OF 8085
ADDRESSING MODES OF 8085 ADDRESSING MODES OF 8085
ADDRESSING MODES OF 8085
LingalaSowjanya
 
8085 addressing modes
8085 addressing modes8085 addressing modes
8085 addressing modes
Vijay Kumar
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
Er. Nawaraj Bhandari
 
module 3 instruction set and control unit
module 3 instruction set and control unitmodule 3 instruction set and control unit
module 3 instruction set and control unit
sindhujam30
 
pptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptxpptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptx
AManiMaran1
 
Chapter 4 addressing mode in microprocessor.pptx
Chapter 4 addressing mode in microprocessor.pptxChapter 4 addressing mode in microprocessor.pptx
Chapter 4 addressing mode in microprocessor.pptx
Getnet Tigabie Askale -(GM)
 
3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx
MdAsaduzzaman257266
 
Cao
CaoCao
Cao
T101728801
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
ISMT College
 
Mc05.ppt
Mc05.pptMc05.ppt
Mc05.ppt
SENTHILKUMARR63
 
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
Chinmayee samal
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
TadeseBeyene
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
Dr. Pankaj Zope
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
neerajtcr1990
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
pvg123456
 
L-3microproceessors and microcontrollers.pdf
L-3microproceessors and microcontrollers.pdfL-3microproceessors and microcontrollers.pdf
L-3microproceessors and microcontrollers.pdf
23dec028
 
Microprocessor - unit 2-Addressing Modes of 8085
Microprocessor - unit 2-Addressing Modes of 8085Microprocessor - unit 2-Addressing Modes of 8085
Microprocessor - unit 2-Addressing Modes of 8085
solaiappans
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
ADDRESSING MODES OF 8085
ADDRESSING MODES OF 8085 ADDRESSING MODES OF 8085
ADDRESSING MODES OF 8085
LingalaSowjanya
 
8085 addressing modes
8085 addressing modes8085 addressing modes
8085 addressing modes
Vijay Kumar
 
module 3 instruction set and control unit
module 3 instruction set and control unitmodule 3 instruction set and control unit
module 3 instruction set and control unit
sindhujam30
 
pptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptxpptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptx
AManiMaran1
 
Chapter 4 addressing mode in microprocessor.pptx
Chapter 4 addressing mode in microprocessor.pptxChapter 4 addressing mode in microprocessor.pptx
Chapter 4 addressing mode in microprocessor.pptx
Getnet Tigabie Askale -(GM)
 
3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx
MdAsaduzzaman257266
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
ISMT College
 
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
Chinmayee samal
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
TadeseBeyene
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
Dr. Pankaj Zope
 
Ad

More from RamaPrabha24 (12)

Dynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessorDynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessor
RamaPrabha24
 
programming techniques
programming techniquesprogramming techniques
programming techniques
RamaPrabha24
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaion
RamaPrabha24
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS
RamaPrabha24
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORPINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSOR
RamaPrabha24
 
memory classification
memory classificationmemory classification
memory classification
RamaPrabha24
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
RamaPrabha24
 
Basic terms used in microprocessor
Basic terms used in microprocessorBasic terms used in microprocessor
Basic terms used in microprocessor
RamaPrabha24
 
Applets in Java
Applets in JavaApplets in Java
Applets in Java
RamaPrabha24
 
Dynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessorDynamic debugging in 8085 microprocessor
Dynamic debugging in 8085 microprocessor
RamaPrabha24
 
programming techniques
programming techniquesprogramming techniques
programming techniques
RamaPrabha24
 
instruction set and classificaion
instruction set and classificaioninstruction set and classificaion
instruction set and classificaion
RamaPrabha24
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS8085 DATA TRANSFER INSTRUCTIONS
8085 DATA TRANSFER INSTRUCTIONS
RamaPrabha24
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSORPINDIAGRAM OF 8085 MICROPROCESSOR
PINDIAGRAM OF 8085 MICROPROCESSOR
RamaPrabha24
 
memory classification
memory classificationmemory classification
memory classification
RamaPrabha24
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
RamaPrabha24
 
Basic terms used in microprocessor
Basic terms used in microprocessorBasic terms used in microprocessor
Basic terms used in microprocessor
RamaPrabha24
 
Ad

Recently uploaded (20)

Cultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptxCultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptx
UmeshTimilsina1
 
UPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guideUPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guide
abmerca
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Association for Project Management
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 
Cultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptxCultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptx
UmeshTimilsina1
 
UPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guideUPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guide
abmerca
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Association for Project Management
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 

instruction format and addressing modes

  • 1. B.RAMA PRABHA, ASSISTANT PROFESSOR, DEPARTMENT OF COMPUTER SCIENCE, K.C.S.KASI NADAR COLLEGE OF ARTS & SCIENCE, CHENNAI-21
  • 2. INSTRUCTION An instruction is a command to the microprocessor to perform a given task on specified data. It may include 8-bit (or 16-bit) data, an internal register, a memory location. The entire group of instructions that a microprocessor supports is called Instruction Set.
  • 3. OPCODE & OPERAND Opcode is a part of the instruction that tells the processor what should be done. Operand is a part of the instruction that contains the data to be acted on, or the memory location of the data in a register
  • 4. CLASSIFICATION OF INSTRUCTION BASED ON WORD SIZE The 8085 instruction set is classified into the following three groups according to word size: One-word or 1-byte instructions Two-word or 2-byte instructions Three-word or 3-byte instructions
  • 5. ONE BYTE INSTRUCTION  A 1-byte instruction includes the opcode and operand in the same byte. Operand(s) are internal register and are coded into the instruction. Mnemonic- ADD B Task- Add the contents of accumulator to the contents of register B. Opcode- ADD Operand- B Hex Code- 80H Binary code- 1000 0000
  • 6. TWO BYTE INSTRUCTIONS In a two-byte instruction, the first byte specifies the operation code and the second byte specifies the operand. Source operand is a data byte immediately following the opcode. For example: OPCODE FIRST BYTE SECOND BYTE MVI A,Data 0011 1110(3E)
  • 7. THREE BYTE INSTRUCTIONS  In a three-byte instruction, the first byte specifies the opcode, and the following two bytes specify the 16-bit address. Note that the second byte is the low-order address and the third byte is the high- order address. Three byte instructions = opcode + data byte + data byte
  • 9. 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 5 different types of addressing modes.
  • 10. ADDRESSING MODES  To perform any operation, we have to give the corresponding instructions to the microprocessor.  In each instruction, programmer has to specify 3 things: 1. Operation to be performed. 2. Address of source of data. MOV B,A 3. Address of destination of result.  The method by which the address of source of data or the address of destination of result is given in the instruction is called Addressing Modes.  The term addressing mode refers to the way in which the operand of the instruction is specified.
  • 11. ADDRESSING MODES OF 8085 8085 uses the following addressing modes 1. Immediate addressing mode 2. Register addressing mode 3. Direct addressing mode 4. Indirect addressing mode 5. Implicit addressing mode
  • 12. 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. MVI is the operation.  03 H is the immediate data (source). B is the destination. MVI B, 03H Move the data 03H to B register.
  • 13. 2. Register Addressing mode In register addressing mode, the instruction specifies the name of the register in which the data is available. MOV is the operation. B=08 B is the source of data. A=08 A is the destination. MOV A, B Move the content of B register to A register.
  • 14. 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. .  LDA is the operation. 2500 H is the address of source.  Accumulator is the destination. LDA 2500H Load the data available in memory location 2500H in to accumulator.
  • 15. 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. MOV is the operation. HL-2085H  M is the memory location specified by H-L register pair.  A is the destination MOV A, M The memory data addressed by H L pair is moved to A register.
  • 16. 5.Implicit addressing mode In implicit addressing mode, the instruction itself specifies the data to be operated. CMA is the operation.  A is the source. A is the destination. CMA Complement the content of accumulator
  翻译: