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

Variable capacitors, how can I simulate air variable capacitors in cst simu...

how can I simulate air variable capacitors in cst simulator?

Followings are the disadvantages of plc - stepper motor , Followings are th...

Followings are the Disadvantages of PLC a.Too much  work  required in  connecting wires. b.Difficulty with changes or replacements. c.Difficulty in finding  errors  requi

Define series var compensation, Define Series VAr Compensation? For ver...

Define Series VAr Compensation? For very long transmission lines, the inductive reactance of the line becomes so high that not much power can be transmitted through the line, s

Spread time - power semiconductor devices , Spread Time (t s ) During  ...

Spread Time (t s ) During  spread time anode  voltage  falls from 10% I a  to the  on state  voltage  drop  and anode  current  rises  from 90% I a   to final  value  of anode

Define capacitor construction, Define Capacitor Construction In its mo...

Define Capacitor Construction In its most elementary state a capacitor having of two metal plates separated by a certain distance d, in among the plates lies a dielectric mate

Transistor, why BETA a current gain parameter of common emitter amplifier i...

why BETA a current gain parameter of common emitter amplifier is temperature dependent?

Colpitts oscillator circuit design, i would like to construct a colpitts os...

i would like to construct a colpitts oscillator using a series lc tank circuit as a feedback. the circuit will have a frequency of 150 Khz and it will drop when varying the value o

Show maximum common-mode input voltage, Q. Show Maximum Common-Mode Input V...

Q. Show Maximum Common-Mode Input Voltage of amplifier? This is the maximum voltage that the two inputs can be raised above ground potential before the op amp becomes nonlinear

Working principle of a q meter, Q. Explain the working principle of a Q met...

Q. Explain the working principle of a Q meter. Also explain the factors that cause errors during a Q factor measurement. Ans.   Working Principle of Q Meter: the q meter is

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