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

The three-phase alternator, The Three-phase alternator In this case, t...

The Three-phase alternator In this case, three separate sets of coils are wound on the stator and connected to produce three separate outputs. Because of the physical displace

Utilization of electrical energy, Ask question #Discuss the role of load fa...

Ask question #Discuss the role of load factor on the cost of electrical energy 100 words accepted#

Describe the phasor equations, Q. Describe the following phasor equations r...

Q. Describe the following phasor equations represented in the time domain: (a) ¯ E = K1e-¯ γz (b) ¯ E = K2e ¯ γz where z is the space coordinate, K1 and K2 are constants,

Check Sheets - Quality Tools for Improvement, Check Sheets - Quality Tools ...

Check Sheets - Quality Tools for Improvement This might be an easy listing of items that could represent information in an efficient, graphical format. If the system under ana

Basic introduction of analog building blocks, Q. Basic introduction of Anal...

Q. Basic introduction of Analog Building Blocks? Electronic systems usually process information in either analog or digital form. In order to process the two different kinds of

Notations that are used in transistor circuits -h parameters, Notations tha...

Notations that are used in transistor circuits:-             h ie = h 11e = Short circuit input impedance             h 0e = h 22e = Open circuit output admittance

Amplifiers, what is the use of capacitors in amplifiers

what is the use of capacitors in amplifiers

Hahaha, Ask question #Minimum 10gzhahahaau0 words accepted#

Ask question #Minimum 10gzhahahaau0 words accepted#

Illustrate the principle of alignment, Q. Illustrate the principle of align...

Q. Illustrate the principle of alignment? Pieces of highly permeablematerial, such as iron, situated in ambientmediumof lowpermeability, such as air, in which a magnetic field

Role of central and state governments, Role of Central and State Government...

Role of Central and State Governments The subsequent roles of Central and State Governments are envisaged in the Act: The Central Government will Notify rules

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