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

Transformers., Calculations of sending line voltage

Calculations of sending line voltage

Develop an electric equivalent network, Q. For the mechanical spring-mass-f...

Q. For the mechanical spring-mass-friction system shown in Figure, the differential equation relating the force F(t) and the velocity u(t) is given by  where M is themass,D

Explain diffusion, Explain Diffusion. Diffusion : Though, the mobili...

Explain Diffusion. Diffusion : Though, the mobility of the carriers in a semiconductor is greater than the electrons in metals, the conductivity in the former is much less t

Obtain plots by using probe, Q. A dc source is connected to a series RLC ci...

Q. A dc source is connected to a series RLC circuit by a switch that closes at t = 0, as shown in Figure, with initial conditions. For the values of R = 20, 40, and 80 , solve for

Illustrate the components of flexible manufacturing system, What is FMS? Il...

What is FMS? Illustrate the components of Flexible Manufacturing System? Discuss the different kinds of Material Handling and Storage Systems?

Hybrid meters, Hybrid Meters These meters have electronic measurement ...

Hybrid Meters These meters have electronic measurement circuits but show is by impulse counters/stepper motors. Accuracy is classically class 1.0 or 2.0 and commonly these met

What is meant by a bus, A bus is a collection of conducting lines that carr...

A bus is a collection of conducting lines that carrier's data, address, & control signals. A bus is two or many wire communication technique. A bus which communicate among two

Microprocessor, Memory map of tpa in a personal computer and explain such o...

Memory map of tpa in a personal computer and explain such of the areas in brief

The three-phase alternator, The Three-phase alternator In this case, t...

The Three-phase alternator In this case, three separate sets of coils are wound on the stator and connected to produce three separate outputs. Because of the physical displace

Mention the desirable properties of fuse materials, Mention the desirable p...

Mention the desirable properties of fuse materials. A fuse material must possess the properties as follows: Low resistivity - It means, thin wires can be used that will of

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