8085 Instruction Set
8085 Instruction Set
~ \
-"\_-. l
. -,'t--
t...:.i '
J
8085 INSTRUCTION SET
INSTRUCTION DETAILS
DATA TRANSFER INSTRUCTIONS
I •
f
I
·'
BRANCHING INSTRUCTIONS
Jump unconditionally
JMP 16-bit address The program sequence is transferred to the memory location
specified by the 16-bit address given in the operand.
Example: JMP 2034 or JMP XYZ
Jump conditionally
d
I
CPO p == I
Call on parity odd p == 0
L_
Return from subroutine unconditionallY
RET none The program sequence is cransferred from the subroutine 10
the calling program. The t\vo byres from the top of the stack
are copied into the program counter, and program execution
begins at the new address.
Example: RET
()per.met none
J
V ◄
C '
C I
Exclusive OR register or
XRA memory with accumulat
R or
The contents of the accu . .
M mulator are Exclusiv e ORed with
the contents of the op
erand (register or memo
result is placed in the ry), and the
accumulator. If the
memory location, its ad operand is a
dress is specified by the
HL registers. S, Z, P are contents of
modified to reflect the
operation. CY and AC res ult of the
are reset.
Example : XRA B or XR
AM
Exclusive OR immedia
XRI te with accumulator
8-bit data
The contents of the accu
mulator are Exclusive OR
8-bit data (operand) ed with the
and the result is pla
accumulator. S, Z, P are ced in the
modified to reflect the
operation. CY and AC are result of the
reset.
Example: XRI 86
Logical OR register or
memory with accumulao
ORA R tr
The contents of the accu
M mulat
the contents of the opera or are logically ORed with
nd (register or memory)
result is placed i.n the , and the
accumulator. If the op
memory location, its ad erand is a
dress is specified by the
HL registers. S, Z, P are contents of
modified to reflect the
operation. CY and AC are result of the
reset.
Example : ORA B or OR
AM
Logical OR immediate
with accumulator
ORI 8-bit data
The contents of the accu
mulator are logically OR
8-bit data (operand) ed
and the result is pla with the
accumulator. S, Z, P are ced in the
mo
operation. CY and AC are dified to reflect the result of the
reset.
Example: ORI 86
r
I
Complement accumulator
CMA none The contents of the accumulator are complemented. No flags
are affected.
Example: CMA
Complement carry
CMC none The Carry flag is complemented. No other flags are affected.
Example: CMC
Set Carry
STC none The Carry flag is set to I. No other flags are affected.
Example: STC