Addressing Modes & Instruction Set
Addressing Modes & Instruction Set
MICROCONTROLLERS
Leka K
Assistant Professor
Biomedical Engineering
Erode Sengunthar Engineering College
THE 8085 ADDRESSING MODES
The instructions MOV B, A or MVI A, 82H are to copy
data from a source into a destination.
In these instructions the source can be a register, an
port.
The sources and destination are operands.
The various formats for specifying operands are called
functional categories:
Data transfer (copy) instructions,
Arithmetic instructions,
Logical instructions,
Branching instructions, and
Machine-control instructions.
DATA TRANSFER INSTRUCTIONS
The data transfer instructions move data between registers or
between memory and registers.
MOV Move
MVI Move Immediate
LDA Load Accumulator Directly from Memory
STA Store Accumulator Directly in Memory
LHLD Load H & L Registers Directly from Memory
SHLD Store H & L Registers Directly in Memory
An 'X' in the name of a data transfer instruction implies that it
deals with a register pair (16-bits);
Flag
SBI Subtract Immediate from Accumulator Using
follows:
JMP Jump
CALL Call
RET Return
Conditional branching instructions examine the status
NZ Not Zero (Z = 0)
Z Zero (Z = 1)
NC No Carry (C = 0)
C Carry (C = 1)
PO Parity Odd (P = 0)
PE Parity Even (P = 1)
P Plus (S = 0)
M Minus (S = 1)
Thus, the conditional branching instructions are
specified as follows:
Jumps Calls Returns
C CC RC (Carry)
INC CNC RNC (No Carry)
JZ CZ RZ (Zero)
JNZ CNZ RNZ (Not Zero)
JP CP RP (Plus)
JM CM RM (Minus)
JPE CPE RPE (Parity Even)
JP0 CPO RPO (Parity Odd)
Two other instructions can affect a branch by replacing
the contents or the program counter:
MVI D, 8BH
MVI C, 6FH
MOV A, C
ADD D
OUT PORT1
HLT
TIMING DIAGRAM OF 8085
Timing Diagram is a graphical representation.
It represents the execution time taken by each
clock periods.
A portion of an operation carried out in one system
T2 State:
During the beginning of this state, the RD’ signal goes
T4 State:
In this state the Opcode which was fetched from the
memory is decoded.
2. MEMORY READ CYCLE (3T)
These machine cycles have 3 T-states.
T1 state:
• The higher order address bus (A8-A15) and lower
T3 State:
The data which was loaded on the previous state is
decoded.
3. MEMORY WRITE CYCLE (3T)
These machine cycles have 3 T-states.
T1 state:
The higher order address bus (A8-A15) and lower
T3 State:
In the middle of the T3 state WR’ goes high and
decoded.
4.I/O READ CYCLE(3T)
5.I/O WRITE CYCLE(3T)
It require 4 m/c cycles 13 T states
1.opcode fetch(4T)
2.memory read(3T)
3.memory read(3T)
4.Memory write(3T)