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

Can you explain octal to binary conversion, Q. Can you explain Octal to Bin...

Q. Can you explain Octal to Binary Conversion? It is also simple to convert from an integer octal number to binary. This is completed by: Convert the decimal number

Thunderstrom detector, Ask question #how to construct thunderstrom detector...

Ask question #how to construct thunderstrom detector with circuit breaker.

Explain the working principle of an opto coupler, Q. Explain the working pr...

Q. Explain the working principle of an opto coupler? When it is necessary to block the voltage between one electronic circuit and another, and transfer the signal at the same t

What is the function of gate signal in 8254 timer, What is the function of ...

What is the function of gate signal in 8254 timer? The  8254 has three independent 16-bit counters, which can be programmed to. Work in any one of possible six modes. Every cou

Explain the advantage of synchronous counters, Explain the Advantage of Syn...

Explain the Advantage of Synchronous Counters? The most significant advantage of synchronous counters is that there is no cumulative time delay because all flip-flops are trigg

Analysis of frequency response with pspice and probe, Analysis of Frequency...

Analysis of Frequency Response with PSpice and PROBE PSpice can readily accomplish the circuit analysis as a function of frequency, and PROBE can display Bode plots for magnitu

Explain iron and silicon iron alloys, Explain iron and silicon iron alloys....

Explain iron and silicon iron alloys. Iron: Galvanised steel and iron wires that are usually used for earth conductor in low voltage distribution systems may also be utilize

Determine the base current, Q. A transistor has a base current i B = 25 µA...

Q. A transistor has a base current i B = 25 µA, α = 0.985, and negligible ICBO. Find β, iE, and i .

Electrical machine, Design a suitable double –layer lap winding for a 6-pol...

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

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