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

Matlab, how to model a doubly fed induction generator inside simulink?

how to model a doubly fed induction generator inside simulink?

Explain total internal reflection, Explain Total internal reflection? T...

Explain Total internal reflection? The refractive index of a medium is defined as the ratio of velocity of light in vacuum to the velocity of light in that medium n x = C/V

Demodulation of ssb signals, Demodulation of SSB signals also requires the ...

Demodulation of SSB signals also requires the use of a phase-coherent reference. Figure shows the general configuration to demodulate the SSBsignal.Asmall carrier component, which

Auxiliary carry fla - registers, Auxiliary Carry Fla - Registers If ca...

Auxiliary Carry Fla - Registers If carry  is generated  from D 3   to D 4 in the accumulator after any arithmetical or logical  operations. Auxiliary  carry flag (AC) is set

Three-phase induction motor, Q. A 60-Hz, six-pole, wye-connected, three-pha...

Q. A 60-Hz, six-pole, wye-connected, three-phase induction motor, with the parameters R 1 = R 2 = 0.025  and Xl 1 = Xl 2 = 0.125 , is controlled by variable-frequency control

Radiation pattern of a half-wave dipole antenna, Q. The radiation pattern o...

Q. The radiation pattern of a half-wave dipole antenna is given by (a) Sketch the radiation pattern in the principal plane of xz containing angle θ. (b) Determine the beam wi

Electromagnetic fields and waves, QUESTION: Electromagnetic Fields and Wave...

QUESTION: Electromagnetic Fields and Waves (a) Illustrate with help of diagrams the Cartesian, Cylindrical and Spherical coordinate systems. (b) Lay down the assumptions fo

Diode current -zener region, Diode current: Zener region: when the r...

Diode current: Zener region: when the reverse biased voltage is increase to a very high value then a point is reached where will is suddenly going a very high value. Th

C programming., #queComputers are frequently used in check-writing systems,...

#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by

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