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

Digital Electronics, You are expected to do the experimentation on digital ...

You are expected to do the experimentation on digital electronics and realize the result...

What is tunnel effect and applications of tunnel effect, What is tunnel eff...

What is tunnel effect? Discuss the Alpha decay as an example of tunnel effect. Prove that tunneling increases on decreasing the height and width of the barrier. Explain what do you

Case 2 a>b - program description, Case 2 ( A>B) Suppose XX = 05H ( stor...

Case 2 ( A>B) Suppose XX = 05H ( stored  in A ) And  YY = 02H ( stored  in B). Then carry  flag will  reset by CMP instruction, since  A> B in this  case JNC  will transfer the

Find the expressions for the inductor current, Consider the RL circuit of F...

Consider the RL circuit of Figure with R = 2, L = 5H, and v(t) = V = 20 V (a dc voltage source). Find the expressions for the inductor current i L (t) and the inductor voltage v L

Cro, oscilloscope probes specification & performance

oscilloscope probes specification & performance

MUX, Is it used to replace the basic gates ?

Is it used to replace the basic gates ?

Rectifier, the forward resisitance of a semi conductor diode is 10 ohm, two...

the forward resisitance of a semi conductor diode is 10 ohm, two such diodes used in full wave rectifier subjectto a sinusoidal voltage wave form. given by v(t)=308 , sin(100 pi t)

Explain fundamentals of load flow analysis, Explain Fundamentals of Load Fl...

Explain Fundamentals of Load Flow Analysis The calculation of electrical power system load flow or current flow is a problem which has no direct solution. It is not that a solu

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