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
write down the application of shift register and explain it.

biography of scientists in different branches

Reproducibility and repeatability are measures of closeness with which a given input may be measured over again. The two terms cause confusion. Therefore, a distinction is made bet

Explain the Parallel In - Parallel Out Shift Registers? For "parallel in - parallel out" shift registers all data bits show on the parallel outputs immediately following the si

Why delay circuit used in CRO?

Procedures and methods of the experiments A).      In order to measure the true RMS values of the currents and voltages, students used the true RMS multimeter. It requires two

Q. A two-winding system has its inductances given by where k 1 and k 2 are constants. Neglecting the winding resistances, derive an expression for the electric force when

Metering Techniques The techniques of metering could be categorized depending upon the voltage at which consumers are fed as: 1. LT (Low Tension) Metering, and 2. HT (Hi

1- Phase Full  Bridge  inverter will RL Load For a  resistive load R the load  current  wave form  will be  identical with load  voltage wave form  and feedback  diodes will

Paper is hygroscopic and absorbent. This statement is true or false. Ans: Paper is hygroscopic and absorbent. This statement is true.