SlideShare a Scribd company logo
1 of 40
Download to read offline
Pin diagram 8085a
MVI A, 80H2 byte
MVI B, 76H
Hex code45H, 80H
46,76
Store in memory
0000H 45H
0001H 80H
0002H 46H
0003H 76H
0004H
Addressing modes of 8085
Various ways of specifying the operands in the instruction
are called addressing modes. 8085 supports five different
types of Addressing mode.
MVI A, 80H
1.Register Addressing mode: instructions in which
operand is moving from register to register are called
register addressing mode.
Ex: MOV A, B
BA data move from B to A
Ex: ADD C, ADD B, ADD H
A+CA
If we want to add B & C
MOV A, B
ADD C
2.Immediate Addressing mode: when operand is given
in the instruction directly, then the instruction is a
example of Immediate Addressing mode.
MVI A, 75H=2 byte
MVI C, 45H
MVI H, 7AH
rp register pair (B, D, H).
LXI rp, 16 bit data
Ex: LXI B, 45ACH=3 byte
B=45H, C=ACH
3.Direct Addressing mode: When the address of the
operand is given in the instruction directly then in
that instruction Direct Addressing mode is used.
0014H 45H
054CH 96H
2200H 6BH
LDA 0014H
MOV B, A
A=45H
4.Indirect Addressing mode: When the address of the
operand is given in the instruction indirectly then in
that instruction indirect Addressing mode is used.
Assume reg B=05H & reg C=4CH
MVI r, 8bit data
MOV rd, rs
LDAX rp
LDAX B
Register pair BC=054CHdata96H
A=96H
5.Implied Addressing mode: In instructions where
operand is available in the opcode, then those
instructions are the example of Implied Addressing
mode.
Ex. CMAcomplement accumulator
A=7CH0111 1100
1000 0011
Data Transfer operations (MOV, MVI, OUT, IN)
1.Byte=? (1, 2, 3)
2.Machine cycle used in an instruction=? (1, 2, 3, 4,
5)no. of operations performed by microprocessor
3.T-states used in an instruction=? (4, 7, 10, 13, 16)
In some special cases T states will be (6, 18)
Userwrite in assemblyconvert into hex
codestore in memory
Microprocessor taskfetchdecodeexecute
Operation T-states used
OF 4, 6(in some special case)
MR 3
MW 3
IOR 3
IOW 3
OF, MR, MR, MWTstates13
r= A, B, C, D, E, H, L, M
Data Transfer operations (MOV, MVI, IN, OUT)
1.MOV rd, rs
ASSUME (B=45H, C=A1H)
Ex: MOV B, C (CB)
B= A1H, C=A1H
BYTE: 1
M/C: 1 (OF)
T: 4
HA
MOV A, H (register addressing mode is used)
2.MVI r, 8-bit data
B=45H
MVI B, 45H
BYTE: 2
M/C: 2(OF, MR)
T: 7
3.IN 8-bit address
EX: IN 80H
BYTE: 2
M/C: 3 (OF, MR, IOR)
T: 10
4.OUT 8-bit address
OUT 7CH
BYTE: 2
M/C: 3 (OF, MR, IOW)
T: 10
Machine control operation:
1.HLT:1 byte, M/c=1, T=5
2.NOP: no operation: 1 byte, M/c=1, T=4
0001 45
0002 46
0003 NOP
0004 45
0005 12
0006 45
Arithmetic operations: ADD, ADI, SUB, SUI,
INR, DCR
1.ADD r: if we want to add the data of A & B
ADD B (A+BA)
if we want to add the data of A & H
ADD H (A+HA)
Byte: 1
M/C:1
T:4
Flags affected: S, Z, AC, P, CY
EX: assume we have two data 4C & 2D, add these
data & store the result in reg H.
Program:
MVI A, 2DH
MVI B, 4CH
ADD B
MOV H, A
HLT
Ex2: Read from (1st
input device) 80H & (2nd
input
device) 81H, then add both the data & display the
result into output device (45H).
Program:
IN 80H
MOV B, A
IN 81H
ADD B
OUT 45H
HLT
2.ADI 8-bit data
Ex: ADI 76H
(A+ 76HA)
Byte: 2
M/C: 2
T: 7
Flags affected: S, Z, AC, P, CY
3.SUB r: (A-rA)
EX: A-C
SUB C
Byte: 1
M/C: 1
T: 4
Flags affected: S, Z, AC, P, CY
4.SUI 8 bit data
ASSUME A=4A
SUI 12H
4A-12A
Byte: 2
M/C: 2
T: 7
Flags affected: S, Z, AC, P, CY
5.INR r
EX: H=4DH
INR H
H=4EH
Byte: 1
M/C: 1
T: 4
Flags affected: S, Z, AC, P
CY will not affected by INR
A=FFH
INR A
FF+1
6.DCR r
B=8AH
DCR B
B=89H
Byte: 1
M/C: 1
T: 4
Flags affected: S, Z, AC, P
CY will not affected by DCR
Logical instructions
Logic Operations (ANA, ANI, ORA, ORI, XRA, XRI)
1. ANA r
ANA B (logical AND operation between A, result goes
to A)
Ex: A=48H, B=A6H
ANA B
A=00H
B=A6H
Flags:
Byte: 1
M/C: 1
T: 4
ANI 8-bit data
ANI 7FH
Byte: 2
M/C: 2
T: 7
ORA r
Byte: 1
M/C: 1
T: 4
ORI 8 bit data
Byte: 2
M/C: 2
T: 7
XRA r
Byte: 1
M/C: 1
T: 4
XRI 8 bit data
Byte: 2
M/C: 2
T: 7
Programs
MOV, MVI, IN, OUT
ADD, ADI, SUB, SUI, INR, DCR
ANA, ANI, ORA, ORI, XRA, XRI
PROG1: B=7CH, D=56H add these data & store the result in reg H.
MOV A, B
ADD D
MOV H, A
HLT
PROG2: READ DATA FROM INPUT DEVICE 80H & 81H, LOGICAL
OR BOTH THE DATA & DISPLAY THE RESULT AT OUTPUT 83H.
PORG3: SWAP THE DATA OF REG H & L.
Branch operation (JMP, CALL, RESTART)
Prog: wap to logically XOR the input data 4DH &
2CH. Show the result in output of address 83H. Also
show the status of flags.
Prog: wap to subtract to 8 bit numbers stored in
B=ACH & C=69H. Store the result in reg E. Also show
the status of flags.
ACH1010 1100
69H 0110 1001
CALL instruction:
CALL 16 bit address
JMP 2000H (PC=2000H)
CALL 2000H(PC=2000H)
We jump to subroutine with a CALL instruction.
Subroutine: is a group of instructions written separately
from the main program.
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner

