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

Machine, function of a commutator in a DC motor

function of a commutator in a DC motor

Explain different routing plan adopted in a network, Q. Explain different R...

Q. Explain different Routing plan adopted in a Telephone network.  Ans: Hierarchical networks are capable of handling heavy traffic where required, and at the same time us

Draw the impedance diagram of the system, The one line diagram of a simple ...

The one line diagram of a simple power system is shown below.  The data of the system are given in the table below.  (a) Draw the impedance diagram of the system and mark all im

Add the contents of register - add instruction , Add the Contents of Regist...

Add the Contents of Register   This  instruction is used to add the contents  of register R with  the contents  of accumulator  and result  of operation is stored  in the accumu

Amper circuital lw, the plot of amper circuital law by using matlap?

the plot of amper circuital law by using matlap?

Determine the current flow, Q. A charge q(t) = 50 + 1.0t C flows into an el...

Q. A charge q(t) = 50 + 1.0t C flows into an electric component. Find the current flow.

Working principle of a d.c. generator, Q.  Explain the working principle o...

Q.  Explain the working principle of a d.c. generator. Explain clearly the function of commutator in d.c. machines. Sol. Working principle of a D.C. generator: For the 2- po

Colpitts oscillator, how does a colpitts oscillator works an also explain t...

how does a colpitts oscillator works an also explain the principle

Find the value of noncoherent source, If E b /N 0 = 20 in a coherent ASK s...

If E b /N 0 = 20 in a coherent ASK system, find the value of Eb/N0 that is needed in a noncoherent ASK system to yield the same value of Pe as the coherent system.

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