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

Calculate the current flow using norton theorem, Calculate the current flo...

Calculate the current flow in 30Ω resistor for the circuit in figure using Norton Theorem.

Dc power supplies, 1.   Design four (4) different 5 volt DC power supplies...

1.   Design four (4) different 5 volt DC power supplies to operate from 230 volts AC. The four power supplies are to have the same full wave rectifier with capacitive filte

Define two popular parallel protocol used in embedded system, a. Compare th...

a. Compare the serial protocols, parallel protocols and wireless protocols in terms of formats, speed, performance and security issues. b. Briefly define two popular parallel pr

#title thyristor, what is finger voltage in terms of thyristor

what is finger voltage in terms of thyristor

Sketch the phasor diagram, Q. A balanced delta-connected load with a per-ph...

Q. A balanced delta-connected load with a per-phase impedance of 12 + j9  is supplied by a 173-V, 60-Hz three-phase source. (a) Determine the line current, the power factor, th

Dc generator, Why dummy coil is used in wave winding porpose of dc generato...

Why dummy coil is used in wave winding porpose of dc generator

Dc link scherbius drive - motor control , DC Link Scherbius Drive This ...

DC Link Scherbius Drive This type of scheme is shown in figure. This circuit  allows both  sub synchronous  and super synchronous speed control. In case  of sub synchronous spe

Determine the maximum value of the voltage induced in coil, Q. A 10-turn sq...

Q. A 10-turn square coil of side 200 mm is mounted on a cylinder 200 mm in diameter. If the cylinder rotates at 1800 r/min in a uniform 1.2-T field, determine the maximum value of

The resistance of a 7 m length of the similar cable, The resistance of a 2 ...

The resistance of a 2 m length of cable is 2.5?. Verify (a) the resistance of a 7 m length of the similar cable and (b) the length of the same wire when the resistance is 6.2

Find the expression for the no-load speeds, Q For a three-phase, fully cont...

Q For a three-phase, fully controlled, recti?er-fed, separately excited dc motor, corresponding to ideal no-load operation, find the expression for the no-load speeds. Comment on w

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