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

describe the practical application of series resonance in ac circuits

Design a recycling MOD 19 up counter using JK FFs. In your design, include the logic circuit diagram and the timing diagram output that counts from 000002 = 010 to 100112 = 1910. C

why armature lamination notched in outer periphery

An electromechanical voltmeter with internal resistance of 1 k and an electronic voltmeter with internal resistance of 10 M are used separately to measure the potential differenc

Q. Show Operation on JFET? The junction in the JFETis reverse-biased for normal operation.No gate current flows because of the reverse bias and all carriers flow from source to

find the net value of power if an average value of energy is assumed to be $0.05/KWh, the capacity value is $30/kw-yr ...

Q. Show the Octal Number System? Though this was once a popular number base, especially in the Digital Equipment Corporation PDP/8 and other old computer systems, it is rarely

Determine the disadvantages of GPS system -  Maps not up to date hence instructed to carry out an incorrect manoeuvre (for example turn into a road that no longer exists) -

what is the limitations of maximum power transfer thorem ?