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

Simulink connection, I can,t connect a new subsystem of solar module with a...

I can,t connect a new subsystem of solar module with a capacitor and inductor why and how to solve

Ampere''s theorem, The    French    scientist,    Ampere,    (1775- 1836), ...

The    French    scientist,    Ampere,    (1775- 1836), conducted a series of experiments on the force between current carrying conductors. He found that: force per metre of wire (

Explain the fixed bias circuit, Q. Explain the fixed bias circuit?     ...

Q. Explain the fixed bias circuit?           The Fig refers to the common emitter collector characteristics and the ac and dc load lines.The Fig shows the points Q 1 and Q 2

Prepare the equation for drift velocity and mobility, Question 1: (a) O...

Question 1: (a) Outline the architecture of MIT's iLabs. Design a diagram supporting your explanation. (b) Give advantages/disadvantages of the MIT Microelectronics iLabs wi

Static electricity with electrical equipment, Static Electricity : This is...

Static Electricity : This is produced when two substances are rubbed together; the substances may be solids, liquids, or gases. Typical sources of static electricity are: i) dr

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

Semiconductors, Semiconductors Conductivity in among those of metal...

Semiconductors Conductivity in among those of metals and insulators. Conductivity can be changed over orders of magnitude through changes in temperature, optical excitat

Determine the type of the semiconductor, Determine the Type of the Semicond...

Determine the Type of the Semiconductor An unknown semiconductor has E g =1.1 eV and N t =N v . lt is doped with 10 16 /cm 3 donor atoms. - (a) Determine the type of the s

Amperes circuital law, Amperes Circuital Law The    observation    tha...

Amperes Circuital Law The    observation    that    magnetic    field strength varied with distance from the wire led to the following statement: 'If  the  magnetic  field

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