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

Voltage divider with ac bypasses capacitor, Voltage divider with AC bypasse...

Voltage divider with AC bypasses capacitor: Figure: Voltage divider with capacitor The standard voltage divider circuit that is discussed above faces a drawback - A

Increment contents of register - inr instruction , Increment contents of Re...

Increment contents of Register Content  of register  are   incremented  by one and the  results  is stored  in the same  register R. It is an exceptional  case in which  accumu

Find the new gain for the inverting-amplifier circuit, Q. An op amp has a f...

Q. An op amp has a finite gain of only 50, but is otherwise ideal. For the inverting-amplifier circuit of Figure, if R 2 = 20 k, what value of R 1 would be needed to give a gain

Microprocessor, Memory map of tpa in a personal computer and explain such o...

Memory map of tpa in a personal computer and explain such of the areas in brief

Student, Can I get some ideas for power system stability simulation using M...

Can I get some ideas for power system stability simulation using Matlab?

Gis database, GIS database:  In a nutshell, we could say that the GIS ...

GIS database:  In a nutshell, we could say that the GIS technology integrates general database operations (data query and statistical analysis), along with the unique a

Pn junction, charactersticks of pn junction

charactersticks of pn junction

Determine the voltages vx using voltage division, Q. Determine the voltages...

Q. Determine the voltages Vx using voltage division and equivalent resistor reductions for the circuits shown in Figure.

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