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

Design an appropriate system, From a source with P in = 2.4 mW, we want to...

From a source with P in = 2.4 mW, we want to get P out = 60 mW at a distance l = 20 km from the source. α for the transmission line is given to be 2.3 dB/km. The available amplif

Radiation intensity pattern of antennas, Q. Radiation intensity pattern of ...

Q. Radiation intensity pattern of Antennas? Antennas do not radiate power equally in all directions in space. The radiation intensity pattern describes the power intensity (whi

Obtain a bode magnitude plot for the transfer function, Q. A bandpass filte...

Q. A bandpass filter circuit is shown in Figure. Develop a PSpice program and use PROBE to obtain a Bode magnitude plot for the transfer function ¯H(f) = ¯Vout/ ¯Vin for frequency

Explain working of resistance-capacitance coupled amplifiers, Q. Explain wo...

Q. Explain working of Resistance-capacitance coupled Amplifiers? Resistance-capacitance (RC)-coupled  Amplifiers : The following figure illustrates the most widely used method

Asset information management system, Asset information management system: ...

Asset information management system: GIS has the potential to revolutionize the reform procedure in areas such as consumer indexing, asset and work management, distribution ne

Different types of errors in measurement, Q.   Enumerate different types o...

Q.   Enumerate different types of errors in  measurement. How can these errors be minimized.                Sol. Types of errors: Errors may arise from different sources and

Explain working of ring topology, Q. Explain working of Ring Topology? ...

Q. Explain working of Ring Topology? Ring Topology: In ring topology, all user nodes are connected with physical path acting as links of a chain and last user node is co

Explain about amplifier noise, Q. Explain about Amplifier noise? Amplif...

Q. Explain about Amplifier noise? Amplifier noise arises from both thermal sources (resistances) and nonthermal sources (semiconductor devices). Although nonthermal noise is no

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