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

Transformers, What is the difference between “Insulating,” “Isolating,” and...

What is the difference between “Insulating,” “Isolating,” and “Shielded Winding” transformers? Can Acme Transformers be reverse connected? . Can Transformers develop Three Phase po

Measurment, emitter followers regulator

emitter followers regulator

Explain internal data bus, Q. Explain Internal Data Bus? Internal Data ...

Q. Explain Internal Data Bus? Internal Data Bus: A bus which operates only within internal circuitry of the CPU, communicating among internal caches of memory which are part of

Inductors, factors used to classify inductors

factors used to classify inductors

Sketch the resulting transfer curves, Q. Consider the MOSFET circuit with v...

Q. Consider the MOSFET circuit with variable voltage, with RD = 2k and VDD = 12 V. The static characteristics of the n-channel enhancement MOSFET are given in Figure. (a) Drawt

Discuss applications of dielectrics, Discuss applications of dielectrics. ...

Discuss applications of dielectrics. Application of dielectrics: For various applications various properties of dielectric materials are required as: electrical, mechanical

Scale-space pyramids, Scale-space pyramids   Write an m-file "scale_s...

Scale-space pyramids   Write an m-file "scale_space.m" which computes scale space representation of an input image for a given scale "sigma" and displays them. (i) 4 scale

Calculate the value in ohms of the rotor resistance, The synchronous speed ...

The synchronous speed of a wound-rotor induction motor is 900 r/min. Under a blocked-rotor condition, the input power to the motor is 45 kW at 193.6 A. The stator resistance per ph

Assembly language, To find out the largest of ten 8 bit numbers. Method: Th...

To find out the largest of ten 8 bit numbers. Method: The numbers are stored in consecutive memory locations. The counter register is initialized with 0A and the address pointer po

Line Protection., The Lennox to Bowmanville 500 kV circuit, spanning a dist...

The Lennox to Bowmanville 500 kV circuit, spanning a distance of about 180 km, has series (inductive) impedance j 0.0224 pu and shunt (capacitive) admittance j 2.34 pu, quoted on b

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