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

Overview of decimal number system, Q. Can you give some Overview of Decimal...

Q. Can you give some Overview of Decimal Number System? The Decimal Number System uses base 10 and It includes the digits from 0 through 9. The weighted values for each positio

Clipper, merits amd demerits of series and shunt clipper

merits amd demerits of series and shunt clipper

Define sampling below the nyquist rate, Define Sampling below the Nyquist R...

Define Sampling below the Nyquist Rate? A further reduction of the sampling frequency will reason one sample to be taken each period. The Case 3 plot depicts the effect of this

project, I want to make project plz help me n gove me idea about actually ...

I want to make project plz help me n gove me idea about actually its my first year in electrical engineering thts why Ineed help hpfully you will reply soon

Explain the cmp instruction, Explain the CMP instruction . CMP: The comp...

Explain the CMP instruction . CMP: The comparison instruction is a subtraction which changes only the flag bits; the destination operand certainly not changes. A comparison is h

Electromagnetic torque , Electromagnetic torque  The torque is given...

Electromagnetic torque  The torque is given by the force on the armature winding multiplied by its radius. Force on a conductor in magnetic field B is:  F=B.I.L so, T=B

Semiconductor equations, Semiconductor Equations  The semiconductor e...

Semiconductor Equations  The semiconductor equations that are relating these variables are shown below: Carrier density: n = n i exp (E FN - E i / KT)        (1)

Machines, what is power factor of generator at overexcitation

what is power factor of generator at overexcitation

Fixed voltage regulators, Q. Fixed Voltage Regulators ? Positive voltag...

Q. Fixed Voltage Regulators ? Positive voltage regulator series with seven voltage options - IC 7800 Series  The 7800 series consists of three - terminal positive volta

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