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
Define ruled surface and surface of revolution. Illustrate in detail B-spline and cubic Bezier surfaces with their important properties.

Q. Description of clauses used in a parallel construct? When a thread comes across a parallel construct a set of new threads is made to execute parallel region. Inside the para

A closed magnetic circuit of cast steel having a 6cm long path of cross-sectional area 1cm 2 and a 2 cm path of cross-sectional area 0.5 cm 2 . A coil of 200 turns is wound around

what are the dwarbacks of clipper?

Explain the 8259 microprocessor. 8259: The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. This can be expanded to 64 interrupt requests with us

units of potential energy

Q. A silicon npn BJT is biased by the method shown in Figure, with R E = 240 , R 2 = 3000 , and V CC = 24 V. The operating point corresponds to V BEQ = 0.8V, I BQ = 110 µA,

Aims More practice using data movement and control flow statements. Understand techniques to interface microprocessors with external switch-based hardware. Write P

Q. What do you mean by Time consistent Busy Hour? (i) Busy Hour (ii) Peak Busy Hour (iv) Time consistent Busy Hour  (v) Traffic intensity Ans: (i)  Busy Hour: C