Experiment 1 - Appendix
Experiment 1 - Appendix
11
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Two-byte instruction : opcode 8-bit data/address
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Three-byte instruction : opcode low byte data/address high byte data/address
Immediate Addressing
In immediate addressing mode, the data is specified in the instruction itself. The data will be a part of the program instruction .
Example : MVI B, 3EH
Move the data 3EH given in the instruction to B-register.
Direct Addressing
In direct addressing mode, the address of the data is specified in the instruction. The data will be in memory. In this
addressing mode, the program instructions and data can be stored in different memory blocks.
Example : LDA 1050H
Load the data available in memory location 1050H in accumulator.
2. 12 Chapter 2 Instruction Set Of 8085
Register Addressing
In register addressing mode, the instruction specifies the name of the register in which the data is available.
Example : MOV A, B
Move the content of B-register to A-register.
Register Indirect Addressing
In register indirect addressing mode, the instruction specifies the name of the register in which the address of the
data is available. Here the data will be in memory and the address will be in a register pair.
Example : MOV A, M
The memory data addressed by HL pair is moved to A-register.
Implied Addressing
In implied addressing mode, the instruction itself specifies the data to be operated.
Example : CMA
Group IV - Branching Instructions : The instructions that are used to transfer the
program control from one memory location to another memory location are
grouped under this heading.
1. MOV Rd, Rs 0 1 DD D SS S 1 F 4T 49
2. MOV Rd, M 0 1 DD D 1 1 0 1 F, R 7T 7
3. MOV M, Rs 0 1 1 1 0 SSS 1 F, W 7T 7
4. MVI Rd, d8 0 0 DD D 1 1 0 2 F, R 7T 7
5. MVI M, d8 00 11 0 11 0 2 F, R, W 10T 1
7. LDAX rp 0 0 RP 1 0 1 0 1 F, R 7T 2
11. STAX rp 0 0 RP 0 0 1 0 1 F, W 7T 2
13. SPHL 11 11 1 00 1 1 S 6T 1
14. XCHG 11 10 1 01 1 1 F 4T 1
23. ADD M 10 0 00 11 0 1 F, R 7T 1
2. 14 Chapter 2 Instruction Set Of 8085
24. ADI d8 1 1 0 0 0 1 10 2 F, R 7T 1
26. ADC M 1 0 0 0 1 1 10 1 F, R 7T 1
27. ACI d8 1 1 0 0 1 1 10 2 F, R 7T 1
28. DAA 0 0 1 0 0 1 11 1 F 4T 1
31. SUB M 1 0 0 1 0 1 10 1 F, R 7T 1
32. SUI d8 1 1 0 1 0 1 10 2 F, R 7T 1
34. SBB M 1 0 0 1 1 1 10 1 F, R 7T 1
35. SBI d8 1 1 0 1 1 1 10 2 F, R 7T 1
38. INX rp 0 0 R P0 0 1 1 1 S 6T 4
41. DCX rp 0 0 R P1 0 1 1 1 S 6T 4
43. ANA M 1 0 1 0 0 11 0 1 F, R 7T 1
44. ANI d8 1 1 1 0 0 11 0 2 F, R 7T 1
46. ORA M 1 0 1 1 0 11 0 1 F, R 7T 1
47. ORI d8 1 1 1 1 0 11 0 2 F, R 7T 1
Microprocessor (8085) And Its Applications 2. 15
62. J<condition>
addr16 1 1 C C C0 1 0 3 F,R/F,R,R 7T/10T 8
64. C<condition> S, R or
addr16 1 1 C C C1 0 0 3 S,R,R,W,W 9T/18T 8
71. DI 1 1 110 0 1 1 1 F 4T 1
72. EI 1 1 111 0 1 1 1 F 4T 1
246
The binary codes for the symbols used in opcode of 8085 instructions are given below:
Register DDD or SSS Register RP
B 000 BC 00
C 001 DE 01
D 010 HL 10
E 011 SP 11
H 100
L 101
A 111
Status flags
Instructions
CF AF ZF SF PF
ACI d8 + + + + +
ADC reg + + + + +
ADC M + + + + +
ADD reg + + + + +
ADD M + + + + +
ADI d8 + + + + +
ANA reg 0 1 + + +
ANA M 0 1 + + +
ANI d8 0 1 + + +
CMC +
CMP reg + + + + +
CMP M + + + + +
CPI d8 + + + + +
DAA + + + + +
DAD rp +
DCR reg + + + +
DCR M + + + +
INR reg + + + +
INR M + + + +
ORA reg 0 0 + + +
ORA M 0 0 + + +
2. 18 Chapter 2 Instruction Set Of 8085
Note :
+ → Indicates that the particular flag is affected.
0 → Indicates that the particular flag is always zero.
1 → Indicates that the particular flag is always one.
TABLE - 2.3 : MEANING/EXPANSION OF MNEMONICS USED IN AN 8085 INSTRUCTION SET
Appendix I continued...
Appendix II continued...
OPCODE MNEMONIC OPCODE MNEMONIC OPCODE MNEMONIC
IN HEX IN HEX IN HEX
Note : The date mentioned here is the date of introduction of the lowest clock version of the
processor. For the date of introduction of higher clock version of a processor please refer
to INTEL website www.intel.com.