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
Give the operating modes of 8259a? (a) Automatic Rotation (b) End of Interrupt (EOI) (c) Fully Nested Mode  (d) Automatic EOI Mode (e) Specific Rotation (f) Edge

What are the blocks of the microprocessor depends system? The blocks of the microprocessor depends system are: The Memory and I/O System The Data Operating System

Q. Counters are used to realize various dividers in the schematic representation of the digital clock shown in Figure. The blocks labeled "logic array" are logic gate combinations

What are the Disadvantages of using robots -  They can find it difficult to deal with 'unusual' circumstances for example a door is missing from a car waiting on the paint spra

why is a delay line used in the vertical selection of oscilloscope?

dear sir, when i am going to simulate my model in matlab i am getting the following error : the derived input for the integrator is inf or nan at time xxxxx. try to reduce the step

Binary  Number Systems As mentioned  earlier this  number is used by  digital  systems like  microprocessor  and other  digital  circuits. This  number  systems  use only two


Define Causal System - Discrete Time Systems? A causal system is one which produces an output only when there is an input. All physical systems are causal. In general, a causal

what is ohm?