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

Induced voltage and inductance, Experiments conducted by Faraday and others...

Experiments conducted by Faraday and others using current carrying coils resulted in 'The Laws of Electromagnetic Induction' which state: 1)  'If the magnetic flux threading throu

Illumination, Ask question #Minimum 100A light assembly shop, 15 m long, 9 ...

Ask question #Minimum 100A light assembly shop, 15 m long, 9 m wide and 3 m up to trusses is to illuminated to a level of 200 lux. The utilization and maintenance factors are resp

What do you understand by common control, Q. What do you understand by comm...

Q. What do you understand by common control? In some switching systems, control subsystem may be an integral part of switching network itself. Such system iscalled direct contr

Super-heterodyne receiver, Write a short explanation of the principles of s...

Write a short explanation of the principles of super-heterodyne receiver. It may help to use sample block diagram to state the process. Why is the production of the intermediate fr

What is converse-hull property of bezier curve, Describe Bezier Curve ? Wha...

Describe Bezier Curve ? What is Converse-Hull Property of Bezier Curve?

Discuss the properties and uses of alnico, Discuss the properties and uses ...

Discuss the properties and uses of ALNICO. Alnico : It is an alloy of iron, nickel, cobalt and small amount of copper and aluminium. Properties are - 1. Its saturation f

Explain about blocking probabilityand grade of service, Q. Explain about bl...

Q. Explain about blocking probabilityand Grade of service? And what do you mean by delay systems in telecommunication networks? Ans: Grade of service: In loss systems, traff

Explain a common emitter configuration without a feedback, Q. Explain a com...

Q. Explain a common emitter configuration without a feedback. A simple common emitter transistor amplifier--having no negative feedback--is not an ideal amplifier. This is beca

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