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

Compute the starting torque with the starting compen sator, A three-phase, ...

A three-phase, 2200-V, 60-Hz, delta-connected, squirrel-cage induction motor, when started at full rated voltage, takes a starting current of 693 A from the line and develops a sta

Vehicle tracking system, coding for vehicle tracking system using gsm in av...

coding for vehicle tracking system using gsm in avr atmega16 microcontroller

Difference between and and test instructions, Mention how do the AND & T...

Mention how do the AND & TEST instructions differ in their functionality AND: Changes the destination operand while performs the AND operation and. TEST: This ins

Estimate the network resistance, When three resistors R1, R2 and R3 are con...

When three resistors R1, R2 and R3 are connected in parallel as shown in the diagram. For these resistors the equivalent resistance is given by: a. Derive a rule to

Edge detector, Edge detector  Apply the Canny edge detector to image c...

Edge detector  Apply the Canny edge detector to image class.png. To compute Canny edges:      help edge     edge(im,'canny',[thres1 thres2],sigma) (i) Compute edges for

Develop the equation of motion, Aloudspeaker is a common electrochemical tr...

Aloudspeaker is a common electrochemical transducer in which vibration is caused by changes in the input current to a coil which, in turn, is coupled to a magnetic structure that c

What is ohmmeter, What is ohmmeter An ohmmeter is an instrument for mea...

What is ohmmeter An ohmmeter is an instrument for measuring resistance

Notations that are used in transistor circuits -h parameters, Notations tha...

Notations that are used in transistor circuits:-             h ie = h 11e = Short circuit input impedance             h 0e = h 22e = Open circuit output admittance

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