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

Magnetic flux and flux density, Magnetic flux and flux density Magnetic...

Magnetic flux and flux density Magnetic flux is the amount of the magnetic field (or the number of lines of force) formed by a magnetic source. The symbol represented magnetic

Briefly explain about laplace transform, Q. Briefly explain about Laplace t...

Q. Briefly explain about Laplace transform? Many commonly encountered excitations can be represented by exponential functions. The differential equations describing the network

Define waves and transmission lines, Q. Define waves and transmission lines...

Q. Define waves and transmission lines? In basic circuit theory we neglect the effects of the finite time of transit of changes in current and voltage and the finite distances

Digital system, 1- Use 4-to-16 decoder and some residue gates to recognize ...

1- Use 4-to-16 decoder and some residue gates to recognize the following functions F1(A,B,C)= S(1,2,4,5,7) F2(A,B,C,D)= S(1,2,4,5,7,10,12,14,15) F3(A,B,C,D,E)= S(1,2,4,5,7,10,12,1

Intrinsic semiconductor, Draw a graph illustrating how resistivity varies w...

Draw a graph illustrating how resistivity varies with temperature for an intrinsic semiconductor. b) Gallium nitride, GaN, has an energy gap of 3.36 eV at 300 K. Calculate the w

High pressure gas hazards, High Pressure Gas Hazards When we consider t...

High Pressure Gas Hazards When we consider the dangers of compressed gas in the lab, there are three main sources of danger as follows: 1) Sudden release of high pressure ga

Find the frequency of oscillation - amplifier gain, Q. Find the frequency o...

Q. Find the frequency of oscillation, amplifier gain ? The transfer function is found to be where the equation is written as a Laplace transform (s=jw). Analysis of thi

Derive the transfer function, A data hold is to be constructed that reconst...

A data hold is to be constructed that reconstructs the sampled signal by the straight-line approximation shown in Figure. Note that this device is a polygonal data hold with a dela

Responsibilities of Regulatory Body, Responsibilities of Regulatory Body ...

Responsibilities of Regulatory Body The basic responsibilities of the Central Regulatory Commission are to: Fix tariff of Central Sector producing plants as well as of

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