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 are the various flags used in 8085, The various flags are: - Sign flag...

The various flags are: - Sign flag,  Axillary flag, Zero flag, Parity flag, Carry flag.

Bcd to excess 3 code converter, What are the industrial applications of the...

What are the industrial applications of the project bcd to excess 3 code converter?

Determine the voltages, Question: a) For the circuit shown in figure ...

Question: a) For the circuit shown in figure (i) Determine the voltages across R1 and R2 and (ii) Determine the current which flows across R1 and R2. Both D1 and D2 a

Show npn common emitter amplifier, Q. Show NPN Common Emitter Amplifier? ...

Q. Show NPN Common Emitter Amplifier? The common emitter configuration lends itself to voltage amplification and is the most common configuration for transistor amplifiers.

Determine the power angle delta, A synchronous motor has the following para...

A synchronous motor has the following parameters per phase. E=2kv, Eo=5kv, X2=3ohms, and I=700amps. Draw the phasor diagram and determine (a) power angle delta, (b) active po

Explain ferrites and its uses in high frequency devices, Explain ferrites a...

Explain ferrites and its uses in high frequency devices. A group of magnetic alloys show the property of magnetisation that change, with percentage of various constituent atoms

Transformers, What is the difference between “Insulating,” “Isolating,” and...

What is the difference between “Insulating,” “Isolating,” and “Shielded Winding” transformers? Can Acme Transformers be reverse connected? . Can Transformers develop Three Phase po

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