More Related Content

What's hot

Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085saleForce
 
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
 
Instruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil KawareInstruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil KawareProf. Swapnil V. Kaware
 
8085 instruction set (detailed)
8085 instruction set (detailed)8085 instruction set (detailed)
8085 instruction set (detailed)Ravi Anand
 
Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Olly_March
 
Instruction set of 8085 microprocessor
Instruction set of 8085 microprocessorInstruction set of 8085 microprocessor
Instruction set of 8085 microprocessorRahul Sahu
 
Data transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorData transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorvishalgohel12195
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2Apar Pramod
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085varun sukheja
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085shiji v r
 
MICROPROCESSOR INSTRUCTION SET OF 8085
MICROPROCESSOR INSTRUCTION SET OF 8085MICROPROCESSOR INSTRUCTION SET OF 8085
MICROPROCESSOR INSTRUCTION SET OF 8085Sumadeep Juvvalapalem
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085vishalgohel12195
 

What's hot (17)

Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
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
 
Instruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil KawareInstruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil Kaware
 
8085 instruction set (detailed)
8085 instruction set (detailed)8085 instruction set (detailed)
8085 instruction set (detailed)
 
Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Ecet 330 final exam new 2016
Ecet 330 final exam new 2016
 
Instruction set of 8085 microprocessor
Instruction set of 8085 microprocessorInstruction set of 8085 microprocessor
Instruction set of 8085 microprocessor
 
Data transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorData transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processor
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
MICROPROCESSOR INSTRUCTION SET OF 8085
MICROPROCESSOR INSTRUCTION SET OF 8085MICROPROCESSOR INSTRUCTION SET OF 8085
MICROPROCESSOR INSTRUCTION SET OF 8085
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085
 
Intel 8085 mp
Intel 8085 mpIntel 8085 mp
Intel 8085 mp
 
