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
I would like to know if you can help me with the attached microprocessor assignments my email address is . also let me how much in cost in $US


Types of Field-Effect Transistors The channel of a FET (field-effect transistor) is doped to produce either an N-type semiconductor or a P-type semiconductor. The drain and so

Give four examples of natural insulating materials. Illustrations of the natural insulating materials are rubber, cotton, wood and mica.

Q. For an n-channel JFET with V A = 350 V, I DSS = 10 mA, and V P = 3V, find V DS that will cause i D = 11 mA when v GS = 0.

1.       In ordinary photography, each part contains information of the original object separately and in case some part of the object is destroyed then the information of that par

The report should contain all of the information detailed below together with your analysis of the circuit and any conclusions. The report should contain the code for your simulati

Q. A transmission line with air dielectric is 25 m long. Find, in wavelengths, how long the line is at frequencies of 1 kHz, 10 MHz, and 100 MHz.

Operation - unijunction transistor: Operation : Imagine that the emitter supply voltage is turned biased and a small emitter reverse current flows. Then the intrinsic stand

Q. A60-Hz, 100-kVA, 2400/240-V(rms) transformer is used as a step-down transformer from a transmission line to a distribution system. Consider the transformer to be ideal. (a) F