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

Convolution, how to use tabular method to solve convolution problems

how to use tabular method to solve convolution problems

Methods for speed and torque control of induction motors, Q. Methods for sp...

Q. Methods for speed and torque control of induction motors? The following are methods available for speed and torque control of induction motors. • Pole-changing method

Device switching losses and snubbers, May I know if your site can help me w...

May I know if your site can help me with design a snubber and model the circuit using LTSpice software?

What do you mean by antenna gain, Q. What do you mean by Antenna gain? ...

Q. What do you mean by Antenna gain? Antenna gain depends on both shape and size. Dipole antennas, commonly used at lower radio frequencies, are made up of a rod or wire of len

Logic Gates, A former employs a servant to look after his form house. He in...

A former employs a servant to look after his form house. He instructs the servant to keep a watch on his goat. So that he does not harm the kitchen garden, when the entrance-door

Define lines parameters, Define Lines Parameters In power system analys...

Define Lines Parameters In power system analysis, the parameters of interest when modelling power lines are:  inductance, capacitance, series resistance and leakage resistance.

Main difference between a latch and a flip flop, Question: a) What is ...

Question: a) What is the main difference between a latch and a flip flop? b) Draw the logic diagram of an SR-latch using only NAND gates. c) A positive edge triggered

Find the fourier-series expansion of the pulse train, The rectangular pulse...

The rectangular pulse train of Figure (a) consists of pulses of height A and duration D. Such pulse trains are employed for timing purposes and to represent digital information. Fo

Sinusoidal analysis by using mesh equations and matlab, This example is con...

This example is concerned with steady-state sinusoidal analysis by using mesh equations and MATLAB. Let us consider the circuit shown in Figure and find the input impedance at the

Schmitt triggering, schmitt triggering with emitter coupled transister

schmitt triggering with emitter coupled transister

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