intJ
8085AH/8085AH-2/8085AH-1
Table
6.
Instruction Set Summary
Instruction Code
Operations
Mnemonic
D7 D6
Ds
D4
D3
D2
D1
Do
Description
I Instruction Code
Operations
Mnemonic
D7 D6
Ds
D4
D3 D2
D1
Do
Description
MOVE, LOAD,
AND
STORE
CZ
1 1
0 0 1 1
0
0
Cali on zero
CNZ
1 1
0 0 0 1
0 0 Cali on
no
zero
CP
1 1 1 1
0 1
0 0 Cali on positive
CM
1 1
1 1 1 1
0
0
Cali on
minus
CPE
1 1 1
0 1 1
0 0 Cali on parity even
CPO 1
1 1
0 0 1
0 0 Cali on Daritv odd
RETURN
RET 1
1
0 0
1
0 0
1
Return
MOVr1
r2
0 1 D 0 0
S S S Move register to register
MOVM.r
0 1 1 1 0
S S S
Move register to memory
MOVr.M
0
1
0 0 0 1 1
0
Move memory to register
MVI r
0 0 0 0 0 1 1
0
Move immediate register
MVIM
0 0
1
1
0
1 1
0
Move immediate memory
LXIB
0 0 0 0 0 0 0
1 Load immediate register
Pair B & C
RC
1 1
0 1 1
0 0
0
Return on carry
RNC
1 1
0 1
0 0 0
0
Return on
no
carry
LXID
0
0
0
1
0 0 0
1 Load immediate register
Pair
0 & E
RZ
1 1
0 0 1
0 0 0 Return on zero
RNZ
1
1
0 0 0 0
0 0
Return on
no
zero
LXIH
0 0
1
0 0 0 0
1 Load immediate register
Pair H
& L
RP
1 1
1 1
0 0
0 0
Return on positive
RM
1 1
1 1 1
0
0 0
Return on
minus
RPE
1 1 1
0 1
0 0 0 Return on
parity
even
STAX
B
0 0 0 0 0 0 1 0 Store A indirect
STAX
D
0 0 0 1 0 0 1 0 Store A indirect
LDAXB
0 0 0 0 1 0 1 0 Load A indirect
LDAXD
0 0 0 1 1 0 1 0 Load A indirect
RPO
1
1 1
0 0 0
0 0
Retu
rn
on
parity odd
RESTART
RST
1 1 A A
A 1 1 1
Restart
STA
0 0
1 1
0 0
1
0
Store A direct
LOA
0 0 1
1 1
0 1 0 Load A direct
SHLD
0 0
1
0 0 0
1
0
Store H & L direct
INPUT/OUTPUT
IN
I
~
1
0
1
1
0
1 1
Input
OUT
1
0 1
0 0 1 1
Output
LHLD
0 0
1
0
1
0
1
0
Load H & L direct
XCHG
1 1 1
0
1
0
1 1 Exchange 0 &
E,
H & L
INCREMENT
AND
DECREMENT
INR r
0 0
0
0 0
1 0
0
Increment register
OCR
r
0 0
0 0 0 1
0 1 Decrement register
INR
M
0
0
1 1 0 1
0 0
Increment memory
Registers
STACK
OPS
PUSH
B 1 1 0 0 0
1
0
1 Push register Pair B &
C on stack
OCR
M
0 0
1 1
0
1
0 1 Decrement memory
INX B
0 0 0 0 0 0
1 1
Increment B & C
PUSH
0 1 1 0
1
0
1
0
1 Push register Pair 0 &
E on stack
registers
INX D
0 0 0
1
0 0
1 1
Increment 0 & E
PUSH
H 1
1
1 0 0
1
0
1 Push register Pair H &
L on stack
registers
INX
H 0
0
1 0 0 0 1 1 Increment H & L
PUSH
PSW
1 1 1 1
0
1
0
1 Push A and Flags
on stack
registers
DCX B
0
0
0
0
1 0 1 1 Decrement B & C
POP
B 1 1
0 0 0 0 0
1 Pop register Pair B &
C
off
stack
DCX D
0
0 0
1 1 0 1 1 Decrement D & E
DCX
H 0 0 1 0
1
0 1
1
Decrement H & L
POP
D 1 1
0
1
0 0 0
1 Pep register Pair D &
E
off
stack
ADD
ADD r 1
0 0 0 0 S S S
Add register to A
POP
H 1 1 1
0
0
0
0
1 Pop register Pair H &
L
off
stack
ADC
r 1 0 0 0
1
S S S
Add register
to
A
with carry
POP
PSW
1 1 1 1
0 0 0
1 Pop A and Flags
off
stack
ADDM
1 0 C 0 0
1 1
0
Add memory to A
ADCM
1 0 0 0
1 1 1
0
Add memory to A
with
carry
ADI
1 1
0 0 0
1 1 0 Add immediate to A
XTHL 1 1 1
0 0 0
1 1
Exchange top of
stack, H & L
SPHL 1 1 1 1 1
0 0
1 H & L to stack pointer
LXI
SP
0 0 1 1
0 0
0 1 Load immediate stack
ACI
1 1 0 0
1 1 1
0
Add immediate to A
with carry
DAD
B 0 0 0 0 1 0 0
1 Add B & C
to
H & L
pointer
INX
SP
0 0
1 1
0 0 1
1
Increment stack pointer
DCXSP
0 0
1 1 1
0
1 1 Decrement stack
DAD
0 0 0 0
1 1
0 0
1 Add 0 & E to H & L
DADH
0 0
1
0
1
0 0
1 Add H & L
to
H & L
pointer
JUMP
DADSP
0 0
1
1
1
0 0
1 Add stack
pointer
to
H&L
JMP
1 1 0 0 0 0 1 1
Jump
unconditional
JC
1
1
0
1 1
0
1
0
Jump
on carry
SUBTRACT
SUB r 1
0 0
1
0 S
S S
Subtract register
from A
SBB r 1
0 0
1 1
S S
S Subtract
register from
A with borrow
SUBM
1 0 0
1
0
1 1
0
Subtract memory
from A
SBBM
1 0 0
1 1 1
1
0
Subtract memory from
A
with
borrow
JNC 1 1
0
1
0 0
1
0
Jump
on no carry
JZ
1 1
0 0
1
0
1
0
Jump
on zero
JNZ
1
1
0 0
0 0
1
0
Jump
on no zero
JP
1 1 1
1
0
0
1
0
Jump
on positive
JM
1 1 1 1 1
0 1 0
Jump
on minus
JPE 1
1 1
0
1
0 1 0
Jump
on parity even
JPO 1 1 1
0 0 0
1
0
Jump
on parity odd
PCHL
1 1 1
0
1
0 0 1 H & L to program
counter
CALL
SUI
1 1 0 1 0 1 1 0 Subtract immediate
CALL
1 1
0 0
1 1
0
1
Cali unconditional
from A
CC
1
1
0
1 1 1
0 0
Cali on carry SBI
1 1
0
1 1 1 1
0
Subtract immediate
CNC
1
1
0
1
0
1
0 0
Cali on
no
carry
from A with borrow
6-24
AFN·0183SC