Cpi compare immediate instruction , Electrical Engineering

Assignment Help:

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.


Related Discussions:- Cpi compare immediate instruction

Instrument, Differentiate between dual beam and dual trace oscilloscope

Differentiate between dual beam and dual trace oscilloscope

Nor gate - introduction to microprocessors , NOR Gate NOR means NOT OR ...

NOR Gate NOR means NOT OR . it complements the  output  of an OR  gate.  The symbol  of Nor  gate in fig. (a) shows that a Nor  gate  comprises  of an OR  gate followed  by a N

Determine the synchronous speed in revolutions per minute, Q. Determine the...

Q. Determine the synchronous speed in revolutions per minute and the useful torque in newton- meters of a 200-hp, 60-Hz, six-pole synchronous motor operating at its rated full load

What is dmx, What is DMX? It is a communications protocol between step ...

What is DMX? It is a communications protocol between step motors, actuators and an electronic circuit. A kind of language among elements there different manufacturers can use c

What do you mean by load factor, Q. What do you mean by Load factor? Th...

Q. What do you mean by Load factor? The two components of electric service are demand and energy. Demand is the maximum level of real power which the electric utility must supp

Analog averaging system, Consider the analog averager where x(t) is the inp...

Consider the analog averager where x(t) is the input and y(t) is the output. (a)   Find the impulse response h(t) of the average.  Is this system causal? (b)   Let x(t)

Selection of right- flex in electricity and gas hazards, Selection of Right...

Selection of Right- Flex : It is also important that the flex we choose is appropriate to the appliance used. Like fuses, the cables and flexes are also rated according to their

Explain about adaptive control system, Q. Explain about Adaptive Control Sy...

Q. Explain about Adaptive Control System? Another type of control system that makes use of the computer is known as adaptive control, which is functionally represented in Figur

Describe the working of bistable multivibrator, Q. Describe the working of ...

Q. Describe the working of bistable multivibrator A bistable circuit is one which can exit indefinitely  in either of two stable states and which can be induced to make an abru

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd