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 do you mean by number systems, Q. What do you mean by Number Systems? ...

Q. What do you mean by Number Systems? The Digital circuits are inherently binary in nature, but numerous types of representations of numerical data are in use. The represen

Process of amplitude modulation, Q. Process of Amplitude Modulation? In...

Q. Process of Amplitude Modulation? In AM the message signal is impressed on the amplitude of the carrier signal. There are several different ways of amplitude modulating the c

Define instruction cycle, Define instruction cycle and T-state Instruct...

Define instruction cycle and T-state Instruction cycle is defined, as the time needed completing the execution of an instruction. Machine cycle is defined as the time needed co

Determine the capacitance length of a pcb embedded stripline, 1. Determine ...

1. Determine the capacitance length of a PCB embedded stripline, assuming no fringing of the electrostatic field. 2. Determine the capacitance/unit length of the same embedded stri

What do you mean by feedback in amplification, Q. What do you mean by Feedb...

Q. What do you mean by Feedback in amplification? Feedback :   Feedback in its broadest sense means that a certain amount of the output signal is "fed back" into the input. An

Can you show binary number formats, Q. Can you show Binary Number Formats? ...

Q. Can you show Binary Number Formats? We in general write binary numbers as a sequence of bits (bits is short for binary digits) and we have defined boundaries for these bits.

Shunt capacitors, Shunt Capacitors Line losses owing to poor PF can be...

Shunt Capacitors Line losses owing to poor PF can be decreased through improving the PF. Overall improvement in the operating condition can be brought about through reducing t

Find the total input power, Q. A 230-Vdc shuntmotor delivers 30 hp at the s...

Q. A 230-Vdc shuntmotor delivers 30 hp at the shaft at 1120 r/min. If the motor has an efficiency of 87% at this load, find: (a) The total input power. (b) The line current.

Clippers, what is shunt clipper?

what is shunt clipper?

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