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

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

Bad effects of armature reactions, Q.  What is meant by armature reaction....

Q.  What is meant by armature reaction. Explain briefly the bad effects of armature reactions.   Sol. By armature reaction is meant the effect of magnetic field set up

Pn junction, the depletion layer in the pn junction is caused by

the depletion layer in the pn junction is caused by

DSP-chebyshev, Consider Chebyshev Type I versus Chebyshev Type II (also cal...

Consider Chebyshev Type I versus Chebyshev Type II (also called inverse Chebyshev) Ölters. Which one should be used based on the following criteria? (If there is no difference betw

Explain the construction of synchronous machines, Explain the Construction ...

Explain the Construction of Synchronous Machines? Basically all synchronous machines require a DC excited field winding in order to produce magnetic flux. For majority of machi

Explain emergency repairs to rail fracture, Q. Explain Emergency Repairs to...

Q. Explain Emergency Repairs to rail fracture? Emergency Repairs - The fractured rails shall be joined by using the arrangements clamps, fish plates. If the gap at fracture doe

Show television waveform, Q. Show television waveform? The television w...

Q. Show television waveform? The television waveform representing one scan is illustrated in Figure. A blanking pulse with a duration of 0.18 of the horizontal - sweep period T

Defective metering and meter reading errors, Defective Metering and Meter R...

Defective Metering and Meter Reading Errors Defective Metering Tampered, slow running, stalled, damaged meters are a cause of huge losses to the utility. The electromecha

Torque-speed characteristics of 3-phase induction motors, Torque-Speed Char...

Torque-Speed Characteristics of 3-Phase Induction Motors Because the torque-slip characteristic is one of themost important aspects of the inductionmotor, we will now develop a

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