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

Bureau of energy efficiency, Bureau of Energy Efficiency Setting up o...

Bureau of Energy Efficiency Setting up of the Bureau of Energy Efficiency The Bureau of Energy Efficiency has been established with effect from 1st March, 2002 under the

Survey process - issues of power supply, Survey Process -  issues of power...

Survey Process -  issues of power supply The steps to be followed in any like survey procedure are given below. There is always a possibility of going back to any previous ste

Express the differential equation, A network function is given by ...

A network function is given by (a) For x(t) = δ(t), obtain y(t). (b) For x(t) = u(t), obtain y(t). (c) For x(t) = e -4t , obtain y(t). (d) Express the differenti

State the function of rs1 and rs0 bits, State the function of RS1 and RS0 b...

State the function of RS1 and RS0 bits in the flag register of intel 8051 microcontroller? RS1 , RS0 - Register bank select bits RS1   RS0 BankSelection 0        0   Bank

#signal processing, how to break a signal into time components

how to break a signal into time components

Prove modified algorithm better than the elevator algorithm, A slight modif...

A slight modification of the elevator algorithm for scheduling disk requests is to always scan in the same direction, In what respect is this modified algorithm better than the ele

Give an example of one address microprocessor, 8085 is a one address microp...

8085 is a one address microprocessor. In 8085 interrupts are classified by hardware and software interupts.

State the advantages of expert systems, State the Advantages of expert syst...

State the Advantages of expert systems -  Never "forgets" to ask a question in determining the logic -  provides consistent answers - Less skilled work force needed, ther

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