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
Prepare the assembly code to make a Digital Volt Meter that shows the message and the correct voltage on the LCD. Once you managed to display the hex value for the conversion you w


For the 3 bus system shown below all values are given in pu on a 100MVA base (a) Use Matlab functions lf gauss and lf Newton to find power flow solution for the system, accurate

What do you mean by the term procedure? PROC: The PROC and ENDP directives specify the start and end of a procedure. Such directives force structure while the procedure is cle

Q. Explain about Dial Pulses? Dial pulsing (sometimes known as rotary dial pulsing) is the method basically used to transfer digits from a telephone set to the local switch. Pu

Q. Explain about Adaptive Control System? Another type of control system that makes use of the computer is known as adaptive control, which is functionally represented in Figur

In the previous two years, a lot of innovation has come in the mobile computing world. Apple has launched very imaginative mobile phone, iphone and ipad along with app store. Googl

Quality Tools for Improvement The environment of the business of power sector has been modified recently largely because of partial deregulation of this sector. The required h

Breifly explain abrasive jet machining in Briefly explain the following key terms in electrochemical machining (a) Electrolytes (b) ECM tooling techniques with suitable ex

Assembly Language Programming  In this   chapter  we will   discuss  programming  in assembly  language and  machine  language. The  difference  in machine  assembly  and high