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

What are the basic operations of a computer, What are the basic operations ...

What are the basic operations of a computer? The basic operations are READ and WRITE.

Motor., if load is removed so which motor will run fast? series or shunt?

if load is removed so which motor will run fast? series or shunt?

Show the dialling circuit, Q. Show the Dialling Circuit? Dialling circu...

Q. Show the Dialling Circuit? Dialling circuit enables subscriber to output signals representing digits, and this enables caller to enter destination telephone number. Dialling

Ideal or perfect transformer, a) A 230 V/25V, 50 HZ transformer with a rate...

a) A 230 V/25V, 50 HZ transformer with a rated primary current of 1,2 Amps is used to supply a number of 25 V, 30 Watt halogen light bulbs. Assuming an ideal transformer and tha

Primacy of mosfet, Primacy of MOSFET In the year 1959, Dawon Kahng an...

Primacy of MOSFET In the year 1959, Dawon Kahng and Martin M. (John) Atalla at Bell laboratory invented the MOSFET. Operationally and structurally diverse from the bipolar ju

Determine the response of a series r-c circuit, Determine the response of a...

Determine the response of a series R-C circuit to a SQUARE wave. Explain how the time constant affects the waveform observed across the components. Illustrate your answer by means

Find the current flow through resistor using thevenin''s, Find the current ...

Find the current flow through resistor 12 Ω using Thevenin's Theorem.

Common drain amplifier, Common Drain Amplifier In electronics, a comm...

Common Drain Amplifier In electronics, a common-drain amplifier, as well termed as a source follower, is one type of three basic single-stage field effect transistor (FET) am

Calculate the voltage regulation, The per-phase synchronous reactance of a ...

The per-phase synchronous reactance of a three-phase, wye-connected, 2.5-MVA, 6.6-kV, 60-Hz turboalternator is 10 . Neglect the armature resistance and saturation. Calculate the v

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