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

Querying the gis, Querying the GIS: Interfaces which use the querying...

Querying the GIS: Interfaces which use the querying facility are available with the RDBMS. In the network-mapping environment, these give accurate and reliable information to

Calculate the minimum analog output voltage, Q. For a 6-bit weighted-resist...

Q. For a 6-bit weighted-resistor D/A converter, if R is the resistor connected to the MSB, find the other resistor values needed, and calculate the maximum analog output voltage, t

Model and simulaions, a short review article on the classification of time ...

a short review article on the classification of time frame

Explain frequency response curve of a rc coupled amplifier, Q. Explain the...

Q. Explain the frequency response curve of a  RC coupled amplifier The frequency response curve of a typical RC coupled Amplifier is shown below: In mid frequency range

Framework for indicators in electricity sector, Framework for Indicators in...

Framework for Indicators in Electricity Sector A framework has been developed and a set of core indicators for electricity Sector has been proposed. In the first example, mapp

Switching characteristics, Switching Characteristics The switching  cha...

Switching Characteristics The switching  characteristic  of an IGBT  during  turn on and turn off time all  shown  in the sum of delay time  and rise time gives  the total  tur

R-C phase shift oscillator , Sketch the circuit diagram of a 4- ladder netw...

Sketch the circuit diagram of a 4- ladder network R-C phase shift oscillator and explain its principle of operation. Also determine the gain of the basic amplifier necessary for th

Assinment, Ask question #Minimum mechanism of microwave communication 100 w...

Ask question #Minimum mechanism of microwave communication 100 words accepted#

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