SlideShare a Scribd company logo
MICROPROCESSOR 8085
LECTURE 7
INSTRUCTION SET-I
PROF. SANDIP DAS
INSTRUCTION CLASSIFICATION
• Data Transfer group
• Arithmetic group
• Logical group
• Branch group
• Stack, I/O and Machine Control group
DATA TRANSFER
GROUPMOV 𝑟1, 𝑟2 Move content of 𝑟2 to 𝑟1 T-states: 4 Flags affected: None M-
cycle-1
MOV r, M Move content of [H-L] to r T-states: 7 Flags affected: None M-
cycle-2
MOV M,r Move content of r to [H-L] T-states: 7 Flags affected: None M-
cycle-2
MVI r,data Move immediate data to register T-states: 7 Flags affected: None M-
cycle-2
MVI M,data Move immediate data to memory T-states: 10 Flags affected: None M-
cycle-3
LXI rp, data Load register pair immediate with T-states:10 Flags affected: None M-
cycle-3
16 bit data
Example: LXI H,2500H will load 16 bit data 2500H into H-L pair. In code form it is written
as 21,00,25, where
1st byte of the instruction 21 is the opcode for LXI H. The 2nd byte 00 is 8 LSBs of the data
loaded in L and 25 is the 3rd byte of the instruction which is 8 bit MSBs loaded in H.
LDA addr Load accumulator direct T-states: 13 Flags affected: None
M-cycle-4
SHLD addr Store H-L pair direct T-states: 16 Flags affected: None
M-cycle-5
Example: SHLD 2500 will store the content of L in memory location 2500H
and the content of H is stored in 2501H
LDAX rp Load accumulator indirect T-states: 7 Flags affected: none
M-cycle: 2
Example: LDAX B will load the content of the memory location, whose
address is in the B-C pair, into the accumulator. This instruction is used only for
B-C and D-E pairs.
STAX rp Store accumulator indirect T-states: 7 Flags affected: none
M-cycle: 2
Example: STAX D will store the content of the accumulator in the memory
location whose address is in the D-E pair. This instruction is used only for
B-C and D-E pairs.
XCHG Exchange the contents of T-states: 4 Flags affected: none
M-cycle: 1
DATA TRANSFER
GROUP
EXECUTION OF MVI
B,05H
T-states: 7, M-cycle: 2
• In T1-state, the high order address {10H} is placed
on the bus A15 ⇔ A8 and low-order address {00H}
on the bus AD7 ⇔ AD0 and ALE = 1.
• In T2 -state, the RD line goes low, and the data 06H
from memory location 1000H are placed on the
data bus. The fetch cycle becomes complete in T3-
state.The instruction is decoded in the T4-state.
• During T4-state, the contents of the bus are
unknown. With the change in the status signal, IO/
M = 0, S1 = 1 and S0 = 0, the
2nd machine cycle is identified as the memory read.
• The address is 1001H and the data byte [05H] is
fetched via the data bus. Both M1 and M2 perform
memory read operation, but the M1 is called op-
code fetch i.e., the 1st machine cycle of each
instruction is identified as the opcode
fetch cycle
EXECUTION TIME OF MVI B,05H
Execution time for MVI B,05H i.e., memory read machine cycle
and instruction cycle:
As we know, clock frequency of 8085 is 3.125 MHz
Time (T) for one clock is 1/3.125= 0.32µs
Time for memory read=3T=3*0.32µs=0.96µs
Total execution time= 7T= 7*0.32µs=2.24µs
ASSIGNMENT-2
MARKS-5
1. Write a program to get 05H in register A, then MOV it to
register B.
2. Write a program to load the content of the memory location
FC50H directly to the accumulator, then transfer it to register
B. The content of the memory location FC50H is 05.
SUBMISSION DATE: 26/07/17

More Related Content

