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

Biasing clamper, Ask question #Minwhat is biasing of clamper imum 100 words...

Ask question #Minwhat is biasing of clamper imum 100 words accepted#

Strategy and customer relationship management, Strategy and Customer Relati...

Strategy and Customer Relationship Management CRM sometimes considers as only information technology because of availability of quite a good number of software packages in the

Determine the motor current and speed, A dc series motor is connected to a ...

A dc series motor is connected to a load. The torque varies as the square of the speed.With the diverter-circuit open, the motor takes 20 A and runs at 500 r/min. Determine the mot

Common control switching system, Q. Common control switching system? C...

Q. Common control switching system? Common Control Switching System: A functional block diagram of a common control switching system is displayed in Figure. Control functions

What are the disadvantages of using robots, What are the Disadvantages of u...

What are the Disadvantages of using robots -  They can find it difficult to deal with 'unusual' circumstances for example a door is missing from a car waiting on the paint spra

Find the approximate values of gain and phase margins, Q. Sketch the asympt...

Q. Sketch the asymptotic Bode plots for the following loop-gain functions, and find the approximate values of gain and phase margins in each case.

Problem of current electricity, charges of +2q and -4q are fixed a distance...

charges of +2q and -4q are fixed a distance d apart as in figure_2(a).find electric field at the point A ,B and C (b) sketch roughly the electric field lines.

Calculate critical angel and fundamental gaussian mode, (1) An argon ion la...

(1) An argon ion laser, emitting light at a wavelength of 488nm with a beam divergence of 150 firad, is used to illuminate the moon. (i) Assuming the earth-to-moon distance is 3

Find the resistor values of rc, Apply the rule-of-thumb dc design presented...

Apply the rule-of-thumb dc design presented in this section for a silicon npn BJT with β = 70 when the operating Q point is defined by I CQ = 15 mA and I BQ = 0.3 mA, with a dc s

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