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. What is Balanced Budget? Balanced Budget: An annual budget (like for a government) in that revenues perfectly offset expenditures, so that there is neither a deficit nor a s

(a) The circuit of Figure 1 represents an amplifier-speaker connection. The filter is a low pass filter which is connected to the woofer. The filter is a -network. (i) Design a

Design a Mealy system whose output is 1 iff there have been exactly two 1's followed by a 0 and then a 1. (a) Assume overlapping is allowed (b) Assume overlapping is not

Q. Schematic Diagram of LED based System ? As shown in the two schematic diagrams above, the LEDs in a seven-segment display are not isolated from each other. Rather, eith


Q. Common-Drain JFET Amplifier? Figure (a) shows a CD JFET amplifier in which resistors R 1 , R 2 , and R SS are selected by the bias design, and capacitors CG and CS are chos

The assignment is to plan, design and write a PLC program on the FX Training Software using a PART SUPPLY CONTROL SYSTEM based on the requirement specification outlined be

Q. A voltmeter with a full scale of 100 V has a probable error of 0.1% of full scale. When this meter is employed to measure 100 V, find the percent of probable error that can exis


Methods: A successful GIS operates according to a well-designed plan and business rules that are the models and operating practices unique to every organization. GIS gives i