100% found this document useful (1 vote)
2K views10 pages

Introduction To 8085 Instructions

This document discusses the different types of instructions for the 8085 microprocessor, including: 1) Data transfer instructions like MOV, MVI, LDA, and STA that copy data between registers, memory locations, and I/O devices without changing the source. 2) Arithmetic instructions like ADD, SUB, INR, and DCR for addition, subtraction, and incrementing/decrementing registers and memory locations. 3) Logic instructions like ANA, ORA, and XRA that perform AND, OR, and XOR operations on the accumulator and numbers, registers, or memory locations. 4) Branch instructions for unconditional jumps, calls, returns, and conditional jumps based on flag settings

Uploaded by

api-3850688
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views10 pages

Introduction To 8085 Instructions

This document discusses the different types of instructions for the 8085 microprocessor, including: 1) Data transfer instructions like MOV, MVI, LDA, and STA that copy data between registers, memory locations, and I/O devices without changing the source. 2) Arithmetic instructions like ADD, SUB, INR, and DCR for addition, subtraction, and incrementing/decrementing registers and memory locations. 3) Logic instructions like ANA, ORA, and XRA that perform AND, OR, and XOR operations on the accumulator and numbers, registers, or memory locations. 4) Branch instructions for unconditional jumps, calls, returns, and conditional jumps based on flag settings

Uploaded by

api-3850688
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 10

Chapter 6

Introduction to 8085 Instructions

Microprocessors & Interfacing Dr. Bassel Soudan 1


Data Transfer Operations
– These operations simply COPY the data from the
source to the destination.
– MOV, MVI, LDA, and STA

– They transfer:
• Data between registers.
• Data Byte to a register or memory location.
• Data between a memory location and a register.
• Data between an I\O Device and the accumulator.

– The data in the source is not changed.


Microprocessors & Interfacing Dr. Bassel Soudan 2
Arithmetic Operations
– Addition (ADD, ADI):
– Any 8-bit number.
– The contents of a register.
– The contents of a memory location.
• Can be added to the contents of the accumulator and the
result is stored in the accumulator.

– Subtraction (SUB, SUI):


– Any 8-bit number
– The contents of a register
– The contents of a memory location
• Can be subtracted from the contents of the accumulator.
The result is stored in the accumulator.

Microprocessors & Interfacing Dr. Bassel Soudan 3


Arithmetic Operations
– Increment (INR) and Decrement (DCR):
• The 8-bit contents of any memory location or any register
can be directly incremented or decremented by 1.
• No need to disturb the contents of the accumulator.

Microprocessors & Interfacing Dr. Bassel Soudan 4


Logic Operations
• These instructions perform logic operations on
the contents of the accumulator.
– ANA, ANI, ORA, ORI, XRA and XRI
• Source: Accumulator and
– An 8-bit number
– The contents of a register
– The contents of a memory location
• Destination: Accumulator
ANA R/M AND Accumulator With Reg/Mem
ANI # AND Accumulator With an 8-bit number

ORA R/M OR Accumulator With Reg/Mem


ORI # OR Accumulator With an 8-bit number

XRA R/M XOR Accumulator With Reg/Mem


XRI # XOR Accumulator With an 8-bit number

Microprocessors & Interfacing Dr. Bassel Soudan 5


Logic Operations
– Complement:
• 1’s complement of the contents of the accumulator.
CMA No operand

Microprocessors & Interfacing Dr. Bassel Soudan 6


Branch Operations
• Two types:
– Unconditional branch.
• Go to a new location no matter what.
– Conditional branch.
• Go to a new location if the condition is true.

Microprocessors & Interfacing Dr. Bassel Soudan 7


Unconditional Branch
– JMP Address
• Jump to the address specified (Go to).

– CALL Address
• Jump to the address specified but treat it as a
subroutine.

– RET
• Return from a subroutine.

– The addresses supplied to all branch operations


must&be
Microprocessors 16-bits.
Interfacing Dr. Bassel Soudan 8
Conditional Branch
– Go to new location if a specified condition is met.
• JZ Address (Jump on Zero)
– Go to address specified if the Zero flag is set.
• JNZ Address (Jump on NOT Zero)
– Go to address specified if the Zero flag is not set.
• JC Address (Jump on Carry)
– Go to the address specified if the Carry flag is set.
• JNC Address (Jump on No Carry)
– Go to the address specified if the Carry flag is not set.
• JP Address (Jump on Plus)
– Go to the address specified if the Sign flag is not set
• JM Address (Jump on Minus)
– Go to the address specified if the Sign flag is set.

Microprocessors & Interfacing Dr. Bassel Soudan 9


Machine Control
– HLT
• Stop executing the program.
– NOP
• No operation
• Exactly as it says, do nothing.
• Usually used for delay or to replace instructions during
debugging.

Microprocessors & Interfacing Dr. Bassel Soudan 10

You might also like