Cpi compare immediate instruction , Electrical Engineering

CPI Compare Immediate Instruction

The 8 bit  data  specified  in the  instruction is  compared with the  contents of the accumulator. The comparison  is done by  subtracting  the 8 bit data form  the contents of the accumulator the  contents of the accumulator d not  change. The flags are modified similar  to subtraction. The instruction format is

CPI 8 bit data                    (A- 8bit data )

Flags : All  flags are modified as they would  change  in subtract operation but the  content of  both  the operand do no to change.

Although  all flags  are modified  but the  conclusion can be made only by CY and Z flag as shown  below .

IF A> 8 bit data CY and Z Flags are reset.

IF A =8 bit  data Z flag  is set and CY flag is reset.

IF A < 8 bit  CY is set and Z  flag is  reset.

Posted Date: 4/5/2013 12:54:12 AM | Location : United States







Related Discussions:- Cpi compare immediate instruction , Assignment Help, Ask Question on Cpi compare immediate instruction , Get Answer, Expert's Help, Cpi compare immediate instruction Discussions

Write discussion on Cpi compare immediate instruction
Your posts are moderated
Related Questions
Please can you explain the operation of a transistor in a Common Emitter Class A audio Amplifier?

what is counter

Q. A single-phase, 10-kVA, 2300:230-V, 60-Hz, two-winding distribution transformer is connected as an auto transformer to step up the voltage from 2300 V to 2530 V. (a) Draw a s

Q. Find load resistance and voltage? Let the amplifier block be connected to a current source at the input terminals, as shown in Figure(a), and to a load resistance R L at it

Complete Instruction Set of 8085 Microprocessor There are  total 256 instructions in  8085 microprocessor. These instructions are classified  into  seven categories  according


Microprocessor and its Applications

Network Reconductoring - Technical Loss Reduction The size of conductor/cable is a significant parameter as it determines the current density and the resistance of the line. A

Find the power supplied by the voltage source and the power absorbed by the 24 Ω resistor (R3) in the circuit shown below:   Determine the voltage V2 in the circuit shown.

Q Using a combination of Uni-selectors and two motion selectors, draw a diagram of thousand line exchange and illustrate its working. Ans: The diagram for such an exchange i