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. The voltage wave form of Figure is applied to an RLC series circuit with R = 2, L = 2H, and C = 1 F. Obtain i(t) in the series circuit. (Note that the capacitor and inductor va

what is an useful life time in bathtub curve?

Define voltage divider rule Voltage drop at every resistor that connected by serial can be search by using voltage divider rules (VDR).

The signal m(t), whose frequency spectrum M(f ) is to be transmitted from one station to another. Let the signal be nor- malized, i.e., -1 ≤ m(t) ≤ 1. Find the bandwidth of the mod

Q. Elucidate the process of inter-register signalling. Ans: Registers are used in common control exchanges to store as well as analyze routing data. They are provided on a

Since a controlled source acts at its terminals in the same manner as does an independent source, source conversion and application of KCL and KVL relations are treated identically

Break over  voltage of Finger Voltage   The  minimum  forward voltage  when the gate  is opened  at which SCR  starts  conducting  heavily is called  the break over  voltage. To

Explain Thermosetting Plastic Materials. Thermosetting Plastic Materials: They undergo huge changes while subjected to high temperatures for rather sometimes. They are call

A rocket on a test stand is modeled as a column clamped at x = 0 and free at x = L, and subjected to compressive force P applied at the free end. The direction of load P remains

Q. Illustrate the principles of operation of centralized SPC and distributed SPC and compare their performance. Ans: In centralized control, all control equipment is replac