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

Transformers, determine the efficience of a 16 KVA transformer for the full...

determine the efficience of a 16 KVA transformer for the full-load,unit power factor

Determine the equivalent resistance of circuit, Determine the equivalent re...

Determine the equivalent resistance of circuit: Determine the equivalent resistance of network across the source terminals and find the current drawn from the source.

Transfer function, derive transfer function of S= 2.25+j4.5

derive transfer function of S= 2.25+j4.5

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

Derating factor, Conductors with a temperature rating of 75 degrees C are r...

Conductors with a temperature rating of 75 degrees C are run in an area with an ambient temperature of 55 degrees C. What would be the de-rating factor that should be applied?

Addressing model , Addressing Model As we have learned  already  that ...

Addressing Model As we have learned  already  that each instruction has two  parts  one is  op code and another  is operand. Op code  specified  the type  of operations to be

Feedback amplifier, explain working pricipal of nagative resistance oscilla...

explain working pricipal of nagative resistance oscillator

Points of verification, Points of Verification of Connection i) Phase...

Points of Verification of Connection i) Phase association ii) CT polarity iii) VT polarity iv) Phase angles v)  Phase sequence vi) System conditions - unbalanc

Discuss the feature of pentium in brief, Discuss the feature of Pentium in ...

Discuss the feature of Pentium in brief. The Pentium is a 32-bit superscalar, CISC microprocessor.  The word superscalar is used for the processor that has more than one pipeli

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