Documente Academic
Documente Profesional
Documente Cultură
SET OF 8085
BSC-IT CRACKED
1Address Bus
Register Array
ALU
Flags
Memory Pointer
Registers
8-bit Data
Bus
Instruction
Decoder
Control Bus
Accumulator (8-bit)
B (8-bit)
C (8-bit)
D (8-bit)
E (8-bit)
H (8-bit)
L (8-bit)
AC
CY
16- Lines
Bidirectional
Unidirectional
2.
Accumulator Register
3.
Flag Register
4.
5.
1.
2.
B, C, D, E, H, L
Can be combined as register pairs to perform
16-bit operations (BC, DE, HL)
Accumulator identified by
name A
3.
Flag Register
Execution of an arithmetic/logic
operation can set or reset these flags
4. Program
Counter (PC)
where
PC
is incremented by one
PC is now pointing to the
address of next instruction
5.
Classification of Instruction
Set
Arithmetic Instructions
Logical Instructions
Branching Instructions
Control Instructions
MOV
Operand
Rd, Rs
M, Rs
Rd, M
Description
Operand
Rd, Data
M, Data
Description
Move immediate 8-bit
memory.
If the operand is a memory location, its location is
Operand
16-bit
address
Description
Load Accumulator
Operand
Description
memory location.
Example: LDAX B
Operand
Reg. pair,
16-bit data
Description
Load register pair immediate
Operand
16-bit
address
Description
Load H-L registers direct
register H.
Example: LHLD 2040 H
Operand
16-bit
address
Description
Store accumulator direct
Operand
Reg. pair
Description
Store accumulator indirect
Operand
16-bit
address
Description
Store H-L registers direct
memory location.
Example: SHLD 2550 H
Operand
None
Description
Exchange H-L with D-E
contents of register D.
The contents of register L are exchanged with the
contents of register E.
Example: XCHG
Operand
None
Description
Copy H-L pair to the Stack Pointer
(SP)
Example: SPHL
Operand
None
Description
Exchange HL with top of stack
Operand
None
Description
Load program counter with H-L
contents
Operand
Reg. pair
Description
Push register pair onto stack
Example: PUSH B
Operand
Reg. pair
Description
Pop stack to register pair
pair.
Example: POP H
Operand
8-bit port
address
Description
Copy data from accumulator to
a port with 8-bit address
port.
Example: OUT 78 H
Operand
8-bit port
address
Description
Copy data to accumulator from
a port with 8-bit address
Example: IN 8C H
Arithmetic Instructions
Addition
Subtract
Increment
Decrement
Addition
Subtraction
Increment / Decrement
Arithmetic Instructions
Opcode
ADD
Operand
R
M
Description
Add register or memory to
accumulator
of accumulator.
L pair.
Arithmetic Instructions
Opcode
ADC
Operand
R
M
Description
Add register or memory to
accumulator with carry
L pair.
Arithmetic Instructions
Opcode
ADI
Operand
8-bit data
Description
Add immediate to accumulator
addition.
Example: ADI 45 H
Arithmetic Instructions
Opcode
ACI
Operand
8-bit data
Description
Add immediate to accumulator
with carry
The 8-bit data and the Carry Flag (CY) are added to
addition.
Example: ACI 45 H
Arithmetic Instructions
Opcode
DAD
Operand
Reg. pair
Description
Add register pair to H-L pair
Arithmetic Instructions
Opcode
SUB
Operand
R
M
Description
Subtract register or memory from
accumulator
L pair.
Arithmetic Instructions
Opcode
SBB
Operand
R
M
Description
Subtract register or memory from
accumulator with borrow
The contents of the register or memory location and Borrow Flag (i.e.
CY) are subtracted from the contents of the accumulator.
Arithmetic Instructions
Opcode
SUI
Operand
8-bit data
Description
Subtract immediate from
accumulator
accumulator.
subtraction.
Example: SUI 45 H
Arithmetic Instructions
Opcode
SBI
Operand
8-bit data
Description
Subtract immediate from
accumulator with borrow
subtraction.
Example: SBI 45 H
Arithmetic Instructions
Opcode
INR
Operand
R
M
Description
Increment register or memory by
1
incremented by 1.
Arithmetic Instructions
Opcode
INX
Operand
R
Description
Increment register pair by 1
Arithmetic Instructions
Opcode
DCR
Operand
R
M
Description
Decrement register or memory by
1
decremented by 1.
Arithmetic Instructions
Opcode
DCX
Operand
R
Description
Decrement register pair by 1
Logical Instructions
AND
OR
XOR
Rotate
Compare
Complement
AND operation
OR operation
XOR operation
Rotate
Compare
Equality
Greater Than
Less Than
Complement
Logical Instructions
Opcode
CMP
Operand
R
M
Description
Compare register or memory with
accumulator
Logical Instructions
Opcode
CMP
Operand
R
M
Description
Compare register or memory with
accumulator
Logical Instructions
Opcode
CPI
Operand
8-bit data
Description
Compare immediate with
accumulator
accumulator.
The values being compared remain unchanged.
The result of the comparison is shown by setting the
Logical Instructions
Opcode
CPI
Operand
8-bit data
Description
Compare immediate with
accumulator
Logical Instructions
Opcode
ANA
Operand
R
M
Description
Logical AND register or memory
with accumulator
Logical Instructions
Opcode
ANI
Operand
8-bit data
Description
Logical AND immediate with
accumulator
CY is reset, AC is set.
Example: ANI 86H.
Logical Instructions
Opcode
XRA
Operand
R
M
Description
Exclusive OR register or memory
with accumulator
The contents of the accumulator are XORed with the contents of the register or memory.
If the operand is a memory location, its address is specified by the contents of H-L pair.
Logical Instructions
Opcode
ORA
Operand
R
M
Description
Logical OR register or memory
with accumulator
The contents of the accumulator are logically ORed with the contents of the register or
memory.
If the operand is a memory location, its address is specified by the contents of H-L pair.
Logical Instructions
Opcode
ORI
Operand
8-bit data
Description
Logical OR immediate with
accumulator
Logical Instructions
Opcode
XRA
Operand
R
M
Description
Logical XOR register or memory
with accumulator
Logical Instructions
Opcode
XRI
Operand
8-bit data
Description
XOR immediate with
accumulator
8-bit data.
The result is placed in the accumulator.
S, Z, P are modified to reflect the result.
Logical Instructions
Opcode
RLC
Operand
None
Description
Rotate accumulator left
one position.
Carry flag.
Logical Instructions
Opcode
RRC
Operand
None
Description
Rotate accumulator right
by one position.
Carry flag.
Logical Instructions
Opcode
RAL
Operand
None
Description
Rotate accumulator left through
carry
Logical Instructions
Opcode
RAR
Operand
None
Description
Rotate accumulator right through
carry
Logical Instructions
Opcode
CMA
Operand
None
Description
Complement accumulator
Logical Instructions
Opcode
CMC
Operand
None
Description
Complement carry
Logical Instructions
Opcode
STC
Operand
None
Description
Set carry
Branching Instructions
Branching Instructions
Opcode
JMP
Operand
16-bit
address
Description
Jump unconditionally
Branching Instructions
Opcode
Jx
Operand
16-bit
address
Description
Jump conditionally
Jump Conditionally
Opcode
JC
JNC
Description
Status Flags
Jump if Carry
CY = 1
Jump if No Carry
CY = 0
JP
Jump if Positive
S=0
JM
Jump if Minus
S=1
JZ
Jump if Zero
Z=1
JNZ
Jump if No Zero
Z=0
JPE
P=1
JPO
P=0
Branching Instructions
Opcode
CALL
Operand
16-bit
address
Description
Call unconditionally
Branching Instructions
Opcode
Cx
Operand
16-bit
address
Description
Call conditionally
Call Conditionally
Opcode
CC
CNC
Description
Status Flags
Call if Carry
CY = 1
Call if No Carry
CY = 0
CP
Call if Positive
S=0
CM
Call if Minus
S=1
CZ
Call if Zero
Z=1
CNZ
Call if No Zero
Z=0
CPE
P=1
CPO
P=0
Branching Instructions
Opcode
RET
Operand
None
Description
Return unconditionally
Branching Instructions
Opcode
Rx
Operand
None
Description
Call conditionally
Return Conditionally
Opcode
RC
RNC
Description
Status Flags
Return if Carry
CY = 1
Return if No Carry
CY = 0
RP
Return if Positive
S=0
RM
Return if Minus
S=1
RZ
Return if Zero
Z=1
RNZ
Return if No Zero
Z=0
RPE
P=1
RPO
P=0
Branching Instructions
Opcode
RST
Operand
07
Description
Restart (Software Interrupts)
Restart Address
RST 0
0000 H
RST 1
0008 H
RST 2
0010 H
RST 3
0018 H
RST 4
0020 H
RST 5
0028 H
RST 6
0030 H
RST 7
0038 H
Control Instructions
Control Instructions
Opcode
NOP
Operand
None
Description
No operation
No operation is performed.
operation is executed.
Example: NOP
Control Instructions
Opcode
HLT
Operand
None
Description
Halt
state.
Example: HLT
Control Instructions
Opcode
DI
Operand
None
Description
Disable interrupt
Control Instructions
Opcode
EI
Operand
None
Description
Enable interrupt
are enabled.
No flags are affected.
This instruction is necessary to re-enable the
Control Instructions
Opcode
RIM
Operand
None
Description
Read Interrupt Mask
RIM Instruction
Control Instructions
Opcode
SIM
Operand
None
Description
Set Interrupt Mask
follows.
Example: SIM
SIM Instruction