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

Representation of negative number, Representation of Negative Number: ...

Representation of Negative Number: As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  comple

Low voltage at transformers, Low Voltage at Transformers While the vo...

Low Voltage at Transformers While the voltage applied to induction motor varies from the rated voltage, its performance is affected. Against permissible voltage variation of

Explain the architecture of ss7, Q. explain the architecture of SS7 and com...

Q. explain the architecture of SS7 and compare with seven-layer OSI architecture. Ans: A block schematic diagram of CCITT no. 7 signalling system is displayed in figure. Sig

Common-collector amplifier, A common-collector (CC) amplifier is also known...

A common-collector (CC) amplifier is also known as an emitter follower (or a voltage follower) due to the fact that the output voltage "follows" the input by being approximately eq

List out the reasons for automation, Describe the term (i) Automation ...

Describe the term (i) Automation (ii) Automated lines 04 List out the reasons for automation and discuss in detail the process of work part transport.

Diode circuits, Diode Circuits: Prob. (a) Draw the piecewise linear v...

Diode Circuits: Prob. (a) Draw the piecewise linear volt ampere characteristic of a p n diode. What are the circuit models for the ON state and the OFF state. (b) Determ

Resistance, if the sheet resistance of a tin oxide is 100 ohms, what is the...

if the sheet resistance of a tin oxide is 100 ohms, what is the thickness of the oxide layer?

Calculate terminal voltage, A permanent magnet DC motor is being considered...

A permanent magnet DC motor is being considered for use as a drive motor for a vehicle. The motor is known to have the following properties No load speed @ 100 V = 2000 rpm torq

Define diffusion length, Define diffusion length: Sol. Diffusion len...

Define diffusion length: Sol. Diffusion length is defined as the distance, travelled by free carriers before recombining. It may also be defined as the average distance cove

Define sampling frequency, Define Sampling Frequency? Since real analog...

Define Sampling Frequency? Since real analog signals consist of several frequencies, spectrum of the input signals should be limited to make sure that no signal energy exists a

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