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

Analog averaging system, Consider the analog averager where x(t) is the inp...

Consider the analog averager where x(t) is the input and y(t) is the output. (a)   Find the impulse response h(t) of the average.  Is this system causal? (b)   Let x(t)

Methods of material handling, Q. Show the Methods of material handling? ...

Q. Show the Methods of material handling? Methods of material handling during operations and maintenance activities shall be considered for all facilities to ensure that the fi

Kpi for second stage implementation, KPI for Second Stage Implementation ...

KPI for Second Stage Implementation These KPIs deal along with the quality of the relationship among a supplier and a user (customer). They are significant to potential custom

What do you mean by output voltage swing, Q. What do you mean by Output Vol...

Q. What do you mean by Output Voltage Swing? Ideally this is equal to the difference between the two supply rail voltages, although in practice it is a few volts less.

Determine the current in the diode, Q. Consider the circuit shown in Figure...

Q. Consider the circuit shown in Figure. Determine the current in the diode by assuming: (a) The diode is ideal. (b) The diode is to be represented by the model of Figure 7.2

Rms values, 1. Derive the necessary formula/method to determine the effect...

1. Derive the necessary formula/method to determine the effective value or RMS of a triangular wave. Use either a similar method to the class example of the RMS determination

Show principal source of energy, Q. Show Principal source of energy? Th...

Q. Show Principal source of energy? The principal source of energy comes from the burning of fossil fuels such as coal and oil to generate steam, which drives steam turbines, w

MATLAB support for fault analysis in transmission lines, The devices in pow...

The devices in power system shown in Figure 2 have the following ratings: G1 : 100 MVA, 13.8 kV grounded Y, X” = 0.15 pu, X2 = 0.015 pu Xo = 0.05 pu G2 : 50 MVA, 20.0 kV grounded

Bjt amplifiers, Explain the working of BJT Amplifiers? The purpose of e...

Explain the working of BJT Amplifiers? The purpose of electronic amplifiers is essentially to increase the amplitude and power of a signal so that either useful work is done or

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