PPTX
Sap 1
PPT
Register transfer and microoperations
PPTX
Register reference
PPT
PPTX
Register transfer and microoperations part 1
PPT
Bus and Memory transfer
PDF
REGISTER TRANSFER AND MICRO OPERATIONS
PDF
IMPLEMENTATION OF SDC - SDF ARCHITECTURE FOR RADIX-4 FFT
Sap 1
Register transfer and microoperations
Register reference
Register transfer and microoperations part 1
Bus and Memory transfer
REGISTER TRANSFER AND MICRO OPERATIONS
IMPLEMENTATION OF SDC - SDF ARCHITECTURE FOR RADIX-4 FFT

Similar to 4. 8085 instruction set i (20)

PPTX
5. 8085 instruction set ii
PPTX
7. 8085 instruction set iv
DOC
Unit iii microcontrollers final1
PPTX
Addressing mode & data transfer instruction of 8085
PDF
8085 Architecture
PPT
8085 paper-presentation
PDF
EE8551 mpmc unit 1 module 5
PDF
Unit 2 Instruction set.pdf
PPTX
student important knowledge on computer data .pptx
PPT
LEC 2-register transfer and register transfer language.ppt
PPT
8085_Microprocessor(simar).ppt
PPT
EC203DSD - Module 5 - 3.ppt
PPT
8085-paper-presentation.ppt
PPTX
SHLD and LHLD instruction
PPTX
9. 8085 instruction set v
PPT
microp-8085 74 instructions for mct-A :P-2
PPT
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
PPT
microp-8085 74 instructions for mct-A :P
PPT
8085 micro processor
PDF
Minimum and Maximum Modes of microprocessor 8086
5. 8085 instruction set ii
7. 8085 instruction set iv
Unit iii microcontrollers final1
Addressing mode & data transfer instruction of 8085
8085 Architecture
8085 paper-presentation
EE8551 mpmc unit 1 module 5
Unit 2 Instruction set.pdf
student important knowledge on computer data .pptx
LEC 2-register transfer and register transfer language.ppt
8085_Microprocessor(simar).ppt
EC203DSD - Module 5 - 3.ppt
8085-paper-presentation.ppt
SHLD and LHLD instruction
9. 8085 instruction set v
microp-8085 74 instructions for mct-A :P-2
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
microp-8085 74 instructions for mct-A :P
8085 micro processor
Minimum and Maximum Modes of microprocessor 8086
Ad

More from sandip das (20)

PPTX
31. 8086 addressing modes
PPTX
30. 8086 microprocessor pipelined architecture
PPTX
29. 8086 microprocessor pin diagram
PPTX
28. 8251 programmable communication interface
PPTX
27. 8259 programmable interrupt controller
PPTX
26. 8255 control word programming
PPTX
25. 8255 programmable peripheral interface
PPTX
24. direct memory access
PPTX
23. serial and parallel data communication
PPTX
22. interrupts ii
PPTX
21. interrupts
PPTX
20. io interfacing ii
PPTX
19. io interfacing i
PPTX
18. memory interfacing iv
PPTX
17. memory interfacing iii
PPTX
16. memory interfacing ii
PPTX
15. memory interfacing i
PPTX
14. 8085 programming example vi
PPTX
13. 8085 programming example v
PPTX
12. 8085 programming example iv
31. 8086 addressing modes
30. 8086 microprocessor pipelined architecture
29. 8086 microprocessor pin diagram
28. 8251 programmable communication interface
27. 8259 programmable interrupt controller
26. 8255 control word programming
25. 8255 programmable peripheral interface
24. direct memory access
23. serial and parallel data communication
22. interrupts ii
21. interrupts
20. io interfacing ii
19. io interfacing i
18. memory interfacing iv
17. memory interfacing iii
16. memory interfacing ii
15. memory interfacing i
14. 8085 programming example vi
13. 8085 programming example v
12. 8085 programming example iv
Ad

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
additive manufacturing of ss316l using mig welding
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Sustainable Sites - Green Building Construction
DOCX
573137875-Attendance-Management-System-original
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Welding lecture in detail for understanding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Construction Project Organization Group 2.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Digital Logic Computer Design lecture notes
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
additive manufacturing of ss316l using mig welding
R24 SURVEYING LAB MANUAL for civil enggi
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Sustainable Sites - Green Building Construction
573137875-Attendance-Management-System-original
Embodied AI: Ushering in the Next Era of Intelligent Systems
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Welding lecture in detail for understanding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Geodesy 1.pptx...............................................
Automation-in-Manufacturing-Chapter-Introduction.pdf
Construction Project Organization Group 2.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Digital Logic Computer Design lecture notes

