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 thermal runaway, Q. What is thermal runaway? State one method to pr...

Q. What is thermal runaway? State one method to prevent the same? The effect of changes in leakage current (ICO)  and current gain(b) on the dc bias point is given by the equat

What do you mean by common collector configuration, Q. What do you mean by ...

Q. What do you mean by Common collector configuration? Common collector configuration:In this circuit the collector is common to both the input and the output.Such a configurat

Radio communication engineering, how electromagnetic wave transmitted from ...

how electromagnetic wave transmitted from the ground are bent back towards the earth when they enter a layer of ionosphere?

Illustrate breakpoint analysis, Q. Illustrate Breakpoint Analysis? When...

Q. Illustrate Breakpoint Analysis? When a circuit consists of two or more ideal diodes, it will have several distinct operating conditions resulting from the off and on states

Gas hazards in the laboratory, GAS HAZARDS IN THE LABORATORY : As mentione...

GAS HAZARDS IN THE LABORATORY : As mentioned in the introduction of this unit, the gas hazards in a laboratory arise from LPG and other compressed gases. Though the use of gas for

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,

2365 - 305 task a, List four sources of information which are essential to ...

List four sources of information which are essential to the designer of this electrical installation.

FET operation, ON output plot of a JFET n-channel transistor if ID is close...

ON output plot of a JFET n-channel transistor if ID is close to IDSS does the value of VGS close to VP?

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