- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- 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
Instructions to perform addition in 8085 Microprocessor
In 8085 Instruction set, and specially in its arithmetic group of instructions, we have only add and subtract instructions. 8085 does not have instructions to perform multiplication or division numbers. Now let us discuss the instructions to perform addition operations only.
To perform addition of two numbers, 8085 imposes the restriction that one of the operands must be kept in the Accumulator. The other operand can be at any one of the following possible locations
Classifications | Examples |
---|---|
The other operand can be kept in 8-bit immediate data in the instruction. | ADI 43H ADI FFH |
The other 8-bit operand can be kept in a memory location and whose memory address will be pointed by HL register pair. | ADD M |
The other 8-bit operand can be kept in a 8-bit register | ADD B ADD C |
Here is the list of instructions available in 8085 instruction set suitable for addition operations
Mnemonics, Operand | Opcode (in HEX) | Bytes |
---|---|---|
ACI Data | CE | 2 |
ADC A | 8F | 1 |
ADC B | 88 | 1 |
ADC C | 89 | 1 |
ADC D | 8A | 1 |
ADC E | 8B | 1 |
ADC H | 8C | 1 |
ADC L | 8D | 1 |
ADC M | 8E | 1 |
ADD A | 87 | 1 |
ADD B | 80 | 1 |
ADD C | 81 | 1 |
ADD D | 82 | 1 |
ADD E | 83 | 1 |
ADD H | 84 | 1 |
ADD L | 85 | 1 |
ADD M | 86 | 1 |
ADI Data | C6 | 2 |
Advertisements