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

What is the physical length of this cable, Q. It is desired to cut a λ/4 le...

Q. It is desired to cut a λ/4 length of RG58A/U cable (ε r = 2.3) at 150MHz.What is the physical length of this cable?

DLD, DESIGN SR LATCH WITH UNIVARSAL LOGIC GATES.DRAW AND EXPLAIN THE LOGIC ...

DESIGN SR LATCH WITH UNIVARSAL LOGIC GATES.DRAW AND EXPLAIN THE LOGIC DIAGRAMS

Explain the working of a photo - transistor with a sketch, Q. Explain the w...

Q. Explain the working of a photo - transistor with a sketch A second optoelectronic device that conducts current when exposed to light is the PHOTOTRANSISTOR. A phototransisto

Discuss stepper motor interfaced to the 82c55, Discuss Stepper motor interf...

Discuss Stepper motor interfaced to the 82C55. A stepper motor rotates into steps in response to digital pulse input. There shaft of the motor rotates in equivalent increments

Show function of compensating plate in interferometer, Q. Show Function of ...

Q. Show Function of Compensating Plate in interferometer? In absence of plate G2 the reflected ray passes the plate G1 twice, whereas the transmitted ray does not passes even o

Factors involved in the voltage build up of shunt generator, Q.   List and ...

Q.   List and explain the factors involved in the voltage build up of shunt generator. Ans. following factors are involved in voltage build up of shunt generation

Power distribution, 1.  Establish importance of Distribution Planning with ...

1.  Establish importance of Distribution Planning with help of suitable example.     2.  Explain different distribution planning methods.       3.Explain the six level interv

Determine the system active power, A three-phase, 4160 V, 60 Hz, 3000 kVA g...

A three-phase, 4160 V, 60 Hz, 3000 kVA generator supplies the following three phase loads:  A 00 kVA at .7 pf lagging, D 00 kVA at .9 pf lagging, and C 50 kVA at unity pf.

Composition of mosfet, Composition of MOSFET  In a test pattern the P...

Composition of MOSFET  In a test pattern the Photomicrograph of two metal-gate MOSFETs. Probe pads for two gates and three source or drain nodes are entitled.Generally the se

Advantages of subscriber loops signalling, Q. Advantages of subscriber loop...

Q. Advantages of subscriber loops signalling? (i) Information can be exchange between processors much more faster than when channel associated signalling is used. (ii) As 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