Compare with register, Electrical Engineering

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.

 

Posted Date: 4/5/2013 12:50:34 AM | Location : United States







Related Discussions:- Compare with register, Assignment Help, Ask Question on Compare with register, Get Answer, Expert's Help, Compare with register Discussions

Write discussion on Compare with register
Your posts are moderated
Related Questions

Q. Explain Integral-error or reset control? A control system is said to possess integral-error control when the generation of the output in some way depends upon the integral o

Power Spectral Density: To introduce the Power Spectral Density (PSD) of a random signal. To study classical methods for PSD estimation. To investigate model-based

Explain immediate data addressing mode (with examples) available in microprocessors. Immediate Mode: The operand given in immediate mode is the actual data itself.

What is the use of ALE The ALE is used to latch the lower order address so that it can be available in T2 and T3 and used for identify the memory address. During T1 the ALE goe

Q. Classify switching systems. In what way is stored program control superior to hard wired control? Ans: Classifications of switching systems are givenin block diagram belo

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

how much and what to write it is of 30 marks

Compute the efficiency of the transformer of Example corresponding to (a) full load, 0.8 power factor lagging, and (b) one-half load, 0.6 power factor lagging, given that the input