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

Determine the admittance of the parallel combination, Q. The voltage across...

Q. The voltage across a parallel combination of a 100- resistor and a 0.1-µF capacitor is 10 cos(5000t +30°) V. Determine the admittance of the parallel combination and find the c

Atomic structure, State the postulates of Bohr''s atomic model. Write any ...

State the postulates of Bohr''s atomic model. Write any three merits and demerits.

Explain how materials can be classified in three groups, Explain how materi...

Explain how materials can be classified into three groups on the basis of atomic structure. An atom has a positively charged nucleus surrounded through a group of negatively ch

Apply required morphological operations and give the output, You are given ...

You are given a binary image consisting of only zeros and ones, see image-A. Apply required morphological operations and give the output images on the grid.

Electrical Machines, Design a suitable double –layer lap winding for a 6-po...

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

Dc motor characteristics, Q. DC Motor Characteristics? We gain an under...

Q. DC Motor Characteristics? We gain an understanding of the speed-torque characteristics of a dc motor from Equations. In shunt motors, the field current can be simply control

Explain the operation of rc phase shift oscillator, Question 1 With the he...

Question 1 With the help of energy band diagram differentiate between Insulators, semiconductors and metals Question 2 Explain the operation of RC phase shift oscillator

Give the properties and application of pvc, Give the properties and applica...

Give the properties and application of PVC. Polyvinylchloride (PVC):  It is replacing rubber to a great extent in veracious applications. There is PVC insulated (non-sheathed)

Measures for improving joints and connection, Measures for Improving Joints...

Measures for Improving Joints and Connection 1. Spacing of poles: The spacing between poles (for overhead lines) is also an important requirement. Long spans will result in

Tvm, Why is the signal first attenuated and then amplified?

Why is the signal first attenuated and then amplified?

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