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

Equivalent circuit of unijunction transistor, Equivalent Circuit : Th...

Equivalent Circuit : The equivalent circuit of a UJT is shown in fig. The P - N junction represented in the emitter by a diode. Silicon bar being lightly doped has a high res

Difference between photography & holography, 1.       In ordinary photograp...

1.       In ordinary photography, each part contains information of the original object separately and in case some part of the object is destroyed then the information of that par

#linear programming with all three constraints.., #z =x1+2.5x2, with constr...

#z =x1+2.5x2, with constraints, x1+x2>=2, x2 x1+x2 x1=3.question..

Determine and plot the ratios for air, 1.Determine and plot the ratios μ tr...

1.Determine and plot the ratios μ tr /μ and μ ab /μ  from 5 keV to 100 MeV for      (a) air,              (b) water,      (c) muscle,     (d) bone, and      (d) lead

Discuss the feature of pentium in brief, Discuss the feature of Pentium in ...

Discuss the feature of Pentium in brief. The Pentium is a 32-bit superscalar, CISC microprocessor.  The word superscalar is used for the processor that has more than one pipeli

Describe the functionalities and the purpose of an equalizer, Question: ...

Question: (a) For a CD quality sound, what is the bit depth used and give the amplitude's levels and the dynamic range of this sound quality (b) In audio technology, the dec

Signals & systems, transformation of independent variable e.g. time related...

transformation of independent variable e.g. time related explaination

Gis database, GIS database:  In a nutshell, we could say that the GIS ...

GIS database:  In a nutshell, we could say that the GIS technology integrates general database operations (data query and statistical analysis), along with the unique a

Excitation, excitation in an ac generator

excitation in an ac generator

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