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 p - n junction, Explain P - N junction. P - N junction: If a ...

Explain P - N junction. P - N junction: If a p- type semiconductor is properly joined to an n-type semiconductor the contact surface that formed is termed as p-n junction. Th

Solar steam power generator, This project is about another particular appli...

This project is about another particular application of a particular embodiment of the patent: A Long Stroke Steam Engine using Solar Generated Steam. The machine elements such as

Uses of zener diode, Uses of Zener Diode Zener diodes are extensively...

Uses of Zener Diode Zener diodes are extensively used as voltage references and like shunt regulators to regulate the voltage across small circuits. While connected in parall

Survey for designing of a cross-over circuit for loudspeaker, Crossovers ar...

Crossovers are generally used with loudspeakers having multiple drivers. Loudspeakers with single drivers are unable to cover the entire frequency range i.e from low to high freque

Pulsed OFDM odulation for ultrawideband communication, i have selected this...

i have selected this paper as my semester project according to teacher we have to fully implement it. i need its full written matlab code simulink model and results. can you help m

Effect of power factor correction capacitors, For a 50kW three phase rectif...

For a 50kW three phase rectifier connected at 415 V to a point of common coupling with a short circuit capacity 500kVA modelled as an inductive source, design filters to make the s

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

Explain temperature dependency in conductors, Explain temperature dependenc...

Explain temperature dependence of electrical conductivity and resistivity in conductors. When the temperature is increased, there is a greater thermal motion in atoms that redu

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