SlideShare a Scribd company logo
FOR B.TECH (ECE) 3RD YEAR STUDENTS (HELPFUL IN UPTU/GBTU EXAM)
(MICROPROCESSOR)
BY
ER. ANUPAM KUMAR (anupamkumarmtec@gmail.com)
ELECTRONICS & COMMUNICATION ENGINEERING
ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT, VARANASI, UTTAR
PRADESH, INDIA

SOME ADVANCED INSTRUCTIONS OF THE 8085
MICROPROCESSORS

ADVANCE INSTRUCTIONS FOR 16-BIT DATA/ADDRESS
TRANSFER
1.1 LHLD16-bit address
; load HL register pair
 For example- Assume HL contains 3F90H i.e. H=3FH and L=90H. 2030H and
2031H memory locations contain are AFH & 24H respectively.
 No flags are modified.
1.2 SHLD16-bit address
; Store HL register pair
 This instructions works just reverse to the LHLD.
 For example- Assume HL contains 3F90H i.e. H=3FH & L=90H.The memory
location 2030H contains AFH & 24His contains of 2031H.
 No flags are modified.
1.3 XCHG- Exchange the contents of HL register pair is 3F90H and contains of DE is
929FH.
 Instruction Cycle-Op-code fetch machine cycle only.
 No flags are modified.
2.2 ADVANCED INSTRUCTIONS RELATED TO THE 8085 16BIT REGISTERS

2.1 SPHL none ;the contents of HL register pair copies into stack pointer(SP):SP HL
 The contents is copied in same manner into stack pointer(sp) as in HL register
pair i.e. the contents of H AND L registers copied into higher byte & lower byte
of stack pointer(SP) respectively.
 No flags are modified.
2.2 XTHL none; this instructions exchange the top (pointed by SP) contents of stack
memory with the contents of HL register pair.
 The contents of stack memory location pointed by stack pointer, exchange with
the contents of L register & the contents of next memory location with the
contents of H register.
 However, after execution of this instruction the contents or position of Stack
Pointer (SP) remain same as before.
For example-Assume the contents of SP is 2FFEH, HL=203FH i.e. H=20H & L=3FH
and the contents of memory locations 2FFEH hold 72H and 2FFFH contains AFH.
SP

2FFE
2FFF
3000

72
AF

XTHL; after execution of this instruction the contents of HL is AF72H (H=AFH and
L=72H), the contents of stack pointer SP is remains as before i.e. SP=2FFEH and the
contents of memory location 2FFEH is 3FH and 2FFFH contains 20H.
 Instruction cycle: Op-code fetch, two consecutive memory read, and two
consecutive memory write machine cycles.
 No flags are modified.
2.3 PCHL none; data of HL register pair transfer to the Program Counter (PC):
PC HL
 The contents is copied in same manner into Program Counter (PC) as in HL
register pair i.e. H into higher-order byte and L into low-order byte of Program
Counter (PC).
 Instruction Cycle: Op-code fetch (takes 6-T States) machine cycle only.
 No flags are modified.
For Example: W.A.A.P. to transfer program control/execution without using
JMP or CALL instructions.
Assume program execution starts from 2000H program memory location and we
want to execute program/instructions from 3000H.
ORG 2000H
2000H

LXI H, 3000H

; HL=3000H

2003
PCHL
; after execution of this one-byte instruction PC hold
3000H and execution transfer to location 3000H
2004H

MVI A, 1FH

; not executed

…….
3000H

MVI A, 1FH

; Program execution starts from here i.e. A=1FH

3002H HLT

10.3 ADVANCE INSTRUCTION FOR ARITHMETIC
OPERATIONS





ACI- ADD IMMEDIATE TO A WITH CARRY
ADC- ADD REGISTER/MEMORY TO A WITH CARRY
SBB- SUBTRACT REGISTER/MEMORY WITH BORROW FROM A
SBI- SUBTRACT IMMEDIATE WITH BORROW FROM A
 Another advanced instructions in this group DAD (add register pair to HL
register pair) which is related to 16-bit register pair.

DAD Reg. pair/SP
Pointer.

; Double Addition (in sense of 16-bit) of HL register pair or Stack

 The default operand of this instruction is HL register pair i.e. to the register pair (BC, DE,
HL or SP) is added to the contents of the HL register pair and the result/sum is saved in
the HL register pair.
 Only carry flag is affected by this instruction i.e. if the sum is larger than 16-bits the carry
flag is set. The contents of the source register pair are not altered.
Example:
DAD H

