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 do you mean by retention of risk, Q. What do you mean by Retention of ...

Q. What do you mean by Retention of Risk? Retention of Risk: In case of this method, the organization voluntarily accepts the risk since either the risk is insignificant or its

Nodal Analysis, sample problem and solutions with answer

sample problem and solutions with answer

Several forms of interference, Q. Several forms of interference? Interf...

Q. Several forms of interference? Interference may take several forms: ac hum, higher frequency pulses and "whistles," or erratic waveforms commonly known as static. Interferin

Compareson, compear copper and aluminum conductore in termes of price ,weig...

compear copper and aluminum conductore in termes of price ,weight,resistance for equal length .

Phasor diagram, The aim of this question is to help you become familiar wit...

The aim of this question is to help you become familiar with phasor diagrams, and in particular to see how the diagram changes when one of the system parameters (in this case resis

Find dispersion relation for free electron, Find Dispersion Relation for Fr...

Find Dispersion Relation for Free Electron Question: Find the dispersion relation for a free electron, and, thus, observe the relation between its rest mass and effective ma

Microprocessor, I would like to know if you can help me with the attached m...

I would like to know if you can help me with the attached microprocessor assignments my email address is . also let me how much in cost in $US

Determine the voltage gain , (a) A second order Sallen and Key Low Pass Act...

(a) A second order Sallen and Key Low Pass Active Filter has these component values R 1 =R 2 =15 kΩ, C 1 =C 2 =1 nF and the feedback resistors are R 3 =3.9 kΩ and R 4 =2.3 kΩ

Partial indicators method, Partial Indicators Method The partial indic...

Partial Indicators Method The partial indicators technique consists of calculating various measures of the financial, operating, commercial, and quality of a business's perfor

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