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

Determine the antennas power gain and beamwidth, Q. A paraboloidal antenna ...

Q. A paraboloidal antenna has an aperture ef?ciency of 0.6 and a diameter D = 100λ at 6 GHz. Illumination by the feed is such that the beamwidths of the principal-plane secondary p

Explain ferroelectricity, Explain ferroelectricity. Ferroelectricity: ...

Explain ferroelectricity. Ferroelectricity: - Materials of ferroelectric have a high dielectric constant that is non-linear that is, this depends to a considerable extent on t

Explain the working principle of an opto coupler, Q. Explain the working pr...

Q. Explain the working principle of an opto coupler? When it is necessary to block the voltage between one electronic circuit and another, and transfer the signal at the same t

Find the approximate bandwidth of the circuit, Q. An op amp has an open-loo...

Q. An op amp has an open-loop frequency response as shown in Figure. (a) Find the approximate bandwidth of the circuit using this op amp: (i) With a closed-loop voltage gain

Design of matching networks for amplifiers, Design a low noise amplifier us...

Design a low noise amplifier using an Infineon RF transistor BFP640. The amplifier is to be used to amplify the L2 GPS signal and so the centre frequency is 1227MHz and bandwidth 4

Find the open-circuit voltage amplification of the circuit, (a) Figure show...

(a) Figure shows a circuit containing an amplifier block. Find the open-circuit voltage amplification of the circuit. (b) Let the output terminals be connected to a load resista

Illustrate the detroit type of automation, Discuss different kinds of Autom...

Discuss different kinds of Automation and their Advantages? Illustrate the Detroit type of Automation? Discuss basic Principles and strategies automation? Discuss the industries

Growth in communications, The growth in communications over the past 60 yea...

The growth in communications over the past 60 years has been phenomenal. The invention of the transistor in 1947 and the integrated circuit and laser in 1958 have paved the way to

Explain circuit with capacitive load, Circuit with capacitive load Capa...

Circuit with capacitive load Capacitors which obey the relationship of equation are linear capacitors, since the potential difference among the conductive surfaces is linearly

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