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 Hand shakingfor the allocation of addresses to memories and input output devices. Hand shaking: During an ASYNCHRONOUS data transfer is not based upon predetermined tim

Ginny Jones currently works as the VP-Product Strategy for a well-established enterprise software company. She and her friend, Tom Robinson, currently CFO at a competing firm (and

A 450 ns EPROM won't work directly with a 5MHz 8088.Why? Explain. While the 8088 is operated along with a 5 MHz clock, it permits 460 ns for the memory to access data. Due to t

Q.   Define and explain the critical field circuit resistance and critical speed of a DC shunt generator.   Ans. The OCC and R - line for a DC shunt generator. As, R f is

Q. Explain the ideal drain characteristics of the JFET? The JFET consists of a thin layer of n-type material with two ohmic contacts, the source S and the drain D ,along with t

Q. A JK flip-flop is shown in Figure (a). (a) Modify it to operate like the D flip-flop of Figure (b). (b) Modify the JK flip-flop to operate like the T flip-flop of Figure (

Q. What is the advantage of a two-stage overloaded RC coupled amplifier over a single stage one? What are it's uses? It is a frequently encountered configuration. Here, the tra

a) Get the best linear relationship in accordance with least square analysis for the following data:- X 0.9 2.3 3.3 4.5 5.7 6.7 Y 1.1 1.6 2.6 3.2 4.0 5.0 b) The table belo

Power Supply  and Clock Frequency there are following  pins  for power  supply  and clock  frequency  signals. V CC + 5 V  power supply. V SS Ground reference X 1

What is Q-switching in laser ? Give its application. Discuss the elementary idea of mode locking. Generation of high power pulses There are three basic techniques to gene