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

Determine the disadvantages of GPS system, Determine the disadvantages of G...

Determine the disadvantages of GPS system -  Maps not up to date hence instructed to carry out an incorrect manoeuvre (for example turn into a road that no longer exists) -

Compound motor , Compound motor It is possible to arrange for part of...

Compound motor It is possible to arrange for part of the field  coil to be in series with the armature and part in parallel   This gives rise to a motor with a mix

What is error-rate control, Q. What is error-rate control? A system is ...

Q. What is error-rate control? A system is said to possess error-rate damping when the generation of the output in some way depends upon the rate of change of the actuating sig

Software defined radio and modulation recognition, As we all know the next ...

As we all know the next century demand for wireless technology is expected to be the commercial implementation of Software Defined Radio (SDR) paradigm to improve base station effi

MATLAB, Future scope on MATLAB in India

Future scope on MATLAB in India

What do you mean by retention of risk, Q. What do you mean by Retention of ...

Q. What do you mean by Retention of Risk? Retention of Risk: In case of this method, the organization voluntarily accepts the risk since either the risk is insignificant or its

Thevenin equivalent circuit, The circuit below will be most efficiently ana...

The circuit below will be most efficiently analyzed by obtaining the Thevenin equivalent circuit for the circuit to the left of the points (a-b) on the schematic. The capacitor is

Diffrentiate between Brass and Bronze, Explain Brass and Bronze. Brass...

Explain Brass and Bronze. Brass - It is an alloy of copper and zinc with 60 percent copper and 40 percent zinc. Its electrical resistivity of Brass is 7.0 X 10 -8 ohm-m th

Characteristics of an n-channel enhancement mosfet, Q. Find idealized expre...

Q. Find idealized expressions for the active and ohmic states and sketch the universal characteristics of an n-channel enhancement MOSFET operated below breakdown.

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