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
Using the LM741operational amplifier build a current amplifier with the voltage gain of  |A V | = 300 v/v ± = 20% . Measure all necessary parameters of the amplifier (as per delive

Visual Presentation of an Electrical Network: The second layer corresponds to the distribution network coverage. The low voltage system and customer supply points along with l

1) Consider the magnetic circuit shown in the figure. Steady currents flow in the windings of N 1 and N 2 turns on the outside legs of the ferromagnetic core. The core has a

Q. Show the Direct connection or one to one topology? In the one to all topology, there is a path between every node and every other node. The number of paths required is defin

Consider the circuit of Figure (a), including a dependent source. Obtain the Thévenin equivalent at terminals a-b.


Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

What is the use of terminal count register? Each of the four DMA channels of 8257 has single terminal count register. This 16-bit register is used for ascertaining that the dat

i need matlab codes for the minimum cell cost method to start the initial feasible solution and the stepping stone method to find the optimum value

an ideal dc generator has voltage reguiation