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

Limitor, What is limitor.. how it works

What is limitor.. how it works

Determine efficiency on diffrent load cycle, Q. A 75-kVA transformer has an...

Q. A 75-kVA transformer has an iron loss of 1 kW and a full-load copper loss of 1 kW. If the transformer operates on the following load cycle, determine the all-day efficiency:

Ic packaging, which type of ic package is more advantageous,suitable and ve...

which type of ic package is more advantageous,suitable and versatile

Write a note on feedback of emitter follower, Q. Write a note on feedback o...

Q. Write a note on feedback of emitter follower? The emitter follower can be seen to be an example of negative feedback when the relationship is put in the form

Standard color-coded bands for evaluating resistance, Standard Color-Coded ...

Standard Color-Coded Bands for Evaluating Resistance Practical resistors are manufactured in standard values, various resistance tolerances, several power ratings (as will be e

Interpret the assembly output of the lc - 3 compilers, Interpret the Assemb...

Interpret the Assembly Output of the LC - 3 Compilers Goals to understand the stack convention of the LC3 compiler: How the stack pointer and frame pointer are managed

What are the precautions to be taken, What are the precautions to be taken ...

What are the precautions to be taken before basic work on electrical installations? Ans: Before starting any electrical works on installations disconnect the power supply to

Schmitt triggering, schmitt triggering with emitter coupled transister

schmitt triggering with emitter coupled transister

Circuit, Aplication of resonance in different divices

Aplication of resonance in different divices

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