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

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

Reverse recovery characteristics, Reverse Recovery Characteristics At t...

Reverse Recovery Characteristics At the end of forward  conduction in diode  reverse current  flows for  a short  time. The  device  doesn't  attain its full blocking  capabili

Module of the rated currents - transformer, Module of the rated currents - ...

Module of the rated currents - transformer: The transformer of the Face(Figure) 2 is a transformer of type Delta-Y (the neutral of Y is grounded). The rated output is of 1500

Find the forced component of the current, Q. Consider an RC parallel circui...

Q. Consider an RC parallel circuit excited by (a) i(t) = 20e -2t A, and (b) i(t) = 20 A. Find the forced component of the current through the capacitor for R = 2  and C = 2F.

What do you mean by blocking probability, Q. What do you mean by Blocking P...

Q. What do you mean by Blocking Probability? Blocking Probability:Blocking probability P is defined as probability that all the servers in system are busy. When all servers are

Find the frequency of oscillation - amplifier gain, Q. Find the frequency o...

Q. Find the frequency of oscillation, amplifier gain ? The transfer function is found to be where the equation is written as a Laplace transform (s=jw). Analysis of thi

Role of gis in distribution reforms, Role of GIS in Distribution Reforms: ...

Role of GIS in Distribution Reforms: You will agree which distribution is the weakest link in the chain of power supply and has been identified as the key focus area in power

Rst restart instructions , RST Restart Instructions Restart instructio...

RST Restart Instructions Restart instructions  are one byte call instructions. Called location for each restart instruction is  predefined on page 0 ( read only memory). They

What do you mean by insurance, Q. What do you mean by Insurance? This i...

Q. What do you mean by Insurance? This is done by creating a common fund out of the contribution (known as premium) from several persons who are equally exposed to the same los

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

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