SlideShare ist ein Scribd-Unternehmen logo
1 von 30
ADDRESSING MODES &
DATA TRANSFER
INSTRUCTION OF 8085
MICROPROCESSOR
Presented by : Vaibhavi K. Patel (140133103025)
: Roshni M. Patel (140133103026)
: Chinmayee N. Samal (140133103027)
What is an instruction ?
• An instruction is a command to the microprocessor to
perform a given operation on specified data.
• An instruction consists of two parts:
operation code (opcode) which specifies what operation to
be performed and data to be operated on called the
operand .
example: MOV A,B
MOV is opcode and A and B are operands.
Addressing modes of 8085
Definition:-
The various ways of specifying operands for an
instruction are called addressing modes.
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.
Types of Addressing Modes
• Intel 8085 uses the following addressing
modes:
1. Direct Addressing Mode
2. Register Addressing Mode
3. Indirect Addressing Mode
4. Immediate Addressing Mode
5. Implied Addressing Mode
Addressing modes
Immediate
Addressing mode
Register
Addressing mode
Direct
Addressing mode
Register indirect
Addressing mode
Indexed
Addressing mode
Implied
Addressing
mode
Addressing modes of 8085
Direct Addressing Mode
• In this mode, the address of the operand is given in the
instruction itself.
Load the contents of memory
location 2500 H in accumulator.
H
 LDA is the operation.
 2500 H is the address of source.
 Accumulator is the destination.
Register Addressing Mode
• In this mode, the operand is in general purpose register.
MOV A, B
Move the contents of register
B to A.
• MOV is the operation.
• B is the source of data.
• A is the destination.
Indirect Addressing mode
• In this mode, the address of operand is specified by a
register pair.
MOV A, M
Move data from memory location
specified by H-L pair to
accumulator.
• MOV is the operation.
• M is the memiory location specified by H-L reg. pair.
• A is the destination.
Immediate Addressing Mode
• In this mode, the operand is specified within the
instruction itself.
MVI A, 05 H Move 05 H in accumulator
• MVI is the operation.
• 05 H is the immediate data (source).
• A is the destination.
Implied Addressing Mode
• If address of source of data as well as address of
destination of result is fixed, then there is no need to give
any operand along with the instruction
CMA Complement accumulator.
• CMA is the operation.
• A is the source.
• A is the destination.
Classification of Instruction Set
• Data Transfer Instruction
• Arithmetic Instructions
• Logical Instructions
• Branching Instructions
• Control Instructions
Data Transfer Instructions
• These instructions move data between registers, or
between memory and registers.
• The place from which data is copied is called source the
place to which data is copied is called destination
• The data transfer operation is copy operation is it copied
the data and doesn’t destroy the data from the source.
• These instructions copy data from source to Destination.
Data transfer instruction
. Op-code operand Description
Copy from source to
destination
MOV
Rd, Rs
M, Rs
Rd, M
This instruction copies the contents of the source register into the
destination register.
The contents of the source register are not altered.
If one of the operands is a memory location, its location is specified
by the contents of the HL registers.
Data transfer instruction
• . Op-code operand Description
Move immediate 8 bit
MVI
Rd,Data
M, Data
 The 8-bit data is stored in the destination register or memory.
