- Trending Categories
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
Instruction type XRI d8 in 8085 Microprocessor
In 8085 Instruction set, XRI is a mnemonic that stands for “eXclusive OR Immediate with Accumulator” and “d8” stands for any 8-bit data. This instruction is used to Ex-OR 8-bit immediate data with the Accumulator. The result of Ex-ORing will be stored in the Accumulator overwriting its previous content. As it is a Logical instruction, so S, P, and Z flags are affected based on the result thus produced. Cy and AC are reset to 0. It occupies 2-Bytes in memory during execution.
Mnemonics, Operand | Opcode(in HEX) | Bytes |
---|---|---|
XRI Data | EE | 2 |
Let us consider XRI CDH as an example instruction of this category. As it is a 2-Byte instruction so it will occupy 2 consecutive memory locations. We are considering initial content of Accumulator is ABH. The result of execution of this instruction has been shown in the following tracing table −
Before | After | |
---|---|---|
(A) |
ABH | 66H |
(F) |
Any values | Cy=0,AC=0,S=0,P=1,Z=0 |
The internal calculation has been done as shown below −
(A) ABH ---> 1010 1011 (d8) CDH ---> 1100 1101 --------- XRICDH --->0110 0110 (66H)
Address | Hex Codes | Mnemonic | Comment |
---|---|---|---|
2002 | EE | XRI CDH | A = A XOR CDH |
2003 | CD | Operand CDH |
The timing diagram against this instruction XRI CDH execution is as follows.

Summary − So this instruction ORI CDH 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 ADI d8 in 8085 Microprocessor
- 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 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