; add the contents of reg. pair itself or multiply by 2.

 Instruction cycle: Op-code fetches Bus Idle and Bus Idle machine cycles.
 Flags: no flags are modified except Carry.

PROGRAM: Add two 16-bit numbers.
LHLD 4000H

; Get first 16-bit number

XCHG

; Save first 16-bit number in DE

LHLD 4002H

; Get second 16-bit number in HL

DAD D

; Add DE and HL

SHLD 4004H
locations 4004H and 4005H
HLT

; Store 16-bit result in memory

; Terminate program execution

More Related Content

What's hot

Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
Diponkor Bala
 
PIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC InterfacingPIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC Interfacing
International Institute of Information Technology (I²IT)
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
Memory_Interface.pdf
Memory_Interface.pdfMemory_Interface.pdf
Memory_Interface.pdf
MuhammadWaseem241481
 
Stack
StackStack
Question Bank microcontroller 8051
Question Bank microcontroller 8051Question Bank microcontroller 8051
Question Bank microcontroller 8051
Nilesh Bhaskarrao Bahadure
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
Aniket Bhute
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructions
Mahesh Kumar Attri
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
mahesh kumar prajapat
 
Chapter 6 hardware structure of 8086
Chapter 6  hardware structure of 8086Chapter 6  hardware structure of 8086
Chapter 6 hardware structure of 8086
SHREEHARI WADAWADAGI
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Mazin Alwaaly
 
Sap 1
Sap 1Sap 1
Register Reference Instructions | Computer Science
Register Reference Instructions | Computer ScienceRegister Reference Instructions | Computer Science
Register Reference Instructions | Computer Science
Transweb Global Inc
 
8085 instruction set
8085 instruction set8085 instruction set
Addressing modes
Addressing modesAddressing modes
Addressing modes
Mahesh Kumar Attri
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
Deepak Sharma
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
AJAL A J
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
ShivamSood22
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
Prof. Swapnil V. Kaware
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
ATTO RATHORE
 

What's hot (20)

Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 
PIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC InterfacingPIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC Interfacing
 
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSORLOGICAL OPERATIONS IN 8085 MICROPROCESSOR
LOGICAL OPERATIONS IN 8085 MICROPROCESSOR
 
Memory_Interface.pdf
Memory_Interface.pdfMemory_Interface.pdf
Memory_Interface.pdf
 
Stack
StackStack
Stack
 
Question Bank microcontroller 8051
Question Bank microcontroller 8051Question Bank microcontroller 8051
Question Bank microcontroller 8051
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructions
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
 
Chapter 6 hardware structure of 8086
Chapter 6  hardware structure of 8086Chapter 6  hardware structure of 8086
Chapter 6 hardware structure of 8086
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
Sap 1
Sap 1Sap 1
Sap 1
 
Register Reference Instructions | Computer Science
Register Reference Instructions | Computer ScienceRegister Reference Instructions | Computer Science
Register Reference Instructions | Computer Science
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 

Viewers also liked

8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
Parvesh Gautam
 
8085 microprocessor notes
8085 microprocessor notes8085 microprocessor notes
8085 microprocessor notes
Prof. Dr. K. Adisesha
 
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
Prof. Swapnil V. Kaware
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
Sabin Gautam
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
List of 8085 programs
List of 8085 programsList of 8085 programs

Viewers also liked (6)

8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
 
8085 microprocessor notes
8085 microprocessor notes8085 microprocessor notes
8085 microprocessor notes
 
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
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 

Similar to Some advanced instructions of the 8085 microprocessors

UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
ssuser47c811
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
JLoknathDora
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
Vijay Kumar
 
Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)
AmitPaliwal20
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
Shubham Singh
 
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
Swapnil Mishra
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085
venkateshkannat
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
saleForce
 
Microprocessor Basics CH-3
Microprocessor Basics CH-3Microprocessor Basics CH-3
Microprocessor Basics CH-3
Neelam Kapoor
 
T imingdiagram
T imingdiagramT imingdiagram
T imingdiagram
puja00
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
ISMT College
 
Lecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of InstructionsLecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of Instructions
Zeeshan Ahmed
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIR
THEE CAVE
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
ssuserb448e2
 
instruction-set-of-8086-mr-binu-joy3.ppt
instruction-set-of-8086-mr-binu-joy3.pptinstruction-set-of-8086-mr-binu-joy3.ppt
instruction-set-of-8086-mr-binu-joy3.ppt
ssuser2b759d
 
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
Jathin Kanumuri
 
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
Saumitra Rukmangad
 
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
Jathin Kanumuri
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
Stefan Oprea
 
