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

List the addressing modes supported by 8051, List the addressing modes supp...

List the addressing modes supported by 8051. 1. Register addressing  2. Direct  addressing 3. Register indirect addressing 4. Immediate addressing 5.Register addres

Bipolar junction transistor, Bipolar Junction Transistor: Transistor ...

Bipolar Junction Transistor: Transistor construction: the emitter layer is heavily doped, the base is light doped and the collector is only lightly doped. Outer layer has wi

Show power and power factor in ac circuits, Q. Show Power and Power Factor ...

Q. Show Power and Power Factor in ac Circuits? Power is the rate of change of energy with respect to time. The unit of power is a watt (W), which is a joule per second (J/s). T

Properties of conductors and insulators, Properties of Conductors and Insul...

Properties of Conductors and Insulators: This unit provides the basic characteristics or properties of the most common materials which are classified as semiconductor, conduct

Find an expression for the power absorbed by the load, Q. For the circuit o...

Q. For the circuit of Figure: (a) Find an expression for the power absorbed by the load as a function of RL. (b) Plot the power dissipated by the load as a function of the lo

Convolution, how to use tabular method to solve convolution problems

how to use tabular method to solve convolution problems

Input output operations , Input Output Operations Many times microproc...

Input Output Operations Many times microprocessor has to  accept data  from input port and send data to  output  port to  interact with the  real world. Input  port is  tri st

Dc generator, short note on armature reaction

short note on armature reaction

Example memory to registers , Example Memory to  Registers Example: ...

Example Memory to  Registers Example: Write  assembly  language  statement  to copy  data byte  36H  stored  at 2025 H  to register B. Solution : Assuming 2025 H is sto

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