Compare with register, Electrical Engineering

Assignment Help:

Compare with Register

The contents  of the register  are compared with  the contents  of the accumulator  here  register  may be  any one  of the  A, B, C, D E, H, or L  registers. The instruction format is

CMPR                          (A-R)

Actually the comparison is done  by subtracting  the contents  of the register from the  contents  of the  accumulator. The contents of the  register  and  the accumulator do not  change the  flags  are modified similar  to subtraction.

Flags : All flags  are modified  as they  would  change  in subtract  operation. But the  contents of both the  operand do  not change.

Although  all flags  are modified  but the  conclusion can be made only by CY and Z flag as shown  below

If A> R : CY  and Z flags  are reset.

IF A= R: Z Flag is set and  CY flag is reset.

IF A < R : CY  is set  and Z  flag s reset.

 


Related Discussions:- Compare with register

Explain the effect of a dielectric on behaviour of capacitor, Explain the e...

Explain the effect of a dielectric on the behaviour of a capacitor. If two parallel plates are separated by a distance 'd' (meters) in vacuum and are kept at a potential diffe

DSP-chebyshev, Consider Chebyshev Type I versus Chebyshev Type II (also cal...

Consider Chebyshev Type I versus Chebyshev Type II (also called inverse Chebyshev) Ölters. Which one should be used based on the following criteria? (If there is no difference betw

Find the modulated signal in each case, Let the message signal m(t) = α cos...

Let the message signal m(t) = α cos (2πf m t) be used to either frequency-modulate or phase- modulate the carrier Ac cos(2πf c t). Find the modulated signal in each case.

Mechanism of metal removal in electrochemical machining, What is the proces...

What is the process of metal removal in electrochemical machining? What are the basic functions of electrolyte in ECM? Illustrate the following key terms in electrochemical mach

Find largest of n numbers stored in t memory, To determine the largest of n...

To determine the largest of n numbers stored into t memory, write a program in assembly language. A program of the largest of n numbers stored into t memory in assembly languag

Connection of shunt capacitors - across individual customers, Connection of...

Connection of Shunt Capacitors - Across Individual Customers The most appropriate manner of improving PF of the distribution system and thereby reducing line losses is to link

Explain the nor gates - microprocessor, Explain the NOR GATES - Microproces...

Explain the NOR GATES - Microprocessor The NOR GATE is an OR gate with the output inverted. Consequently the outputs of a NOR gate would have the opposite states as the outputs o

Show npn common collector amplifier, Q. Show NPN Common Collector Amplifier...

Q. Show NPN Common Collector Amplifier? The common collector amplifier, often called an emitter follower since its output is taken from the emitter resistor, is useful as

Voltage falls across a resistor simple circuit, To design a VI that can be ...

To design a VI that can be used to show how the voltage falls across a resistor in a simple CR circuit when excited by a step function. The title of the VI will be Capacitor Res

Use of computers in power systems, Q. Use of Computers in Power Systems? ...

Q. Use of Computers in Power Systems? The control and stability of any electric power system is indeed extremely important, in particular when a system is expected to maintain

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