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

Determine the total power in balanced delta-connected load, Q. Two wattmete...

Q. Two wattmeters are used, as shown in Figure, to measure the power absorbed by a balanced delta-connected load. Determine the total power in kW, the power factor, and the per-pha

Determine the dielectric constant of air in practically, The dielectric con...

The dielectric constant of air is practically taken as (A) more than unity.                         (B) Unity.  (C) less than unity.                           (D) Zero.

What do you mean by lumped-circuit elements, Q. What do you mean by Lumped-...

Q. What do you mean by Lumped-circuit elements ? Electric circuits or networks are formed by interconnecting various devices, sources, and components. Although the effects of e

Design a circuit using real components, The circuit shown below is a protot...

The circuit shown below is a prototype 4 th - order low-pass filter which is required to meet the specification given. However the specification is not met due to inadequate atten

Illustrate the photo-conductive cell, Illustrate in detail digital encoders...

Illustrate in detail digital encoders. Illustrate the following with their application: Photo-conductive cell Photo-voltaic cell

Amplifier, what is one common applicable for CB amplifier

what is one common applicable for CB amplifier

What are the uses of mosfet, Q. What are the uses of MOSFET? The most c...

Q. What are the uses of MOSFET? The most common use of MOSFET transistors today is the CMOS (complementary metallic oxide semiconductor) integrated circuit which is the basis f

Representation of the control system, Question: (a) The forward path t...

Question: (a) The forward path transfer function of a unity feedback control system is given by: (i) Draw the labelled block diagram representation of the control system.

Minimize f in a pos form and obtain a possible realization, Q. The truth ta...

Q. The truth table for F(A,B,C) = Mi (0, 1, 6, 7) is as follows: (a) Express F in a canonical product-of-sums form. (b) Minimize F in a POS form and obtain a possible re

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