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

Explain ferrites suitability for high frequency application, Explain Suitab...

Explain Suitability of ferrites for high frequency application. Ferrites are extensively used in micro wave equipments and in computers. Ferrites are advantageous at high frequ

Determine the remaining voltages and currents, Q. Some element voltages and...

Q. Some element voltages and currents are given in the network con?guration of Figure. Determine the remaining voltages and currents. Also calculate the power delivered to each ele

Determine the fraction of full load, The distribution transformer is supply...

The distribution transformer is supplying a load at 240 V and 0.8 power factor lagging. The open-circuit and short-circuit test data are given in Example. (a) Determine the frac

What are the different parameters of jfet, Q. What are the different parame...

Q. What are the different parameters of jfet ? A bipolar junction transistor (BJT) is a current controlled device that is output characteristics of the device are controlled by

What is ringtopology, Q. What is RingTopology? In ring topology, all us...

Q. What is RingTopology? In ring topology, all user nodes are connected with physical path acting as links of a chain and last user node is connected back to the first node. A

Describe operation performed by instruction OUT47 h, Describe the operation...

Describe the operation performed by the instruction OUT 47 h, AL. This transfers the content of AL to I/O port 47h. See that I/O port number shows as 0047h on the 16 bit addres

Evaluate the current flowing in the direction from b to a, Q A beam contain...

Q A beam containing two types of charged particles is moving from A to B. Particles of type I with charge +3q, and those of type II with charge -2q (where -q is the charge of an el

Clapp oscillator, derivation of frequency of oscillators clapp and derive C...

derivation of frequency of oscillators clapp and derive C effect?

Find the current by means of mesh-current analysis, For the network shown i...

For the network shown in Figure, find the current delivered by the 10-V source and the voltage across the 3- resistor by means of mesh-current analysis.

Explain the three-line cable residential wiring, Q. Explain the three-line ...

Q. Explain the three-line cable Residential wiring? The three-line cable coming out of the secondaries of the distribution transformer on the utility pole passes through the el

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