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

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

Fiind the magnitudes of the line-to-line voltages, Q. A single-line diagram...

Q. A single-line diagram of a three-phase transformer bank connected to a load is given in Figure. Find the magnitudes of the line-to-line voltages, line currents, phase voltages,

Which interrupt has the highest priority, TRAP has the maximum priority ...

TRAP has the maximum priority There are 2 types of interrupts external and internal. NMI has highest priority between all external interrupts,TRAP has highest priority between

Active-mode pnp transistors in circuits, Active-mode PNP transistors in cir...

Active-mode PNP transistors in circuits: In the figure, the arrows showing current point in the direction of conventional current - the flow of electrons is in the opposite di

Solid state, What are the fundamentals of solid states?

What are the fundamentals of solid states?

Sketch the inductor voltage and stored energy, (a) Consider a 5-µH inductor...

(a) Consider a 5-µH inductor to which a current source i(t) is attached, as shown in Figure (b). Sketch the inductor voltage and stored energy as a function of time. (b) Let a v

Asynchronous message passing and synchronous-message passing, Question: ...

Question: a) Differentiate between Asynchronous message passing and Synchronous-message passing. b) If keyboards are the predominant means of interface to human input, the

Machines, what is power factor of generator at overexcitation

what is power factor of generator at overexcitation

Growth in communications, The growth in communications over the past 60 yea...

The growth in communications over the past 60 years has been phenomenal. The invention of the transistor in 1947 and the integrated circuit and laser in 1958 have paved the way to

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