- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Instruction type ADI d8 in 8085 Microprocessor
In 8085 Instruction set, ADI is a mnemonic, which stands for “ADd Immediate to Accumulator” and here “d8” stands for any 8-bit or 1-Byte of data. This instruction is used to add 8-bit immediate data to the Accumulator. The result of addition will be stored in the Accumulator. So the previous content of the Accumulator will be over written. It occupies 2-Bytes in memory. The flags are affected based on the result.
Mnemonics, Operand | Opcode(in HEX) | Bytes |
---|---|---|
ADI Data | C6 | 2 |
Let us consider as example instruction ADI 03H of this type. As it is a 2-Byte instruction so it will occupy 2-Bytes of memory locations as well.We are considering that Accumulator is having its initial content of 02H. So after addition the final sum of 05H will be stored on to the Accumulator as well. The result of execution of this instruction is shown below with an example.
Before | After | |
---|---|---|
(A) | 02H | 05H |
Flag Register (F) | Any values | CY=0,AC=0,S=0,P=1,Z=0 |
Address | Hex Codes | Mnemonic | Comment |
---|---|---|---|
2002 | C6 | ADI 03H | Accumulator = Accumulator + Operand 03H |
2003 | 03 | Data operand 03H |
The timing diagram of this instruction ADI 03H will be as follows −

Summary − So this instruction ADI 03H requires 2-Bytes, 2-Machine Cycles (Opcode Fetch, Memory Read) and 7 T-States for execution as shown in the timing diagram.
- Related Articles
- Instruction type ACI d8 in 8085 Microprocessor
- Instruction type SUI d8 in 8085 Microprocessor
- Instruction type SBI d8 in 8085 Microprocessor
- Instruction type ANI d8 in 8085 Microprocessor
- Instruction type ORI d8 in 8085 Microprocessor
- Instruction type XRI d8 in 8085 Microprocessor
- Instruction type CPI d8 in 8085 Microprocessor
- Instruction type MVI r, d8 in 8085 Microprocessor
- Instruction type MVI M, d8 in 8085 Microprocessor
- Instruction type XCHG in 8085 Microprocessor
- Instruction type CMC in 8085 Microprocessor
- Instruction type STC in 8085 Microprocessor
- Instruction type RLC in 8085 Microprocessor
- Instruction type RAL in 8085 Microprocessor
- Instruction type RRC in 8085 Microprocessor
