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
Explain the NAND Gates - Microprocessor? The NAND GATE is a AND gate with the output inverted. Consequently the outputs of a NAND gate would be the opposites of the outputs of a A

Q. Consider an amplifier as a voltage source with an internal resistance of 72 . Find the turns ratio of the ideal transformer such that maximum power is delivered when the amplif

Usage of transistor: The bipolar junction transistor that is abbreviated as BJT was the most generally used transistor in the 1960s and 70s. Even later than MOSFETs became ext

Q. To answer the following question, please refer to the figure below. Concentrating only at the upper right quadrant, discuss the foreign exchange market equilibrium. Answer:

Traditional Model - Performance Monitoring and Control The traditional model talks only about the finance and the financial accounting model. The output are published periodic

Q. For the 4-bit D/A converter of Figure, calculate: (a) The maximum analog output voltage. (b) The minimum analog output voltage. (c) The smallest detectable analog outpu

Equal volumes of all gases contain the samenumber of molecules when the volumes are measured at the same p and T. Therefore for a given volume at the same p and T, with the same

Q. In an amplifier, the maximum voltage gain is 1500 and occurs at 1kHz. It falls to 1060.5 at 20kHz and at 20Hz. Determine (i) lower cut-off frequency (ii) upper cut-o

Q. Explain Modulation and sampling? Modulation is the process whereby the amplitude (or another characteristic) of a wave is varied as a function of the instantaneous value of

Define the XOR GATE - Microprocessor? The XOR GATE is a alike to an OR gate except for the instance when all the inputs are high. With a XOR gate when all the inputs are high t