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

Stator voltage control methods - motor control , Stator Voltage Control Met...

Stator Voltage Control Methods By  controlling  the applied voltage  the speed  of an  induction motor  can be  controlled. Since  the output  torque of 3-? induction motor  i

Analog circuit analysis, consider a single stage ce amplifier with rs=1kohm...

consider a single stage ce amplifier with rs=1kohm,r1=50ohm,r2=2kohm,rc=1kohm,rl=1.2kohm,hfe=50,hie=1.1kohm,hoe=25microamp/volt and hre=2.5*10-4

Evaluate the current flowing in the direction from b to a, Q. A beam contai...

Q. A beam containing two types of charged particles is moving from A to B. Particles of type I with charge +3q, and those of type II with charge -2q (where -q is the charge of an e

What are the features of clamping circuits, Q. What are the features of cla...

Q. What are the features of clamping circuits? The clamping circuit does not change the peak to peak or r.m.s value of the waveform .Thus the input waveform and clamped output

Determine the output resistance of the circuit, Q. (a) Consider the ampl...

Q. (a) Consider the amplifier block in the circuit configuration of Figure. Find an expression for v 2 /v 1 in terms of R i , R o , and A of the amplifier. (b) Determine the

Find maximum probable percentage error in the measurement, Q. A current of ...

Q. A current of 65 A is measured with an analog ammeter having a probable error of ± 0.5% of full scale of 100 A. Find the maximum probable percentage error in the measurement.

Is the mosfetoperating in the active region, Q. A depletion MOSFET is given...

Q. A depletion MOSFET is given to have large V A , V P = 2.8V, I DSS = 4.3 mA, v DS = 4.5V,and v GS = 1.2V. (a) Is theMOSFEToperating in the active region? (b) Find iD.

Show the bode plot, Question: (a) Show the Bode Plot, showing the relev...

Question: (a) Show the Bode Plot, showing the relevant corner frequencies and slopes, for the unity feedback system whose open loop transfer function is given by: (b) T

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

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