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

Discuss the operation of the jk flip-flop, Q. Figure shows the master-slave...

Q. Figure shows the master-slave JKFF. Assuming that the output changes on the falling edge of the clock pulse (i.e., when the clock pulse goes from high to low), discuss the opera

Sampling, Write an m-file "sampling.m", which will take as an input:  a sig...

Write an m-file "sampling.m", which will take as an input:  a signal and a sampling step and will display the sampled signal and the magnitude of its Fourier transform. sampling

Interpoles, These are small poles fixed to the yoke and spaced in b/w the m...

These are small poles fixed to the yoke and spaced in b/w the main poles. They are wound with comparatively few heavy gauge Cu wire turns and are connected in series with the armat

What is the difference between tdma and fdma, TDMA: Time division multi...

TDMA: Time division multiple access (TDMA) is a channel access method for shared medium (generally radio) networks. It permits several users to share the similar frequency chan

Obtain voltage sing the laplace transform method, Obtain v(t) in the circui...

Obtain v(t) in the circuit of Figure by using the Laplace transform method.

Ampere''s theorem, The    French    scientist,    Ampere,    (1775- 1836), ...

The    French    scientist,    Ampere,    (1775- 1836), conducted a series of experiments on the force between current carrying conductors. He found that: force per metre of wire (

Write explanatory notes on hard disk drive controller, Write explanatory no...

Write explanatory notes on Hard disk drive controller. Hard disk drive controller: It converts instructions from software running upon the computer to the electrical signals

Hot line maintenance, how do you define the expertise for this hot line mai...

how do you define the expertise for this hot line maintenance?

Explain the memory map of transient program area in a pc, Draw the memory m...

Draw the memory map of TPA in a personal computer and explain different areas. The transient program area holds the DOS operating system and other programs which control the co

Find the parameter values for channel mosfet, Q. Find the parameter values ...

Q. Find the parameter values V T and I DSS for a p- channel MOSFET with i D = 0 when v GS ≤-3 V, and i D = 5 mA when v GS = v DS =-8V.You may neglect the effect of v DS on

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