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

What is a control word, What is a control word? It is a word kept in a ...

What is a control word? It is a word kept in a register (control register) used to control the operation of a program digital device.

Explain by using a circuit diagram a darlington pair, Q. Explain by using a...

Q. Explain by using a circuit diagram, a ‘Darlington Pair'. Mention its advantages? THE DARLINGTON PAIR : This is a very special way of direct coupling of two transistors. The

What are frequency response curves, Q. What are frequency response curves? ...

Q. What are frequency response curves? How are they made? Every amplifier has a frequency-response curve associated with it. They provide a "picture" of the performance of an a

Switching characteristics during turn on , Switching characteristics during...

Switching characteristics during turn on A positive  gate  pulse  between  gate and  cathodeis sufficient to turn  on a thyrisotr. In  this period  thyristor  changes its stat

Demagnetizing and cross magnetizing effects , Q.   What do you understand b...

Q.   What do you understand by demagnetizing and cross magnetizing effects of armature reaction in a d.c. machine. Derive the expression for calculation of demagnetizing and cross

Explain charge-to-charge amplifier, Q. Explain Charge-to-Charge Amplifier ...

Q. Explain Charge-to-Charge Amplifier A circuit is shown in Figure in which there is a capacitor C1 in the - input line and a capacitor Cf in the feedback loop. KCL at node X g

Find current through resistor using superposition theorem, Find the current...

Find the current through each resistor for the networking below using Superposition Theorem.

Tariff policy - electricity policies, National tariff policy: The Centr...

National tariff policy: The Central Government notified the National Tariff Policy on January 6, 2006, for the power sector in line along with the Section 3 of the EA, 2003. Wi

Calculate the active and reactive power, The variable resistor Z o in the ...

The variable resistor Z o in the circuit shown in Fig. 1  is adjusted until maximum average power is delivered to Zo. a)  Find the value of Z o b)  Calculate the maximum av

Clampers, just to put an assignment Give only short details that are impor...

just to put an assignment Give only short details that are important Specially bised clamper

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