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

Central energy conservation fund, Central Energy Conservation Fund Thi...

Central Energy Conservation Fund This fund is to be set up at the Centre to develop the delivery mechanism for large-scale adoption of energy efficiency services like as perfo

What is polymerised resultant of phenol and formaldehyde, Phenol and Formal...

Phenol and Formaldehyde are polymerised to a resultant product known as (A) PVC.                                  (B) bakelite. (C)  Polyester.                        (D)

Transmission, what are the grond clearance for 220KV overhead transmission ...

what are the grond clearance for 220KV overhead transmission lines?

Synchronization, Synchronization:  Whatever type of weep is used, it must ...

Synchronization:  Whatever type of weep is used, it must be synchronized with the signal being measured. Synchronization has to be done to obtain a stationary pattern. This requir

Fixed capacitor, what is the contruction of a fixed capacitor

what is the contruction of a fixed capacitor

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:

Explain biased and double clipper circuits, Q. Explain biased and double c...

Q. Explain biased and double clipper circuits.   Clipper can be either forward biased or reverse biased. If a battery is connected in series with the diode in a positi

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