4. 8085 instruction set i

  • 2. INSTRUCTION CLASSIFICATION • Data Transfer group • Arithmetic group • Logical group • Branch group • Stack, I/O and Machine Control group
  • 3. DATA TRANSFER GROUPMOV 𝑟1, 𝑟2 Move content of 𝑟2 to 𝑟1 T-states: 4 Flags affected: None M- cycle-1 MOV r, M Move content of [H-L] to r T-states: 7 Flags affected: None M- cycle-2 MOV M,r Move content of r to [H-L] T-states: 7 Flags affected: None M- cycle-2 MVI r,data Move immediate data to register T-states: 7 Flags affected: None M- cycle-2 MVI M,data Move immediate data to memory T-states: 10 Flags affected: None M- cycle-3 LXI rp, data Load register pair immediate with T-states:10 Flags affected: None M- cycle-3 16 bit data Example: LXI H,2500H will load 16 bit data 2500H into H-L pair. In code form it is written as 21,00,25, where 1st byte of the instruction 21 is the opcode for LXI H. The 2nd byte 00 is 8 LSBs of the data loaded in L and 25 is the 3rd byte of the instruction which is 8 bit MSBs loaded in H. LDA addr Load accumulator direct T-states: 13 Flags affected: None M-cycle-4
  • 4. SHLD addr Store H-L pair direct T-states: 16 Flags affected: None M-cycle-5 Example: SHLD 2500 will store the content of L in memory location 2500H and the content of H is stored in 2501H LDAX rp Load accumulator indirect T-states: 7 Flags affected: none M-cycle: 2 Example: LDAX B will load the content of the memory location, whose address is in the B-C pair, into the accumulator. This instruction is used only for B-C and D-E pairs. STAX rp Store accumulator indirect T-states: 7 Flags affected: none M-cycle: 2 Example: STAX D will store the content of the accumulator in the memory location whose address is in the D-E pair. This instruction is used only for B-C and D-E pairs. XCHG Exchange the contents of T-states: 4 Flags affected: none M-cycle: 1 DATA TRANSFER GROUP
  • 5. EXECUTION OF MVI B,05H T-states: 7, M-cycle: 2 • In T1-state, the high order address {10H} is placed on the bus A15 ⇔ A8 and low-order address {00H} on the bus AD7 ⇔ AD0 and ALE = 1. • In T2 -state, the RD line goes low, and the data 06H from memory location 1000H are placed on the data bus. The fetch cycle becomes complete in T3- state.The instruction is decoded in the T4-state. • During T4-state, the contents of the bus are unknown. With the change in the status signal, IO/ M = 0, S1 = 1 and S0 = 0, the 2nd machine cycle is identified as the memory read. • The address is 1001H and the data byte [05H] is fetched via the data bus. Both M1 and M2 perform memory read operation, but the M1 is called op- code fetch i.e., the 1st machine cycle of each instruction is identified as the opcode fetch cycle
  • 6. EXECUTION TIME OF MVI B,05H Execution time for MVI B,05H i.e., memory read machine cycle and instruction cycle: As we know, clock frequency of 8085 is 3.125 MHz Time (T) for one clock is 1/3.125= 0.32µs Time for memory read=3T=3*0.32µs=0.96µs Total execution time= 7T= 7*0.32µs=2.24µs
  • 7. ASSIGNMENT-2 MARKS-5 1. Write a program to get 05H in register A, then MOV it to register B. 2. Write a program to load the content of the memory location FC50H directly to the accumulator, then transfer it to register B. The content of the memory location FC50H is 05. SUBMISSION DATE: 26/07/17