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
what is the theory for full wave rectifier with c filter

Static V- I Characteristics A thyristor  works in  three basic  modes a.Reverse  blocking mode b.Forwards  blocking  mode and c.Forward  conducting  mode In revers

what is transistor how it works?

Q. Sketch the timing diagram for a 4-bit ripple counter which uses T flip-flops.


The resistance of a 2 m length of cable is 2.5?. Verify (a) the resistance of a 7 m length of the similar cable and (b) the length of the same wire when the resistance is 6.2

really need help how to run the veener press line for wood-based panels?

if a resistor present in the middle of two branches in such a way that their polarities coincide then how do we choose the polarity of that resistor

Illustrate the working principle, equipment used,process characteristic, advantage and disadvantage of water jet machine (WJM) (a) Illustrtae the working principle of ultrasonic

what is difference between dual trace and dual beam cro?