03 addr mode & instructions
03 addr mode & instructions03 addr mode & instructions
03 addr mode & instructions
ShubhamBakshi14
 

Similar to Some advanced instructions of the 8085 microprocessors (20)

UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONSINTEL 8085 DATA FORMAT AND INSTRUCTIONS
INTEL 8085 DATA FORMAT AND INSTRUCTIONS
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
Microprocessor Basics CH-3
Microprocessor Basics CH-3Microprocessor Basics CH-3
Microprocessor Basics CH-3
 
T imingdiagram
T imingdiagramT imingdiagram
T imingdiagram
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
 
Lecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of InstructionsLecture 05 NOP and Stack Group of Instructions
Lecture 05 NOP and Stack Group of Instructions
 
Instructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIRInstructionset8085 by NCIT SAROZ BISTA SIR
Instructionset8085 by NCIT SAROZ BISTA SIR
 
instruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).pptinstruction-set-of-8085 (1).ppt
instruction-set-of-8085 (1).ppt
 
instruction-set-of-8086-mr-binu-joy3.ppt
instruction-set-of-8086-mr-binu-joy3.pptinstruction-set-of-8086-mr-binu-joy3.ppt
instruction-set-of-8086-mr-binu-joy3.ppt
 
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
 
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
 
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
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
03 addr mode & instructions
03 addr mode & instructions03 addr mode & instructions
03 addr mode & instructions
 

More from ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P.

Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Electronika de fiesta 2014
Electronika de fiesta 2014Electronika de fiesta 2014
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
8254 presentation
8254 presentation8254 presentation
8254 presentation
8254 presentation8254 presentation
4 5 marks importnt question dcn
4 5 marks importnt question dcn4 5 marks importnt question dcn
8254 presentation
8254 presentation8254 presentation
Cyptography ece 702
Cyptography ece 702Cyptography ece 702
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Dcn previous que4 with solutions
Dcn previous que4 with solutionsDcn previous que4 with solutions
Dcn previous que2 with solutions
Dcn previous que2 with solutionsDcn previous que2 with solutions
Dcn previous que1 with solutions
Dcn previous que1 with solutionsDcn previous que1 with solutions
Microprocessor paper 4 with solutions
Microprocessor paper 4 with solutionsMicroprocessor paper 4 with solutions
Microprocessor paper 4 with solutions
ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P.
 

More from ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P. (20)

Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manual
 
Anupam kumar re2106 a55
Anupam kumar re2106 a55Anupam kumar re2106 a55
Anupam kumar re2106 a55
 
Electronika de fiesta 2014
Electronika de fiesta 2014Electronika de fiesta 2014
Electronika de fiesta 2014
 
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
 
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
 
Electronics switching-eec-802
Electronics switching-eec-802Electronics switching-eec-802
Electronics switching-eec-802
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
4 5 marks importnt question dcn
4 5 marks importnt question dcn4 5 marks importnt question dcn
4 5 marks importnt question dcn
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
Cyptography ece 702
Cyptography ece 702Cyptography ece 702
Cyptography ece 702
 
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
 
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
 
Introduction to-microprocessors-unit-1
Introduction to-microprocessors-unit-1Introduction to-microprocessors-unit-1
Introduction to-microprocessors-unit-1
 
Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Eec503, mp 30 questions
 
Dcn previous que4 with solutions
Dcn previous que4 with solutionsDcn previous que4 with solutions
Dcn previous que4 with solutions
 
Dcn previous que3 with solutions
Dcn previous que3 with solutionsDcn previous que3 with solutions
Dcn previous que3 with solutions
 
Dcn previous que2 with solutions
Dcn previous que2 with solutionsDcn previous que2 with solutions
Dcn previous que2 with solutions
 
Dcn previous que1 with solutions
Dcn previous que1 with solutionsDcn previous que1 with solutions
Dcn previous que1 with solutions
 
Microprocessor paper 4 with solutions
Microprocessor paper 4 with solutionsMicroprocessor paper 4 with solutions
Microprocessor paper 4 with solutions
 

Recently uploaded

Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 

Recently uploaded (20)

Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 

