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

Develop an analog computer simulation diagram, Q. Develop an analog compute...

Q. Develop an analog computer simulation diagram to solve the differential equation with y(0) = 2 and ? y(0) = 0.

Obtain the complete solution for the current, For the circuit of Figure, ob...

For the circuit of Figure, obtain the complete solution for the current i L (t) through the 5-H inductor and the voltage v x (t) across the 6- resistor.

Segment is used to store interrupt, Which Segment is used to store interrup...

Which Segment is used to store interrupt and subroutine return address registers? Ans) Stack Segment in segment register is used to kept interrupt and subroutine return address

Explain electrical contact materials, Explain electrical contact materials....

Explain electrical contact materials. Electrical contact materials: some elements, in their relatively pure forms as copper, nickel, molybdenum, palladium, silver, tungsten and

Identify the processes involved in fabrication, The first three elements of...

The first three elements of the task are: 1. To critically examine a selection of the components used on this design 2. To recommend materials to be used in making the board

Decision making, Decision  Making The rhombus diamond symbol  is used...

Decision  Making The rhombus diamond symbol  is used to represent  the decision making  process  as shown  below.                                          Figure  De

Working hydro-electric power plant, With the help of neat diagrams illustra...

With the help of neat diagrams illustrate the construction and working of various elements used in hydro-electric power plant. Compare hydro-electric power plant with other type

Power machines., name two types of axial flow turbines

name two types of axial flow turbines

What are the basic operations of mosfet, Q. What are the basic operations ...

Q. What are the basic operations of  MOSFET? The gate to source voltage is set to zero volts by the direct connection from one terminal to the other,and a voltage Vds is applie

Sequential diagram, 1) Draw the state diagram for the state machine describ...

1) Draw the state diagram for the state machine described by Table 7.5 in the text. Note, the table shows the transition to the next state S* from the current state S for the next

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