8085 assembly language programming
8085 assembly language programming8085 assembly language programming
8085 assembly language programming
 

Similar to Unit 2 Complete Notes.pdf

INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSSwapnil Mishra
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Shubham Singh
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :PJathin Kanumuri
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2Jathin Kanumuri
 
8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).pptKanikaJindal9
 
Microprocessor Part 3
Microprocessor    Part  3Microprocessor    Part  3
Microprocessor Part 3Sajan Agrawal
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdfHimanshuPant41
 
The 8051 assembly language
The 8051 assembly languageThe 8051 assembly language
The 8051 assembly languagehemant meena
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructionscmkandemir
 
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02Yazeed Khalid
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 

Similar to Unit 2 Complete Notes.pdf (20)

8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :P
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2
 
8085 micro processor
8085 micro processor8085 micro processor
8085 micro processor
 
8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt8085_Microprocessor(simar).ppt
8085_Microprocessor(simar).ppt
 
Microprocessor Part 3
Microprocessor    Part  3Microprocessor    Part  3
Microprocessor Part 3
 
8085-paper-presentation.ppt
8085-paper-presentation.ppt8085-paper-presentation.ppt
8085-paper-presentation.ppt
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdf
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
The 8051 assembly language
The 8051 assembly languageThe 8051 assembly language
The 8051 assembly language
 
addressing-mode-of-8051.pdf
addressing-mode-of-8051.pdfaddressing-mode-of-8051.pdf
addressing-mode-of-8051.pdf
 
8085 instruction-set part 1
8085 instruction-set part 18085 instruction-set part 1
8085 instruction-set part 1
 
Lec03
Lec03Lec03
Lec03
 
Microprocessor 11el01
Microprocessor 11el01Microprocessor 11el01
Microprocessor 11el01
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 

Recently uploaded

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesRashidFaridChishti
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information SystemsAnge Felix NSANZIYERA
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...manju garg
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessorAshwiniTodkar4
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxhublikarsn
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...ronahami
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementDr. Deepak Mudgal
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdfKamal Acharya
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptAfnanAhmad53
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 

Recently uploaded (20)

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 

