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

Draw the power triangle for each load, Q. Two balanced, wye-connected, thre...

Q. Two balanced, wye-connected, three-phase loads are in parallel across a balanced, three - phase 60- Hz, 208-Vsupply. The first load takes 12 kWat 0.6 power factor lagging, and t

Signals and system, how can i calculate that is following signal is periodi...

how can i calculate that is following signal is periodic or not? X[n]= ?_(k=-8)^8¦?{d[n-4k]-d[n-1]-4k]}?

Power Systems, are you able to help with power system

are you able to help with power system

Show the procedure twos complement subtraction, Q. Show the procedure twos ...

Q. Show the procedure twos complement subtraction? Two's complement subtraction is the binary addition of the minuend to the 2's complement of the subtrahend (adding a negative

RF design, Could you please answer this question with an explanation?

Could you please answer this question with an explanation?

Calculate motor efficiency, 1. A self excited shunt generator supplies a lo...

1. A self excited shunt generator supplies a load of 12.5 kw at 125 volts. The field resistance is 25 ohms and the armature resistance is 0.2 ohms. The total voltage drop because o

#title. Armature winding, Why is an armature winding in d.c machine called ...

Why is an armature winding in d.c machine called closed winding.

Find ia for which the generator efficiency is maximum, Q. A separately exci...

Q. A separately excited dc generator with an armature-circuit resistance Ra is operating at a terminal voltage Vt, while delivering an armature current Ia, and has a constant loss

What is use of co-processor in a typical microprocessor, What is use of co-...

What is use of co-processor in a typical microprocessor based system. This is a processor that works in parallel with the major processor. This has its own set of specialized i

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