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

Give some applications of constantan, Give some applications of constantan....

Give some applications of constantan. Constantan is an alloy of nickel and copper. It is used in thermocouples, motor starters and precision resistors.

Which impurity is added in n-type-semiconductor, In n type semi conductor a...

In n type semi conductor added impurity is (A) Pentavalent.                                (B) Divalent. (C) Tetravalent.                                 (D) Trivalent.

Transformer onnection, what is difference between scot and delta connection...

what is difference between scot and delta connection.

Chemistry, write a short note on Scale

write a short note on Scale

Operation of a transistorized phase shift oscillator, Q. Discuss the operat...

Q. Discuss the operation of a transistorized phase shift oscillator with the help of a diagram? Explain the phase shifting circuit? An oscillator is a circuit which converts elec

Colpitts oscillator circuit design, i would like to construct a colpitts os...

i would like to construct a colpitts oscillator using a series lc tank circuit as a feedback. the circuit will have a frequency of 150 Khz and it will drop when varying the value o

Analogue and digital, 1. Pattern recognition A synchronous sequential machi...

1. Pattern recognition A synchronous sequential machine is to generate 1 on output z after the next clock pulse whenever the bit sequence on input x has exactly two 0’s in the last

What is the photon flux - focal spot isotropically, Suppose that the x rays...

Suppose that the x rays are emitted from a focal spot isotropically. The photon flux is 3.28 x 10 6 photons mm -2 sec -1 at a distance of 0.75 m from the focal spot. What is the

Analogue electric assignment, i have assignment about wien bridge oscillato...

i have assignment about wien bridge oscillator i need help to how to degsin the circuit using ltpsic

Control systems, why open loop system is stable and why degree of stability...

why open loop system is stable and why degree of stability varies in closed loop system

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