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

Management process of balanced score card, Management Process of Balanced S...

Management Process of Balanced Score Card The BSC (Balanced Score Card) proposes four a new management processes which separately and in combination, contributes to linking lo

Mode 1 - buck converter , Mode 1 ( 0 By  applying a positive  output ...

Mode 1 ( 0 By  applying a positive  output  pulse  of the pulse  width modulator to  the  transistor Q 1 it gets turned on.  An input  current  in flows  through V in   Q 1

Find the overall current drawn from the supply, Q. A single-phase industria...

Q. A single-phase industrial plant consists of two loads in parallel: P1 = 48kW PF1 = 0.60 lagging P2 = 24kW PF2 = 0.96 leading It is operated from a 500-V, 60-Hz source.

Superposition theorem, how do you work it out if there are 3 sources in par...

how do you work it out if there are 3 sources in parallel?

Phase shifter, Hi, I just finish writing my project literature review and ...

Hi, I just finish writing my project literature review and my supervisory asked me to add one part. This part is about Phase Shift. How phase shifters work? In Particular How the

Explain synchronous generators, Explain Synchronous Generators? They ca...

Explain Synchronous Generators? They can be utilized to produce or absorb reactive power. An over-excited machine produces reactive power when an under-excited machine absorbs

Explain contact resistance, Explain Contact resistance. Contact resista...

Explain Contact resistance. Contact resistance: It is measured as the voltage drop from tail to tail of the mated contacts along with specified current flowing through the cont

Permanent magnets, If a permanent magnet creates the flux in a magnetic cir...

If a permanent magnet creates the flux in a magnetic circuit, the flux exists without the need for a coil, so how does Amperes Law apply to this case?   In this case the flux is

C R O DELAY LINE, WHAT IS THE FUNCTION OF DELAY LINE IN CRO

WHAT IS THE FUNCTION OF DELAY LINE IN CRO

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