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

Microprocessor, if (n n=n+1 else n=n-1 n=0 how to write this command

if (n n=n+1 else n=n-1 n=0 how to write this command

Engines, how to make a underwater propulsion system?

how to make a underwater propulsion system?

Define cables - generation and absorption of reactive power, Define Cables ...

Define Cables - Generation and Absorption of Reactive Power? It is well known that the shunt capacitance of the cable is very large as compared to that of an overhead line. Thi

Theoretical circuit, Theoretical Circuit The theoretical circuit is ava...

Theoretical Circuit The theoretical circuit is available in form 1.Passive materials with mediocre dimension is used by the manufacturer. In order to make a theoretical circuit

Find the forced component of the current, Q. Consider an RC parallel circui...

Q. Consider an RC parallel circuit excited by (a) i(t) = 20e -2t A, and (b) i(t) = 20 A. Find the forced component of the current through the capacitor for R = 2  and C = 2F.

wind turbine, pls how can i stat up building wind turbin

pls how can i stat up building wind turbine

Sources of power dissipation in cmos logic, Describe the three main sources...

Describe the three main sources of power dissipation in CMOS logic. Hence calculate the power dissipated in a CMOS ASIC of 40,000 gates operating at a frequency of 133MHz with a s

Explain properties and application of copper, Explain properties and applic...

Explain properties and application of Copper. Properties 1) Cooper is reddish brown in color. 2) Cooper is malleable and ductile and can be forged, cast, rolled, mach

Antinoise systems — noise cancellation, Q. Antinoise Systems — Noise Cancel...

Q. Antinoise Systems — Noise Cancellation? Traditionally sound-absorbing materials have been used quite effectively to reduce noise levels in aircraft, amphitheaters, and other

Voltage falls across a resistor simple circuit, To design a VI that can be ...

To design a VI that can be used to show how the voltage falls across a resistor in a simple CR circuit when excited by a step function. The title of the VI will be Capacitor Res

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