• If the operand is a memory location, its location is specified by the
contents of the H-L registers
Example:
MVI B, 57H or MVI M, 57H
Data transfer instruction
• . Op-code operand Description
Load Accumulator
LDA
16-bit address
• The contents of a memory location, specified by a 16-bit address
in the operand, are copied to the accumulator.
• The contents of the source are not altered.
• Example:
LDA 2034H
Data transfer instruction
. Op-code operand Description
Load accumulator
indirect
LDAX
B/D Register
Pair
• The contents of the designated register pair point to a memory
location.
• This instruction copies the contents of that memory location into the
accumulator.
• The contents of either the register pair or the memory location are
not altered.
• Example: LDAX B
Data Transfer Instructions
• . Op-code operand Description
Load register pair
immediateLXI
Reg.pair, 16-bit
data
This instruction loads 16-bit data in the register pair.
Example:
LXI H, 2034 H
Data Transfer Instructions
Op-code operand Description
Load H-L register direct
LHLD 16-bit address
This instruction copies the contents of memory
location pointed out by 16-bit address into register L.
Its copies the content of next memory location into registers H.
Example: LHLD 2040 H
Data Transfer Instructions
Op-code operand Description
Store accumulator direct
STA 16-bit address
The contents of accumulator are copied into the
memory location specified by the operand.
Example:STA 2500 H
Data Transfer Instructions
Op-code operand Description
Store accumulator
indirectSTAX Reg. pair
The contents of accumulator are copied into the
memory location specified by the contents of the
register pair.
Example:
STAX B
Data Transfer Instructions
Op-code operand Description
Store HL regiters direct
SHLD 16 bit address
The contents of register L are stored into memory
• location specified by the 16bit address.
• The contents of register H are stored into the next
• memory location.
• Example:
• SHLD 2550 H
Data Transfer Instructions
Op-code operand Description
Exchange H-L with D-E
XCHG None
The contents of register H are exchanged with the
contents of register D.
The contents of register L are exchanged with the
contents of register E.
Example:
XCHG
Data Transfer Instructions
Op-code operand Description
Copy H-L pair to the stack
pointer
SPHL None
This instruction loads the contents of H-L pair into SP.
Example: SPHL
Data Transfer Instructions
Op-code operand Description
Exchange H-L with top of
stack
XTHL None
The contents of L register are exchanged with the
location pointed out by the contents of the SP.
The contents of H register are exchanged with the next
location (SP + 1).
Example:
XTHL
Data Transfer Instructions
Op-code operand Description
Load program counter H-L
contentsPCHL None
The contents of registers H and L are copied into the
program counter (PC).
The contents of H are placed as the high-order byte and the
contents of L as the low-order byte.
Example:
PCHL
Data Transfer Instructions
Op-code operand Description
Push register pair onto
stack
PUSH Reg.pair
The contents of register pair are copied onto stack.
SP is decremented and the contents of high-order registers
(B, D, H, A) are copied into stack.
SP is again decremented and the contents of low-order
registers (C, E, L, Flags) are copied into stack.
Example PUSH B
Data Transfer Instructions
Op-code operand Description
POP stack to register pair.POP Reg.pair
The contents of top of stack are copied into register pair.
The contents of location pointed out by SP are copied to
the low-order register (C, E, L, Flags).
SP is incremented and the contents of location are copied
to the high-order register (B, D, H, A).
Example: POP H
Data Transfer Instructions
Op-code operand Description
Copy data from accumulator
to a port with 8-bit addressout
8-bit port address
The contents of accumulator are copied into the I/O
port.
Example: OUT 78H
Data Transfer InstructionsData Transfer Instructions
Op-code operand Description
Copy data to accumulator
from a port with 8-bit
address
IN
8-bit port address
The contents of I/O port are copied into accumulator.
Example: IN 8CH
Addressing mode & data transfer instruction of 8085

Weitere ähnliche Inhalte

Was ist angesagt?

Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
Jay Patel
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
Ram Babu
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 

Was ist angesagt? (20)

Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
Registers
RegistersRegisters
Registers
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Memory banking-of-8086-final
Memory banking-of-8086-finalMemory banking-of-8086-final
Memory banking-of-8086-final
 
8086
80868086
8086
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 

Ähnlich wie Addressing mode & data transfer instruction of 8085

microprocessor and microcontroller notes ppt
microprocessor and microcontroller notes pptmicroprocessor and microcontroller notes ppt
microprocessor and microcontroller notes ppt
mananjain543
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
Shifali Sharma
 
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-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
saleForce
 

Ähnlich wie Addressing mode & data transfer instruction of 8085 (20)

Addressing modes
Addressing modesAddressing modes
Addressing modes
 
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
 
