W4 Instruction Set of 8085 Module 4
W4 Instruction Set of 8085 Module 4
Addressing Modes
Each instruction requires some data on which it has to operate. There are
different techniques to specify data for instructions. These techniques are
called addressing modes. Intel 8085 uses the following addressing modes:
o Direct Addressing
In this addressing mode, the address of the operand (data) is
given in the instruction itself.
Example
STA 2400H: It stores the content of the accumulator in the
memory location 2400H.
32, 00, 24: The above instruction in the code form.
Course Module
[Microprocessor] 2
Instruction Set of 8085
Course Module
[Microprocessor] 3
Instruction Set of 8085
Immediate Addressing
In this addressing mode, the operand is specified within the
instruction itself.
Example
LXI H, 2500 is an example of immediate addressing.
2500 is 16-bit data which is given in the instruction
itself. It is to be loaded into H-L pair.
o Implicit Addressing
There are certain instructions which operate on the content of
the accumulator. Such instructions do not require the address
of the operand.
Example
CMA, RAL, RAR, etc.
Status Flags
There is a set of five flip-flops which indicate status (condition)
arising after the execution of arithmetic and logic instructions. These
are:
o Carry Flag (CS)
o Parity Flag (P)
o Auxiliary Carry Flags (AC)
o Zero Flags (Z)
o Sign Flags (S)
Course Module
[Microprocessor] 4
Instruction Set of 8085
Symbol/Abbreviations Meaning
A, B, C, D, H, L 8-bit register
A Accumulator
H Appearing at the end of the group of digits specifies hexadecimal, e.g. 250
PC 16 bit program counter, PCH is high order 8 bits and PCL low order 8 bits o
CS Carry Status
[ [] ] The content of the memory location whose address is in the register pair id
brackets
Course Module
[Microprocessor] 5
Instruction Set of 8085
^ AND operation
∨ OR operation
⊕ or ∀ Exclusive OR
⇔ Exchange contents
Instructions which are used to transfer the data from a register to another
register from memory to register or register to memory come under this
group.
Course Module
[Microprocessor] 6
Instruction Set of 8085
Course Module
[Microprocessor] 7
Instruction Set of 8085
Arithmetic Group
The instructions of this group perform arithmetic operations such as addition, subtraction,
increment or decrement of the content of a register or a memory.
Course Module
[Microprocessor] 8
Instruction Set of 8085
Course Module
[Microprocessor] 9
Instruction Set of 8085
Course Module
[Microprocessor] 10
Instruction Set of 8085
←[rp]+1 content
Logical Group
The instructions in this group perform logical operation such as AND, OR, compare, rotate,
etc.
Course Module
[Microprocessor] 11
Instruction Set of 8085
XRA M [A] ← [A] ∀ [[H-L]] XOR memory with accumulator 7 All Register
indirect
XRI data [A] ←[A] ∀ [data] XOR immediate data with 7 All Immediate
accumulator
[An] ←[An+1]
Course Module
[Microprocessor] 12
Instruction Set of 8085
This group contains the instructions for conditional and unconditional jump, subroutine
call and return, and restart.
Unconditional Jump
Conditional Jump
Jump addr Conditional jump: jump to the instruction specified by the address if 10, if true
(label) the specified condition is fulfilled and
[PC] ← Label 7, if not
true
Course Module
[Microprocessor] 13
Instruction Set of 8085
Course Module
[Microprocessor] 14
Instruction Set of 8085
Unconditional CALL
Course Module
[Microprocessor] 15
Instruction Set of 8085
Conditional CALL
Course Module
[Microprocessor] 16
Instruction Set of 8085
Unconditional Return
Conditional Return
Course Module
[Microprocessor] 17
Instruction Set of 8085
[[SP]],
[PCH] ← [[SP]
+ 1],
[SP] ← [SP] +
2
Course Module
[Microprocessor] 18
Instruction Set of 8085
result is not S= 0
minus.
Course Module