Compare with register, Electrical Engineering

Assignment Help:

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.

 


Related Discussions:- Compare with register

What is message demodulation, Q. What is Message Demodulation? The majo...

Q. What is Message Demodulation? The major advantage of the conventional (standard) DSB AMsignal transmission is the ease with which the signal can be demodulated. Themessage s

Scr, what is finger voltage?

what is finger voltage?

Draw the implementation of time invariant system, Draw the implementation o...

Draw the implementation of time-invariant system A linear time-invariant system is described by the difference equation: y[n] = 2x[n] - 3x[n - 1] + 2x[n - 2]   Draw the i

Superhet receiver, Write a short summary of the AM superhet receiver, in ex...

Write a short summary of the AM superhet receiver, in exacting consider how the demodulation stage works, and remark on the choice of component values used.

Parabola by offset method, how many points are required to make an parabola...

how many points are required to make an parabola in offset method when vertical point has 4 points

What is terminate and stay resident, What is TSR? TSR: The TPA also as ...

What is TSR? TSR: The TPA also as TSR stand for terminate and stay resident programs which remain in memory in an active state till activated by a hot-key sequence or other eve

Calculate the pu voltage and line to line voltage, The one line diagram of ...

The one line diagram of a simple power system is shown below. The data of the system are given in the table below. (a) Draw the impedance diagram of the system and mark all impe

Phantom or fictitious loading method, Phantom or Fictitious Loading Method ...

Phantom or Fictitious Loading Method While the capacity of meters under test is extremely high, testing with actual load method would includes a considerable loss of power and

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd