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 workinf of colpitts oscillator, Q. Explain workinf of colpitts osci...

Q. Explain workinf of colpitts oscillator? When the collector supply voltage V cc is switched on, the capacitors C1 and Cz are charged. These capacitors C1 and Cz discharge thr

Find the total core loss, Q. Ac measurements with constant voltage amplitud...

Q. Ac measurements with constant voltage amplitude reveal that the total core loss of a certain magnetic circuit is 10 W at f = 50 Hz, and 13 Wat f = 60 Hz. Find the total core los

Find the force-current analog as well as the force voltage, Q. (a) The c...

Q. (a) The concept of duality can be extended to nonelectric physical systems bymeans of analogs. For example, the mechanical system characteristics can be investigated by means

Input resistance of an ideal op amp, Q. The input resistance of an ideal op...

Q. The input resistance of an ideal op amp with no feedback is infinite. Investigate the input resistance of an op amp with a feedback resistance RF: (a) When there is no resist

Chemistry, write a note on vulcanization

write a note on vulcanization

Determine the total active power, Determine the total active power: Ci...

Determine the total active power: Circuit is introduced in the Face 1. It is about a single-wires face for a three-phase system. The voltage of the AC source is of 69kV. The s

Compute the efficiency of the transformer, Compute the efficiency of the tr...

Compute the efficiency of the transformer of Example corresponding to (a) full load, 0.8 power factor lagging, and (b) one-half load, 0.6 power factor lagging, given that the input

Common source drain and transfer characteristics of a jfet, Q. Draw the com...

Q. Draw the common source drain and transfer characteristics of a JFET. How are they useful? The graph below shows  variation of the drain current Id as a function of the drain

Transistor, Transistor A transistor is a semiconductor device that is ...

Transistor A transistor is a semiconductor device that is employed to amplify and switch electronic signals. It is made up of a solid piece of semiconductor material, with min

Dc electric motors, T h er e are three main types -   The Shu...

T h er e are three main types -   The Shunt Connected DC motor in which the armature coils are connected in parallel with the field coils   The Serie

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