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 does quality factor mean, The Quality factor is also explained, as Q....

The Quality factor is also explained, as Q. So it is a number, which shows the lossness of a circuit. Higher the Q, the lower are the losses. The quality factor is calculated o

# Project, #I need some guides in order to build a circuit that will be ben...

#I need some guides in order to build a circuit that will be beneath a machine and turn that machine left/right/up/down

Circuit theory, i want circuit theory relavant assingment sir please immed...

i want circuit theory relavant assingment sir please immediately

Cdma transmission model, The RAKE receiver exploits multipath channel chara...

The RAKE receiver exploits multipath channel characteristics and scrambling codes with good cross-correlation properties to realize a maximum ratio diversity combiner. Multipath pr

Bode plot phase ad gain margin, Using Bode plot calculate (a) Phase margin ...

Using Bode plot calculate (a) Phase margin (b) Gain margin (c) Stability of closed loop system. The open transfer function of the system is t=30/(s+2)/(s+3)Using Bode plot calcula

Dc generator, Why dummy coil is used in wave winding porpose of dc generato...

Why dummy coil is used in wave winding porpose of dc generator

Gate terminal - field-effect transistor, Gate terminal - field-effect trans...

Gate terminal - field-effect transistor: The names of the terminals consider to their functions. The gate terminal might be thought of since controlling the opening and closin

Transfer function of time multiplexer, How wood a transfer function of a ti...

How wood a transfer function of a time-multiplexer with switching in 10 kHz between 2 channels look like?

Show advantages of oscillators, Q. Show Advantages of Oscillators? Alth...

Q. Show Advantages of Oscillators? Although oscillations can be produced by mechanical devices (e.g. alternators), but electronic oscillators have the following advantages:

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