Compare with register, Electrical Engineering

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.


Posted Date: 4/5/2013 12:50:34 AM | Location : United States

Related Discussions:- Compare with register, Assignment Help, Ask Question on Compare with register, Get Answer, Expert's Help, Compare with register Discussions

Write discussion on Compare with register
Your posts are moderated
Related Questions

Write shorte note on Carbon. Carbon: The rate of commutator wear in electrical machines is greatly decreased by using brushes made of carbon. Carbon (C) is also used in autom

Differentiate between Motorola processors and INTEL processors. Comparison between Motorola processors and INTEL processors: AMD/Intel processors are actually about similar t

Explain Practical Digital to Analog Converters? In several DSP applications, we must reconstruct an analog signal after the digital processing stage. This is completed using a

Dc Circuits: In this unit, you have learned about methods of network analysis which are general in nature such as KCL, KVL, Nodal and Mesh analysis. These general methods may

Q. Draw the circuit of a 7805 voltage regulator? Explain the functions of the capacitors used at its input and output sides. Functions of capacitors used at input and outp

Forth Generation VLSI  technology  of IC made it possible  to design the  complete  circuit  of ALU  Arithmetic  logic unit and cu ( Control Unit ) within  single  chip  which

Explain procedure to take shut down and to test the power line before starting work? Ans: Study the circuit and find out the circuit breaker to be opened. Open and lock the c

I need some help for doing the assignment

A 450 ns EPROM won't work directly with a 5MHz 8088.Why? Explain. While the 8088 is operated along with a 5 MHz clock, it permits 460 ns for the memory to access data. Due to t