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

Pareto Analysis, Pareto Analysis Pareto charts are based on the princi...

Pareto Analysis Pareto charts are based on the principle - "Vital Few Trivial Many". It allows user to focus attention on a few significant factors in a process. It is very us

Transformer cooling, An oil-filled transformer has a c.m.r. of 500 kVA whic...

An oil-filled transformer has a c.m.r. of 500 kVA which allows it to run continuously in an ambient of 35°C with an oil temperature rise of 50°C. The transformer has a time constan

What is meant by biasing transistor, Q. What is meant by biasing transistor...

Q. What is meant by biasing transistor? The purpose of dc biasing of transistor is to obtain a certain dc collector current at a certain dc collector voltage. These values of c

Show elementary synchronous machines, Q. Show Elementary Synchronous Machin...

Q. Show Elementary Synchronous Machines? The polyphase synchronous machine operates with direct current supplied to the field winding (assumed to be on the rotor, which is usua

Explain procedure to test the power line, Explain procedure to take shut do...

Explain procedure to take shut down and to test the power line before starting work? Ans: Study the circuit and find out the circuit breaker to be opened. Open and lock the c

Explain in brief about the robots, Explain In brief about the Robots - ...

Explain In brief about the Robots - Robot is programmed with a series of instructions that enable it to carry out a series of tasks - On the other hand, an operator manually

Show example on residential wiring, Q. A person, while driving a car in a c...

Q. A person, while driving a car in a cyclone and waiting at an intersection, hears a thumping sound when a power line falls across the car and makes contact with the chassis. The

Transient, The winding of an electromagnet has an inductance of 3H and a re...

The winding of an electromagnet has an inductance of 3H and a resistance of 15?. When it is connected to a 120 V d.c. supply, Determine:

Power system, what is speed governing frenqency control

what is speed governing frenqency control

Kirckoff, How to solve using kcl and kvl

How to solve using kcl and kvl

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