8085 Instruction Set
8085 Instruction Set
8085 Instruction Set
KR Chowdhary
Professor & Head
Email: [email protected]
webpage: krchowdhary.com
Register-register/
Stack Accumulator Register-memory Load-storage
b b b b b b
TOS
b b b b b b
Processor
b b b
b b b b b b b b b b b b
Memory
b b b b b b b b b b b b
\\ compute C = A + B
Stack: Accumulator: Register-memory
push A Load A //accesses memory as part of
push B Add B // instruction
Add store C Load R1, A
Pop C Add R3, R1, B
Store R3, C
Register-register:
//accesses memory through load/store inst.
Load R1, A
Load R2, B
Add R3, R1, R2
Store R3, C
Memory-memory architecture?
PUSH B * *
A D
MULT A B B C
PUSH B
Figure 1: Tree for (A ∗ B) − (B ∗ C ) − (A ∗ D). Post-Order:
PUSH C
AB ∗ BC ∗ −AD ∗ −
MULT
SUB
Register-Memory Addressing:
PUSH A
MULT E, A, B; A-F registers
PUSH D
MULT F, B, C
MULT
SUB F, E, F
SUB
MULT E, A, D
POP T
SUB T, F, E; T is memory location
KR Chowdhary Processor Architecture 6/ 27
Issues in Instruction set Design
◮ 8-bit CPU
◮ Communicates with other units through 16-bit address bus, 8-bit
data bus, and control bus
◮ Address: A0 − A15 , total addressable memory=216 = 65536 (64k).
Address locations 0 - 65535 (0000H - FFFFH).
◮ Databus D0 − D7 (little E.), multiplexed with lower 8 bits (A0 − A7 )
of address bus (A0 − A15 ).
◮ Control bus: Various signal lines (binary) carrying signals like
Read/write, Enable, Ready, Flag bits, etc.