Some advanced instructions of the 8085 microprocessors

  • 1. FOR B.TECH (ECE) 3RD YEAR STUDENTS (HELPFUL IN UPTU/GBTU EXAM) (MICROPROCESSOR) BY ER. ANUPAM KUMAR (anupamkumarmtec@gmail.com) ELECTRONICS & COMMUNICATION ENGINEERING ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT, VARANASI, UTTAR PRADESH, INDIA SOME ADVANCED INSTRUCTIONS OF THE 8085 MICROPROCESSORS ADVANCE INSTRUCTIONS FOR 16-BIT DATA/ADDRESS TRANSFER 1.1 LHLD16-bit address ; load HL register pair  For example- Assume HL contains 3F90H i.e. H=3FH and L=90H. 2030H and 2031H memory locations contain are AFH & 24H respectively.  No flags are modified. 1.2 SHLD16-bit address ; Store HL register pair  This instructions works just reverse to the LHLD.  For example- Assume HL contains 3F90H i.e. H=3FH & L=90H.The memory location 2030H contains AFH & 24His contains of 2031H.  No flags are modified. 1.3 XCHG- Exchange the contents of HL register pair is 3F90H and contains of DE is 929FH.  Instruction Cycle-Op-code fetch machine cycle only.  No flags are modified.
  • 2. 2.2 ADVANCED INSTRUCTIONS RELATED TO THE 8085 16BIT REGISTERS 2.1 SPHL none ;the contents of HL register pair copies into stack pointer(SP):SP HL  The contents is copied in same manner into stack pointer(sp) as in HL register pair i.e. the contents of H AND L registers copied into higher byte & lower byte of stack pointer(SP) respectively.  No flags are modified. 2.2 XTHL none; this instructions exchange the top (pointed by SP) contents of stack memory with the contents of HL register pair.  The contents of stack memory location pointed by stack pointer, exchange with the contents of L register & the contents of next memory location with the contents of H register.  However, after execution of this instruction the contents or position of Stack Pointer (SP) remain same as before. For example-Assume the contents of SP is 2FFEH, HL=203FH i.e. H=20H & L=3FH and the contents of memory locations 2FFEH hold 72H and 2FFFH contains AFH. SP 2FFE 2FFF 3000 72 AF XTHL; after execution of this instruction the contents of HL is AF72H (H=AFH and L=72H), the contents of stack pointer SP is remains as before i.e. SP=2FFEH and the contents of memory location 2FFEH is 3FH and 2FFFH contains 20H.  Instruction cycle: Op-code fetch, two consecutive memory read, and two consecutive memory write machine cycles.  No flags are modified. 2.3 PCHL none; data of HL register pair transfer to the Program Counter (PC): PC HL
  • 3.  The contents is copied in same manner into Program Counter (PC) as in HL register pair i.e. H into higher-order byte and L into low-order byte of Program Counter (PC).  Instruction Cycle: Op-code fetch (takes 6-T States) machine cycle only.  No flags are modified. For Example: W.A.A.P. to transfer program control/execution without using JMP or CALL instructions. Assume program execution starts from 2000H program memory location and we want to execute program/instructions from 3000H. ORG 2000H 2000H LXI H, 3000H ; HL=3000H 2003 PCHL ; after execution of this one-byte instruction PC hold 3000H and execution transfer to location 3000H 2004H MVI A, 1FH ; not executed ……. 3000H MVI A, 1FH ; Program execution starts from here i.e. A=1FH 3002H HLT 10.3 ADVANCE INSTRUCTION FOR ARITHMETIC OPERATIONS     ACI- ADD IMMEDIATE TO A WITH CARRY ADC- ADD REGISTER/MEMORY TO A WITH CARRY SBB- SUBTRACT REGISTER/MEMORY WITH BORROW FROM A SBI- SUBTRACT IMMEDIATE WITH BORROW FROM A  Another advanced instructions in this group DAD (add register pair to HL register pair) which is related to 16-bit register pair. DAD Reg. pair/SP Pointer. ; Double Addition (in sense of 16-bit) of HL register pair or Stack  The default operand of this instruction is HL register pair i.e. to the register pair (BC, DE, HL or SP) is added to the contents of the HL register pair and the result/sum is saved in the HL register pair.  Only carry flag is affected by this instruction i.e. if the sum is larger than 16-bits the carry flag is set. The contents of the source register pair are not altered.
  • 4. Example: DAD H ; add the contents of reg. pair itself or multiply by 2.  Instruction cycle: Op-code fetches Bus Idle and Bus Idle machine cycles.  Flags: no flags are modified except Carry. PROGRAM: Add two 16-bit numbers. LHLD 4000H ; Get first 16-bit number XCHG ; Save first 16-bit number in DE LHLD 4002H ; Get second 16-bit number in HL DAD D ; Add DE and HL SHLD 4004H locations 4004H and 4005H HLT ; Store 16-bit result in memory ; Terminate program execution