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
Call Instructions Call instruction are used to call a  subroutine program in assembly language  procedure and functions are called  subroutines. There are two types  of calls i

what are the dwarbacks of clipper?

What are the important requirements of a good insulating material? Important requirements of good insulating materials:- The necessity of good insulating materials can be cl

How do I connect a Capacitor on the machine if it has a start mechanism

Program Description In the above  program  any two  numbers can be stored in register A and B ( by  replacing XX  and YY). Contents  of B are  compared with A. If  B CY = 0

Q.  Why is an emitter bypass capacitor used in an RC coupled amplifier? If an emitter resistor Re is used for self-bias in an amplifier and if it is desired to avoid the degene

loses and efficency of generator

I want proof of shockley diode equation with all steps

this is my final year project and i need help on how to about it.

The  Octal Inverter 74LS 240 It is  similar  to above  octal  buffer  but with  inverter output. The  logic  diagram is  shown  in figure below . Normal 0