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 an amplifier, Q. What is an amplifier? What are the various types o...

Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

Fiind the magnitudes of the line-to-line voltages, Q. A single-line diagram...

Q. A single-line diagram of a three-phase transformer bank connected to a load is given in Figure. Find the magnitudes of the line-to-line voltages, line currents, phase voltages,

Designated consumers - features of energy conservation, Designated Consumer...

Designated Consumers - Features of Energy Conservation The Act gives the list of designated consumers, which involves the energy intensive industries, Railways, Port Trust, Tr

Testing stationarity, 1)  Use plot of the stock return and consider the Aut...

1)  Use plot of the stock return and consider the Autocorrelation Function to determine the auto-regressive structure of the data and explain why you think the return is stationary

Wave anlysers, Operation of heterodyne wave analyzer with block diagram

Operation of heterodyne wave analyzer with block diagram

Power mosfet - power semiconductor devices , Power MOSFET MOSFET stands...

Power MOSFET MOSFET stands  for metal oxide semiconductor fields  effect transistor.  A power  MOSFET has  three  terminal  drain source  and  gate,. It  is unipolar device  me

Determine the electric force on each charge, Q Point charges, each of √4πε0...

Q Point charges, each of √4πε0 C, are located at the vertices of an equilateral triangle of side a. Determine the electric force on each charge.

Determine the thevenin and norton equivalent circuits, Q. (a) Determine the...

Q. (a) Determine the Thévenin and Norton equivalent circuits as viewed by the load resistance R in the network of Figure. (b) Find the value of R if the power dissipated by R is

Draw and explain the circuit of wein bridge oscillator, Q. Draw and explain...

Q. Draw and explain the circuit of Wein bridge oscillator. Obtain the expressions for the (i) frequency of oscillation and (ii) condition for oscillation. Will oscillat

Security alarm system, In this Project you will simulate a Security Alarm s...

In this Project you will simulate a Security Alarm system using the Quick flash board. A switch is placed as shown in the figure below. The main goal of this project is: Task 1:

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