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 briefly subscriber loop system, Q. Determine briefly subscriber l...

Q. Determine briefly subscriber loop system.  Give some technical specification for subscriber lines. Ans: Subscriber Loop System: Each subscriber in a telephone network is

Explain mesh analysis, Mesh analysis Analysis using KVL to solve for th...

Mesh analysis Analysis using KVL to solve for the currents around every closed loop of the network and hence verify the currents through and voltages across every elements of t

Forward bias, Forward bias In forward bias, the p-type is linked with...

Forward bias In forward bias, the p-type is linked with the positive terminal and the n-type is linked with the negative terminal.In forward bias mode the PN junction operati

Transistor, why BETA a current gain parameter of common emitter amplifier i...

why BETA a current gain parameter of common emitter amplifier is temperature dependent?

Determine the rate at which the magnitude falls, Q A high-pass filter circu...

Q A high-pass filter circuit is shown in Figure. Using a PSpice program and PROBE, obtain the Bode magnitude plot for the transfer function ¯H(f) = ¯V out / ¯V in for frequency ra

Fsk scheme, Question: (a) An FSK Scheme is used in a wireless transmi...

Question: (a) An FSK Scheme is used in a wireless transmission with the data bits 1011010. With the help of a labeled diagram, describe in detail the final output of the MSK

Explain working of biased clamper, Q. Explain working of Biased Clamper? ...

Q. Explain working of Biased Clamper? Biased Clamper : The circuit of a positively biased clamper is shown in the figure. During the negative half cycle of the input signal the

Transparent latch d flip flop, Transparent latch D flip  Flop A typica...

Transparent latch D flip  Flop A typical  example  of this  type of D flop  is 7475 shown  in figure when CLK  connected is enable signal is high and the flip  flop  is enabled

Fraction of the total cross section - interaction processes, Determine and ...

Determine and plot for 5 keV to 100 MeV the fraction of the total cross section due to each of the four interaction processes for      (a) hydrogen,      (b) nitrogen,

Fourier Series, State by inspection (i.e. without performing any formal ana...

State by inspection (i.e. without performing any formal analysis) all you can about each of the periodic waveforms shown in FIGURE 1 in terms of their Fourier series when analysed

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