Unit 2 Complete Notes.pdf

  • 1. Pin diagram 8085a MVI A, 80H2 byte MVI B, 76H Hex code45H, 80H 46,76 Store in memory 0000H 45H 0001H 80H 0002H 46H 0003H 76H
  • 3. Various ways of specifying the operands in the instruction are called addressing modes. 8085 supports five different types of Addressing mode. MVI A, 80H 1.Register Addressing mode: instructions in which operand is moving from register to register are called register addressing mode. Ex: MOV A, B BA data move from B to A Ex: ADD C, ADD B, ADD H A+CA If we want to add B & C MOV A, B ADD C 2.Immediate Addressing mode: when operand is given in the instruction directly, then the instruction is a example of Immediate Addressing mode. MVI A, 75H=2 byte
  • 4. MVI C, 45H MVI H, 7AH rp register pair (B, D, H). LXI rp, 16 bit data Ex: LXI B, 45ACH=3 byte B=45H, C=ACH 3.Direct Addressing mode: When the address of the operand is given in the instruction directly then in that instruction Direct Addressing mode is used. 0014H 45H 054CH 96H 2200H 6BH LDA 0014H MOV B, A A=45H 4.Indirect Addressing mode: When the address of the operand is given in the instruction indirectly then in that instruction indirect Addressing mode is used. Assume reg B=05H & reg C=4CH MVI r, 8bit data MOV rd, rs LDAX rp LDAX B Register pair BC=054CHdata96H
  • 5. A=96H 5.Implied Addressing mode: In instructions where operand is available in the opcode, then those instructions are the example of Implied Addressing mode. Ex. CMAcomplement accumulator A=7CH0111 1100 1000 0011 Data Transfer operations (MOV, MVI, OUT, IN) 1.Byte=? (1, 2, 3) 2.Machine cycle used in an instruction=? (1, 2, 3, 4, 5)no. of operations performed by microprocessor 3.T-states used in an instruction=? (4, 7, 10, 13, 16) In some special cases T states will be (6, 18) Userwrite in assemblyconvert into hex codestore in memory Microprocessor taskfetchdecodeexecute Operation T-states used OF 4, 6(in some special case) MR 3 MW 3 IOR 3 IOW 3
  • 6. OF, MR, MR, MWTstates13 r= A, B, C, D, E, H, L, M Data Transfer operations (MOV, MVI, IN, OUT) 1.MOV rd, rs ASSUME (B=45H, C=A1H) Ex: MOV B, C (CB) B= A1H, C=A1H BYTE: 1 M/C: 1 (OF) T: 4 HA MOV A, H (register addressing mode is used) 2.MVI r, 8-bit data B=45H MVI B, 45H BYTE: 2
  • 7. M/C: 2(OF, MR) T: 7 3.IN 8-bit address EX: IN 80H BYTE: 2 M/C: 3 (OF, MR, IOR) T: 10 4.OUT 8-bit address OUT 7CH BYTE: 2 M/C: 3 (OF, MR, IOW) T: 10
  • 8. Machine control operation: 1.HLT:1 byte, M/c=1, T=5 2.NOP: no operation: 1 byte, M/c=1, T=4 0001 45 0002 46 0003 NOP 0004 45 0005 12 0006 45 Arithmetic operations: ADD, ADI, SUB, SUI, INR, DCR 1.ADD r: if we want to add the data of A & B ADD B (A+BA) if we want to add the data of A & H ADD H (A+HA) Byte: 1 M/C:1 T:4 Flags affected: S, Z, AC, P, CY
  • 9. EX: assume we have two data 4C & 2D, add these data & store the result in reg H. Program: MVI A, 2DH MVI B, 4CH ADD B MOV H, A HLT Ex2: Read from (1st input device) 80H & (2nd input device) 81H, then add both the data & display the result into output device (45H). Program: IN 80H MOV B, A IN 81H ADD B OUT 45H HLT 2.ADI 8-bit data Ex: ADI 76H (A+ 76HA) Byte: 2 M/C: 2 T: 7 Flags affected: S, Z, AC, P, CY
  • 10. 3.SUB r: (A-rA) EX: A-C SUB C Byte: 1 M/C: 1 T: 4 Flags affected: S, Z, AC, P, CY 4.SUI 8 bit data ASSUME A=4A SUI 12H 4A-12A Byte: 2 M/C: 2 T: 7 Flags affected: S, Z, AC, P, CY 5.INR r EX: H=4DH
  • 11. INR H H=4EH Byte: 1 M/C: 1 T: 4 Flags affected: S, Z, AC, P CY will not affected by INR A=FFH INR A FF+1 6.DCR r B=8AH DCR B B=89H Byte: 1 M/C: 1
  • 12. T: 4 Flags affected: S, Z, AC, P CY will not affected by DCR Logical instructions Logic Operations (ANA, ANI, ORA, ORI, XRA, XRI) 1. ANA r ANA B (logical AND operation between A, result goes to A) Ex: A=48H, B=A6H ANA B A=00H B=A6H Flags:
  • 13. Byte: 1 M/C: 1 T: 4 ANI 8-bit data ANI 7FH Byte: 2 M/C: 2 T: 7 ORA r
  • 14. Byte: 1 M/C: 1 T: 4 ORI 8 bit data Byte: 2 M/C: 2 T: 7 XRA r Byte: 1 M/C: 1 T: 4
  • 15. XRI 8 bit data Byte: 2 M/C: 2 T: 7 Programs MOV, MVI, IN, OUT ADD, ADI, SUB, SUI, INR, DCR ANA, ANI, ORA, ORI, XRA, XRI PROG1: B=7CH, D=56H add these data & store the result in reg H. MOV A, B ADD D MOV H, A HLT PROG2: READ DATA FROM INPUT DEVICE 80H & 81H, LOGICAL OR BOTH THE DATA & DISPLAY THE RESULT AT OUTPUT 83H. PORG3: SWAP THE DATA OF REG H & L. Branch operation (JMP, CALL, RESTART)
  • 16. Prog: wap to logically XOR the input data 4DH & 2CH. Show the result in output of address 83H. Also show the status of flags. Prog: wap to subtract to 8 bit numbers stored in B=ACH & C=69H. Store the result in reg E. Also show the status of flags. ACH1010 1100 69H 0110 1001 CALL instruction: CALL 16 bit address JMP 2000H (PC=2000H) CALL 2000H(PC=2000H) We jump to subroutine with a CALL instruction. Subroutine: is a group of instructions written separately from the main program.
  • 17.