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
explain appropriate first aid procedure to be followed in case of electric shock

direct reading probes

Q. Use of Speaker? Speaker:Basically speaker is the receiver for telephone. Speaker converts electrical signals received from local loop to acoustical signals(sound waves) that

Explain with proper diagram all the six modes of operation of programmable interval timer 8254. Mode 0: The output in mode 0 is initially low, and will stay low for the perio

how much transformer oil is used in transformers

Determine the Service and Backwash Rates The system on site is a pressure sand filter, with a service curve. The filter is backwashed using the feed pump, at a higher flow rat

Q. Determine the synchronous speed in revolutions per minute and the useful torque in newton- meters of a 200-hp, 60-Hz, six-pole synchronous motor operating at its rated full load

Determine the number of bits of a natural binary encoder that works with the quantizer: a) If the extreme levels are ±3.1 V, with a step size of 0.2 V. (b) If there are 128 q

A communication system for a voice-band (3 kHz) channel is designed for a received SNR E b /N 0 at the detector of 30 dB when the transmitter power is Ps =-3 dBW. Find the value o

Q. When the quantum step size δv and the step size of f (t) are the same as in , the quantizer is said to have a gain of unity. If, on the other hand, the quantizer has a gain of K