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

Distinguish between harmonized and non-harmonized standards, (a) A digital ...

(a) A digital product is being tested for compliance to CISPR 22 Class A requirements. The receiving antenna is placed a distance of 30 m away and is attached to a 50 V receiver w

What is polyphase induction machine performance, Q. What is Polyphase Induc...

Q. What is Polyphase Induction Machine Performance? Some of the important steady-state performance characteristics of a polyphase induction motor include the variation of curre

Robotic, Ask questCompute the mean and variance of a four-level image with ...

Ask questCompute the mean and variance of a four-level image with histogram p(z\ ) = 0.1, p{zi) = 0.4, ?(1?) =0.3, p{za) = 0.2. Assume that z\ = 0, zi = 1, z$ = 2, and ? — ?. i

The b-h curve for ferromagnetic materials, Ferromagnetic materials have som...

Ferromagnetic materials have some 'residual magnetism' even when the current (proportional to H) is zero. Material with strong residual magnetism are useful for making permanent ma

Bonding forces and energy bands in solids, Bonding Forces and Energy Bands ...

Bonding Forces and Energy Bands in Solids Electrons are controlled to sets of discrete energy levels in atoms, with large gaps among them in which no energy state is obta

Determine the admittance of the parallel combination, Q. The voltage across...

Q. The voltage across a parallel combination of a 100- resistor and a 0.1-µF capacitor is 10 cos(5000t +30°) V. Determine the admittance of the parallel combination and find the c

Designing of a 2 way cross-over circuit for loudspeaker, Loudspeakers using...

Loudspeakers using single driver are unable to cover the entire frequency band from low frequency to high frequency. Sometimes multiband frequency is required for the bass enhancem

What is schokleys equation, Q. What is Schokleys Equation. Find out a relat...

Q. What is Schokleys Equation. Find out a relation between Vgs and Ids? Schokleys Equation is used for defining the relation between the Gate source voltage and the Drain curre

Homework, voice signal is measured at 3.21692v and resides in an interval f...

voice signal is measured at 3.21692v and resides in an interval from 3.20v to 3.30. How big is an interval? MAx possible voltage?

Show binary coded decimal number system, Q. Show Binary Coded Decimal Numbe...

Q. Show Binary Coded Decimal Number System? If we analysis single digit values for hex, the numbers 0 - F, they represent the values 0 - 15 in decimal, and occupy a nibble. Fre

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