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

Three-phase Portable Bench Power Supply, hi can you help me to create a dc...

hi can you help me to create a dc to 3 phase ac circuit which can exceed at any point: 50V and 20A and 400W maximum. The output should be variable from about 0 – 25V per phase, wi

Microprocessor, if (n n=n+1 else n=n-1 n=0 how to write this command

if (n n=n+1 else n=n-1 n=0 how to write this command

Discuss the properties and uses of alnico, Discuss the properties and uses ...

Discuss the properties and uses of ALNICO. Alnico : It is an alloy of iron, nickel, cobalt and small amount of copper and aluminium. Properties are - 1. Its saturation f

Amplifiers, operation and application of Class AB amplifiers

operation and application of Class AB amplifiers

What do you maen by debugger, What do you maent by Debugger? Debugger:...

What do you maent by Debugger? Debugger: This is a program that allows user to debug and test programs. All computers with microprocessor kits give debugging facility. To not

Reverse bias, Reverse bias Reverse biased generally refers to how a di...

Reverse bias Reverse biased generally refers to how a diode is employed in a circuit. If a diode is reverse biased, the voltage at the cathode is gets higher than that at the

Blanking circuit, Blanking circuit: The saw tooth sweep voltage applied to...

Blanking circuit: The saw tooth sweep voltage applied to the X places moves beam across the CRT tube in a straight horizontal line from left to right during the sweep or trace tim

Determine the rectified load voltage, Consider the circuit of Figure (a) wi...

Consider the circuit of Figure (a) with v S (t) = 10 cos ωt. Use the piecewise-linear model of the diode with a threshold voltage of 0.6 V and a forward resistance of 0.5  to dete

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