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. Write a short note on the frequency response of a R-C coupled amplifier. At low frequencies ( , the reactance of coupling capacitor Cc is quite high and hence very small pa

Optimal Filtering A system identi?cation structure is shown in Figure 1. The discrete-time signal [ ] forms the input to an unknown system represented by a moving average

Revision  of Basics Although  it is  assumed in this book  that the  reader has  enough  knowledge of  various number systems ( binary, octal and hexadecimal and their relation


Energy Conservation Our country has a vast potential of energy saving. It is estimated in which measures for energy conservation and improving energy efficiency have the pote

how fet transistor works in self bias

Mould Casting: Plaster Moulding : In this method, the mould is prepared in gypsum or plaster of paris. In practice, the plaster of paris is mixed with tale, asbestos, fibers

Get the equivalent inductance at terminal in circuit: Acquire the equivalent inductance at terminal AB in circuit shown in Figure. Solution Inductances also follow the

define all the symbols with their units of DC generater

Q. A certain 10-hp, 230-V motor has a rotational loss of 600 W, a stator copper loss of 350 W, a rotor copper loss of 350 W, and a stray load loss of 50 W. It is not known whether