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

Laplace transform method, Consider the circuit shown in Figure (a) in which...

Consider the circuit shown in Figure (a) in which the switch S has been in position 1 for a long time. Let the switch be changed instantaneously to position 2 at t = 0. Obtain v(t)

4gls - fourth generations languages, 4GLs (Fourth Generations Languages) ...

4GLs (Fourth Generations Languages) These  are called  non procedural  languages May be considered as  advanced HLL. Objects oriented programming  languages and language  with

Electro Chemistry, Construction and working of calomel electrode

Construction and working of calomel electrode

Shunt motor, if the shunt motor has reduce as half load then what effect on...

if the shunt motor has reduce as half load then what effect on speed

Prepaid metering, Prepaid Metering Prepaid metering is the state of ar...

Prepaid Metering Prepaid metering is the state of art for single and three-phase although current metering, and should be implemented through utilities desirous of protecting

Diode, #quetunnel diode stion..

#quetunnel diode stion..

Find the maximum frequency of an output sine wave, Find the maximum frequen...

Find the maximum frequency of an output sine wave which can be produced at an amplitude of 1.5 V if the op-amp slew rate is 0.5 V/µs.

Use kcl and kvl to determine current, For the circuit shown in Figure, use ...

For the circuit shown in Figure, use KCL and KVL to determine i 1 , i 2 , v bd and v x . Also, find v eb .

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