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

Can you show the decimal to octal conversion, Q. Can you show the Decimal t...

Q. Can you show the Decimal to Octal Conversion? To convert decimal to octal is somewhat more difficult. The usual method to convert from decimal to octal is repeated division

Find the t- domain forced response, Consider an RLC series circuit excited ...

Consider an RLC series circuit excited by v(t) = Ve st in the time domain. Assume no initial capacitor voltage or inductive current at t = 0. Draw the transformed network in the s

What are the performance measures of oscillator circuits, Q. What are the p...

Q. What are the performance measures of oscillator circuits? 1. Stability: This is determined by the passive components. R, C and L determine frequency of oscillations. If R ch

Determine the type of the semiconductor, Determine the Type of the Semicond...

Determine the Type of the Semiconductor An unknown semiconductor has E g =1.1 eV and N t =N v . lt is doped with 10 16 /cm 3 donor atoms. - (a) Determine the type of the s

Ohmic region operation, Q. In a depletion MOSFET for which V P = 3 V and I...

Q. In a depletion MOSFET for which V P = 3 V and I DSS = 11mA, the drain current is 3mA when v DS is set at the largest value that will maintain ohmic region operation. Find v G

Negative voltage regulator series, Negative Voltage Regulator series with N...

Negative Voltage Regulator series with Nine voltage options - IC 7900 Series The IC 7900 series of fixed output negative voltage regulators are complements to the 7800 seri

Develop a block diagram for a bcd encoder, Q. Based on the 8421 BCD code fo...

Q. Based on the 8421 BCD code for decimal digits 0 through 9, develop a block diagram for a BCD encoder and its implementation scheme.

Calculate power delivered to the network, Calculate power delivered to the ...

Calculate power delivered to the network: 1. A wave is traveling from left to right, emerging from Z g =50 with a peak amplitude of V p =5V. The 1-port network [S] has in=0.5-

Obtain an expression for b, Q. Consider an infinitely long, straight wire (...

Q. Consider an infinitely long, straight wire (in free space) situated along the z-axis and carrying current of I A in the positive z-direction. Obtain an expression for ¯B everywh

Frequency-controlled induction-motor drives, Q. Frequency-controlled induct...

Q. Frequency-controlled induction-motor drives ? The converters employed for variable-frequency drives can be classified as: • Voltage-source inverter (which is the only one

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