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

Frequency-controlled induction-motor drives, Q. Frequency-controlled induct...

Q. Frequency-controlled induction-motor drives ? The converters employed for variable-frequency drives can be classified as: • Voltage-source inverter (which is the only one

MR, how to design a single phase distribution circuit from a supply point t...

how to design a single phase distribution circuit from a supply point to a load(lights)

Air gaps, What is the main thing to look for in calculations of air gaps?

What is the main thing to look for in calculations of air gaps?

Testing stationarity, 1)  Use plot of the stock return and consider the Aut...

1)  Use plot of the stock return and consider the Autocorrelation Function to determine the auto-regressive structure of the data and explain why you think the return is stationary

Evaluate the transfer function of the nested-loop system, Q. Determine the ...

Q. Determine the transfer function C(s)/R(s) of the nested-loop feedback system shown in Figure.

Basic architecture of digital switching systems, Q. Explain the basic archi...

Q. Explain the basic architecture of digital switching systems. Explain in detail companding. Ans: A simple N X N time division space switch is displayed in Figure. Switch

Digital control system, Please suggest recent application of DCS WHICH I CA...

Please suggest recent application of DCS WHICH I CAN USE AS A TOPIC OF MY Ph.D.

Explain cold rolled grain oriented steel, Discuss the properties and uses o...

Discuss the properties and uses of Cold rolled grain oriented steel. Cold rolled grain oriented steel:  Grain orientation of silicon steel is acquired by a special technique

Architecture for Real-time systems, The paper should be written in the form...

The paper should be written in the format of a paper to be submitted to a conference (IEEE). There should be a minimum of three journal paper references. The topic should be a disc

Determine the mmf of the exciting coil, Q. For themagnetic circuit shown in...

Q. For themagnetic circuit shown in Figure, neglecting leakage and fringing, determine the mmf of the exciting coil required to produce a flux density of 1.6 T in the air gap. Them

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