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
Define ruled surface and surface of revolution. Illustrate in detail B-spline and cubic Bezier surfaces with their important properties.

advantages and disadvantages of direct and r c coupling

what is the purpose of superposition theorem

a. Describe why a three-phase induction motor rotates always with a speed less than the synchronous speed. b. State the principle of operation of a capacitor start single-phase

SUB Instruction Op code  format is of SUB  instruction is Replace  the three bit code  of the register R from   to obtain the op code of the  required SUB  instruction . o

Establish the relationship between duty ratio and output voltage

A three-phase, wye-connected, 400-V, four-pole, 60-Hz induction motor has primary leakage mpedance of 1 + j2  and secondary leakage mpedance referred to the primary at standstill

1. The photon fluence rate is 10 7 photons mm -2 sec -1 for a beam of γ rays. One fourth of the photons have energies of 100 keV, one half have energies of 80 keV and the remain

Sign flag Since D 7  bit in the  results is 0sign flag is reset. This also  shown that the results is positive.

aliasing with message spectrum and two frequency shifted replica and remedies to combat aliasing