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 is non-folded network, Q. What is Non-Folded Network? Non-Folded ...

Q. What is Non-Folded Network? Non-Folded Network: In a switching network, all outlet/inlet connection may be used for inter exchange transmission. In such a case, exchange d

Estimate the length of the wire required to get a resistance, A heater elem...

A heater element is made of nichrome wire having resistivity equal to 100 × 10 -8 ohm-m. The diameter of the wire is 0.4mm. Calculate the length of the wire required to get a resi

Surge current - thyristor, Surge Current It is  the maximum admissib...

Surge Current It is  the maximum admissible peak value of  a sinusoidal half  cycle of 10 ms duration at a frequency of 50Hz. The  value is specified at a given junction tem

Describe about digital communication systems, Q. Describe about digital com...

Q. Describe about digital communication systems fl A digital signal can be deflned as having any one of a finite number of discrete amplitudes at any given time. The signal coul

Geographic information system, Geographic Information System: Geograph...

Geographic Information System: Geographic Information System (GIS) is a computer system capable of assembling, manipulating, storing, and displaying geographically referenced

Hybrid meters, Hybrid Meters These meters have electronic measurement ...

Hybrid Meters These meters have electronic measurement circuits but show is by impulse counters/stepper motors. Accuracy is classically class 1.0 or 2.0 and commonly these met

Characteristics of magnetic field / flux lines, Characteristics of magnetic...

Characteristics of magnetic field / flux lines: i.  Forming a closing loop ii. Did not crossed against each other iii. Has a certain direction iv. Repel among one anot

Find the expressions for the capacitor voltage, Consider the RC circuit of ...

Consider the RC circuit of Figure (a) with R = 2 ,C = 5F,and i(t) = I = 10 A (a dc current source). Find the expressions for the capacitor voltage vC(t) and the capacitor current

Voltage tripler and quadrupler, Voltage Tripler and Quadrupler: Voltag...

Voltage Tripler and Quadrupler: Voltage Tripler an extension of the half wave voltage across each diode is 2Vm as it is for the filter capacitor circuit. It should be obvious

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