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

Analog, why h parameter used in low frequency transistor amplitfier

why h parameter used in low frequency transistor amplitfier

Determine the nyquist sampling interval - radar system, Consider an S band ...

Consider an S band (3 GHz) radar with a rotating aperture antenna with a width of 3 m.  Suppose the antenna rotates at a rate of one rotation every 10 seconds.  Assume the 3 dB bea

Determine maximum length for cable, You have been asked to help on the desi...

You have been asked to help on the design of CDU's new electric vehicle. The vehicle is to be powered by a 96V, 300A battery pack and you need to decide on the maximum length you c

Carthode ray oscilloscope, with a simple circuit,explain the construction o...

with a simple circuit,explain the construction of Direct Reading Probe of a cathode ray oscilloscope

What is interfacing, What is interfacing? An interface is a shared boun...

What is interfacing? An interface is a shared boundary among the devices which includes sharing information. Interfacing is the process of making two dissimilar systems communi

Designing 100 line exchange using uni-selector, Q. Designing 100 line excha...

Q. Designing 100 line exchange using Uni-selector? Here three different designing methods for 100 line exchange are discussed: Design: Strowger switching system is designe

Determine whether the diode in circuit, Determine whether the diode (consid...

Determine whether the diode (considered to be ideal) in the circuit of Figure (a) is conducting.

Help , What''s hysteresis ?

What''s hysteresis ?

Life interactive ups systems , Normal 0 false false false ...

Normal 0 false false false EN-IN X-NONE X-NONE Life   Interactive UPS Systems

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