MICROCONTROLLERS-module2 (7).pptx
MICROCONTROLLERS-module2 (7).pptxMICROCONTROLLERS-module2 (7).pptx
MICROCONTROLLERS-module2 (7).pptx
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
microprocessor and microcontroller notes ppt
microprocessor and microcontroller notes pptmicroprocessor and microcontroller notes ppt
microprocessor and microcontroller notes ppt
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.ppt
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
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-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
Different types of Addressing.cao
Different types of Addressing.caoDifferent types of Addressing.cao
Different types of Addressing.cao
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdf
 
Microprocessor Basics CH-3
Microprocessor Basics CH-3Microprocessor Basics CH-3
Microprocessor Basics CH-3
 
8085 Instructions.pdf
8085 Instructions.pdf8085 Instructions.pdf
8085 Instructions.pdf
 
MES_MODULE 2.pptx
MES_MODULE 2.pptxMES_MODULE 2.pptx
MES_MODULE 2.pptx
 
addressingmodes8051.ppt
addressingmodes8051.pptaddressingmodes8051.ppt
addressingmodes8051.ppt
 
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
 
MPMC UNIT-2.pdf
MPMC UNIT-2.pdfMPMC UNIT-2.pdf
MPMC UNIT-2.pdf
 

KĂźrzlich hochgeladen

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

