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

Telecommunication, Design a low noise amplifier using an Infineon RF transi...

Design a low noise amplifier using an Infineon RF transistor BFP640. The amplifier is to be used to amplify the L2 GPS signal and so the centre frequency is 1227MHz and bandwidth 4

Transformer, Ask questiochan #Minimum 100 words accepted# characteristics o...

Ask questiochan #Minimum 100 words accepted# characteristics of transformer

Capacitive coupling, A Class, "A" Amplifier is needed with the following sp...

A Class, "A" Amplifier is needed with the following specification: Collector Current = 5mA Needed offset voltage across RE= 2V Lowest input Frequency = 50Hz Use a BC108

Description of capacitor, Description of Capacitor r A capacitor has cap...

Description of Capacitor r A capacitor has capacitance of one Farad when current charging of one Ampere flows in one second. This process causing a transferring of one volt in p

Determine the complete response for capacitance, Consider the circuit of Fi...

Consider the circuit of Figure for t> 0 with zero initial conditions, v Th (t) = 1 V (dc), and R Th = 2 ; L = 1 H. Determine the complete response for vC(t) for capacitance value

Explain about frequency shift keying, Q. Explain about Frequency Shift Keyi...

Q. Explain about Frequency Shift Keying? In this scheme frequency of the carrier signal is changed according to the data. Transmitter sends different frequencies for a "I" than

DSP-chebyshev, Consider Chebyshev Type I versus Chebyshev Type II (also cal...

Consider Chebyshev Type I versus Chebyshev Type II (also called inverse Chebyshev) Ölters. Which one should be used based on the following criteria? (If there is no difference betw

Explain working of shaded-pole motors, Q. Explain working of Shaded-pole mo...

Q. Explain working of Shaded-pole motors? Shaded-pole motors: The least expensive of the fractional-horsepower motors, generally rated up to 1 / 20 hp, they have salient stator

Explain the operation of n-channel fet, Q. Explain the operation of N-chann...

Q. Explain the operation of N-channel FET? Transistor is a linear semiconductor device that controls current with the application of a lower-power electrical signal. Transistor

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