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

Explain about junction fet, Q. Explain about Junction FET? The JFET is ...

Q. Explain about Junction FET? The JFET is a three-terminal, voltage-controlled current device, whereas the BJT is principally a three-terminal, current-controlled current devi

Digital modulation, what are the different digital modulation techniques?

what are the different digital modulation techniques?

Bode plot, Hai.. i have been given a open loop transfer function to draw a...

Hai.. i have been given a open loop transfer function to draw a bode plot with a particular K value and they asked me to find the value of K for which the phase margin becomes 45d

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.

Define the tick of the property, Tick of the property, which is different f...

Tick of the property, which is different from the group (A) Ductility.                (B) Resistivity. (C) Tensile strength.   (D) Hardness. Ans: Tick of the pr

Autotransformer, conversion of auto transformer in to winding transformer a...

conversion of auto transformer in to winding transformer and vice versa

Pdc, disadvantages of shunt&series clippers

disadvantages of shunt&series clippers

Obtain the truth table for the logic block, Q. Obtain the truth table for t...

Q. Obtain the truth table for the logic block shown in Figure

Commutator, explan Two segment and four sagment commutator action

explan Two segment and four sagment commutator action

Electrical Machines, Design a suitable double –layer lap winding for a 6-po...

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

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