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 meant by cross-compiler, Ans) A program runs on one machine and imp...

Ans) A program runs on one machine and implements on another is known as cross-compiler Programs which compile on One Machine and implements on another machine is known cross

Calculate the voltage, Qestions: a)  Draw the approximate equivalent ci...

Qestions: a)  Draw the approximate equivalent circuit for a single phase power transformer. Identify all circuit elements and briefly explain their physical relevance. b)  S

Which alloy is used for making heater & thermocouple element, Give the name...

Give the names of four alloys along with their composition, which are used for making heater and thermocouple elements. Constantan or Eureka {(55 to 60 percent) Cu, (45 to 40 p

Find the force between the wires, Q. A magnetic force exists between two ad...

Q. A magnetic force exists between two adjacent, parallel current-carryingwires. Let I 1 and I 2 be the currents carried by the wires, and r the separation between them. Making u

Armature reaction, cross magnetizing components of armature reaction is.......

cross magnetizing components of armature reaction is...........

Explain public mode, Explain PUBLIC For large programs several small mo...

Explain PUBLIC For large programs several small modules are linked together. In order that the modules link together correctly any variable name or label referred to in other m

What are the features of clamping circuits, Q. What are the features of cla...

Q. What are the features of clamping circuits? The clamping circuit does not change the peak to peak or r.m.s value of the waveform .Thus the input waveform and clamped output

Energy bands, Energy Bands 1) Since isolated atoms are brought togethe...

Energy Bands 1) Since isolated atoms are brought together to make a solid, the electron wave functions begin to overlap. 2) Several interactions occur, and, at the proper i

Calculate the current flow through rl, Using star-delta transformation, cal...

Using star-delta transformation, calculate the current flow through RL.

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