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

Define sampling frequency, Define Sampling Frequency? Since real analog...

Define Sampling Frequency? Since real analog signals consist of several frequencies, spectrum of the input signals should be limited to make sure that no signal energy exists a

Determine the voltage transfer function, Q. Determine the voltage transfer ...

Q. Determine the voltage transfer function of the low pass filter circuit shown in Figure, and find the expression for ω 0 .

Information processing, Information Processing: Information processin...

Information Processing: Information processing is the key to improving cutting and productivity costs of excess work. Converting information to a computerized format in GIS i

Evaluate the form factor, Evaluate the form factor: For the saw tooth ...

Evaluate the form factor: For the saw tooth wave illustrated in Figure, find out the form factor. Figure: Saw Tooth Wave Solution Time period of given wave i

Variations of drain current - drain voltage, Q. Consider the common-source ...

Q. Consider the common-source JFET circuit shown in Figure with ?xed bias. Sketch the sinusoidal variations of drain current, drain voltage, and gate voltage superimposed on the di

Emitter follwer, Ask questertion #Minimum 100 words accepted#

Ask questertion #Minimum 100 words accepted#

Can you show binary number formats, Q. Can you show Binary Number Formats? ...

Q. Can you show Binary Number Formats? We in general write binary numbers as a sequence of bits (bits is short for binary digits) and we have defined boundaries for these bits.

Explain the working of a depletion type mosfet, Q. With a cross sectional v...

Q. With a cross sectional view, explain the working of a depletion type MOSFET Draw a biasing amplifier circuit DEPLETION-TYPE MOSFET: Two types of FETs: JFETs and MOSFETs. MOS

What do you mean by transconductance, Q. What do you mean by Transconductan...

Q. What do you mean by Transconductance? The  control that the gate voltage has over the drain current is measured by transconductance and is similar to the transconductance of

Solve for the time-domain forced response of the resultant, Consider an RLC...

Consider an RLC series circuit excited by v(t) = V m cos ωt in the time domain. By using superposition, solve for the time-domain forced response of the resultant current through

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