- 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
Jump if parity even (JPE) in 8085 Microprocessor
In 8085 Instruction set, we are having one mnemonic JPE a16, which stands for “Jump if Parity Even” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present parity flag value is 1. If the parity flag value is 0, program flow continues sequentially. It is a 3-Byte instruction.
Mnemonics, Operand | Opcode(in HEX) | Bytes |
---|---|---|
JPE Label | EA | 3 |
Let us consider one example of this instruction type JPE 4000H. It is a 3-Byte instruction. The result of execution of this instruction is shown below with an example.
Address | Hex Codes | Mnemonic | Comment |
---|---|---|---|
2000 | 3E | MVI A,40 | A ← 40H |
2001 | 40 | 8-bit operand 40H | |
2002 | 06 | MVI B,40 | B ← 40H |
2003 | 40 | 8-bit operand 40H | |
2004 | 90 | SUB B | A ← A – B= 40H – 40H = 00H. As the result is 00H = 0000 000B, so the Pflag bit will be 1 |
2005 | EA | JPE 4000 | Jump Parity Even, i.e. Jump when P = 1, as the subtraction result is 00H, so P flag bit will remain with value 1 |
2006 | 00 | Low order Byte of the target address | |
2007 | 40 | High order Byte of the target address PC ← 4000H, So the program control will be transferred to the address 4000H | |
2008 | 78 | MOV A, B | This instruction will not get control now as JPE will transfer the control to the memory address 4000H |
…. | …. | …. | …. |
4000 | 41 | MOV B, C | Next instruction at address 4000H will get the control |
The timing diagram against this instruction JPE 4000H execution is as follows –
Summary − So this instruction JPErequires 3-Bytes, 3-Machine Cycles (Opcode Fetch, Memory Read, MemoryRead) and 10 T-States for execution as shown in the timing diagram.
- Related Articles
- Jump if parity odd (JPO) in 8085 Microprocessor
- Call if parity even (CPE) in 8085 Microprocessor
- Return if parity even (RPE) in 8085 Microprocessor
- Jump if carry (JC) in 8085 Microprocessor
- Jump if positive (JP) in 8085 Microprocessor
- Jump if minus (JM) in 8085 Microprocessor
- Call if parity odd (CPO) in 8085 Microprocessor
- Return if parity odd (RPO) in 8085 Microprocessor
- Jump if not Carry (JNC) in 8085 Microprocessor
- Jump if zero (JZ) result in 8085 Microprocessor
- Jump if not zero (JNZ) result in 8085 Microprocessor
- Unconditional JUMP instruction in 8085 Microprocessor
- Conditional JUMP instructions in 8085 Microprocessor
- Conditional and Unconditional JUMP instructions in 8085 Microprocessor
- Difference between call and jump instructions in 8085 Microprocessor