KĂźrzlich hochgeladen (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

Addressing mode & data transfer instruction of 8085

  • 1. ADDRESSING MODES & DATA TRANSFER INSTRUCTION OF 8085 MICROPROCESSOR Presented by : Vaibhavi K. Patel (140133103025) : Roshni M. Patel (140133103026) : Chinmayee N. Samal (140133103027)
  • 2. What is an instruction ? • An instruction is a command to the microprocessor to perform a given operation on specified data. • An instruction consists of two parts: operation code (opcode) which specifies what operation to be performed and data to be operated on called the operand . example: MOV A,B MOV is opcode and A and B are operands.
  • 3. Addressing modes of 8085 Definition:- The various ways of specifying operands for an instruction are called addressing modes. 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.
  • 4. Types of Addressing Modes • Intel 8085 uses the following addressing modes: 1. Direct Addressing Mode 2. Register Addressing Mode 3. Indirect Addressing Mode 4. Immediate Addressing Mode 5. Implied Addressing Mode
  • 5. Addressing modes Immediate Addressing mode Register Addressing mode Direct Addressing mode Register indirect Addressing mode Indexed Addressing mode Implied Addressing mode Addressing modes of 8085
  • 6. Direct Addressing Mode • In this mode, the address of the operand is given in the instruction itself. Load the contents of memory location 2500 H in accumulator. H  LDA is the operation.  2500 H is the address of source.  Accumulator is the destination.
  • 7. Register Addressing Mode • In this mode, the operand is in general purpose register. MOV A, B Move the contents of register B to A. • MOV is the operation. • B is the source of data. • A is the destination.
  • 8. Indirect Addressing mode • In this mode, the address of operand is specified by a register pair. MOV A, M Move data from memory location specified by H-L pair to accumulator. • MOV is the operation. • M is the memiory location specified by H-L reg. pair. • A is the destination.
  • 9. Immediate Addressing Mode • In this mode, the operand is specified within the instruction itself. MVI A, 05 H Move 05 H in accumulator • MVI is the operation. • 05 H is the immediate data (source). • A is the destination.
  • 10. Implied Addressing Mode • If address of source of data as well as address of destination of result is fixed, then there is no need to give any operand along with the instruction CMA Complement accumulator. • CMA is the operation. • A is the source. • A is the destination.
  • 11. Classification of Instruction Set • Data Transfer Instruction • Arithmetic Instructions • Logical Instructions • Branching Instructions • Control Instructions
  • 12. Data Transfer Instructions • These instructions move data between registers, or between memory and registers. • The place from which data is copied is called source the place to which data is copied is called destination • The data transfer operation is copy operation is it copied the data and doesn’t destroy the data from the source. • These instructions copy data from source to Destination.
  • 13. Data transfer instruction . Op-code operand Description Copy from source to destination MOV Rd, Rs M, Rs Rd, M This instruction copies the contents of the source register into the destination register. The contents of the source register are not altered. If one of the operands is a memory location, its location is specified by the contents of the HL registers.
  • 14. Data transfer instruction • . Op-code operand Description Move immediate 8 bit MVI Rd,Data M, Data  The 8-bit data is stored in the destination register or memory. • If the operand is a memory location, its location is specified by the contents of the H-L registers Example: MVI B, 57H or MVI M, 57H
  • 15. Data transfer instruction • . Op-code operand Description Load Accumulator LDA 16-bit address • The contents of a memory location, specified by a 16-bit address in the operand, are copied to the accumulator. • The contents of the source are not altered. • Example: LDA 2034H
  • 16. Data transfer instruction . Op-code operand Description Load accumulator indirect LDAX B/D Register Pair • The contents of the designated register pair point to a memory location. • This instruction copies the contents of that memory location into the accumulator. • The contents of either the register pair or the memory location are not altered. • Example: LDAX B
  • 17. Data Transfer Instructions • . Op-code operand Description Load register pair immediateLXI Reg.pair, 16-bit data This instruction loads 16-bit data in the register pair. Example: LXI H, 2034 H
  • 18. Data Transfer Instructions Op-code operand Description Load H-L register direct LHLD 16-bit address This instruction copies the contents of memory location pointed out by 16-bit address into register L. Its copies the content of next memory location into registers H. Example: LHLD 2040 H
  • 19. Data Transfer Instructions Op-code operand Description Store accumulator direct STA 16-bit address The contents of accumulator are copied into the memory location specified by the operand. Example:STA 2500 H
  • 20. Data Transfer Instructions Op-code operand Description Store accumulator indirectSTAX Reg. pair The contents of accumulator are copied into the memory location specified by the contents of the register pair. Example: STAX B
  • 21. Data Transfer Instructions Op-code operand Description Store HL regiters direct SHLD 16 bit address The contents of register L are stored into memory • location specified by the 16bit address. • The contents of register H are stored into the next • memory location. • Example: • SHLD 2550 H
  • 22. Data Transfer Instructions Op-code operand Description Exchange H-L with D-E XCHG None The contents of register H are exchanged with the contents of register D. The contents of register L are exchanged with the contents of register E. Example: XCHG
  • 23. Data Transfer Instructions Op-code operand Description Copy H-L pair to the stack pointer SPHL None This instruction loads the contents of H-L pair into SP. Example: SPHL
  • 24. Data Transfer Instructions Op-code operand Description Exchange H-L with top of stack XTHL None The contents of L register are exchanged with the location pointed out by the contents of the SP. The contents of H register are exchanged with the next location (SP + 1). Example: XTHL
  • 25. Data Transfer Instructions Op-code operand Description Load program counter H-L contentsPCHL None The contents of registers H and L are copied into the program counter (PC). The contents of H are placed as the high-order byte and the contents of L as the low-order byte. Example: PCHL
  • 26. Data Transfer Instructions Op-code operand Description Push register pair onto stack PUSH Reg.pair The contents of register pair are copied onto stack. SP is decremented and the contents of high-order registers (B, D, H, A) are copied into stack. SP is again decremented and the contents of low-order registers (C, E, L, Flags) are copied into stack. Example PUSH B
  • 27. Data Transfer Instructions Op-code operand Description POP stack to register pair.POP Reg.pair The contents of top of stack are copied into register pair. The contents of location pointed out by SP are copied to the low-order register (C, E, L, Flags). SP is incremented and the contents of location are copied to the high-order register (B, D, H, A). Example: POP H
  • 28. Data Transfer Instructions Op-code operand Description Copy data from accumulator to a port with 8-bit addressout 8-bit port address The contents of accumulator are copied into the I/O port. Example: OUT 78H
  • 29. Data Transfer InstructionsData Transfer Instructions Op-code operand Description Copy data to accumulator from a port with 8-bit address IN 8-bit port address The contents of I/O port are copied into accumulator. Example: IN 8CH