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

Show the force exerted on each is about one million tons, Q. Consider two 1...

Q. Consider two 1-C charges separated by 1min free space. Show that the force exerted on each is about one million tons.

Make a plot of the signal, In order to demonstrate aliasing, make a plot of...

In order to demonstrate aliasing, make a plot of the signal x(t) = 3 cos 2π10t - cos 2π30t which approximates a square wave with W = 30 Hz. If the sample points are taken at

Determine speed of the rotor field relative to rotor winding, Abalanced thr...

Abalanced three-phase, 60-Hz voltage is applied to a three-phase, two-pole induction motor. Corresponding to a per-unit slip of 0.05, determine the following: (a) The speed of t

Explain the suitability of aluminium, Explain the suitability of aluminium ...

Explain the suitability of aluminium  that is used as electrical conducting materials. Aluminium : Conductors are appropriate for ambient and very high temperature. Use of alu

How clock signal is generated in 8086, How clock signal is generated in 808...

How clock signal is generated in 8086?what is the maximum internal clock frequency of 8086? Clock input 33% square wave from external clock generator .the external clock genera

What do you mean by retention of risk, Q. What do you mean by Retention of ...

Q. What do you mean by Retention of Risk? Retention of Risk: In case of this method, the organization voluntarily accepts the risk since either the risk is insignificant or its

Factors involved in the voltage build up of shunt generator, Q.   List and ...

Q.   List and explain the factors involved in the voltage build up of shunt generator. Ans. following factors are involved in voltage build up of shunt generation

Explain standby mode of operation in spc organization, Q. Explain Standby m...

Q. Explain Standby mode of operation in SPC organization? Standby mode of operation is the simplest of dual processor configuration operations. Generally one processor is activ

Perform analysis and calculate the values of vgs, A small signal amplifier ...

A small signal amplifier circuit is given in figure Q 4. The values of RD and RS must be set such that the gain of the system is 8. It is also known that Vgs = ¼ Vp. a). Per

What are the applications of jfet, Q. What are the applications of JFET? ...

Q. What are the applications of JFET? · FET is used as a buffer in measuring instruments, receivers since it has high input impedance and low output impedance. · FET's are u

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