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
1. Frequency Modulation theory and its explanation 2. FM transmitter schematic, tests results and measurements 3. Amplifier and Oscillator circuit explanation and calculation

Depletion type MOSFET The channel is of silicon. It can be two type of channel that is an n-type or p-type channel; it is still mostly silicon. After that, we take note that


What are the modes used in display modes? 1. Left Entry mode In the left entry mode, the data is going into from the left side of the display unit. 2. Right Entry Mode

Define the application of CAM/CAD to engineering design along with its benefits. a) A triangle is prepared by three position vectors A[2 4 1], B[4 6 1], C[2 6 1], get the reflec

Q. Determine the function of time for the clock? Given the block diagram for a 4-bit shift-left register shown in Figure (a), draw the output (Q 0 , Q 1 , Q 2 , Q 3 , and data

Methods of Testing Irrespective of reasons, testing is commonly carried out 1. On site, or 2. In a Meter Testing Station (MTS) accredited as per IS/ISO/IEC 17025.

If a current of 10A flows for four minutes, find the quantity of electricity transferred. Quantity of electricity, Q=It coulombs. I =10A and t = 4 × 60 = 240s.  Hence Q =

Voltage Quadrupler : A voltage quadrupler circuit is shown in fig. which provides output voltage V0 = 4 Vm. Operation : Capacitor C 1 , C 2 and C 3 charges to Vm, 2Vm and 2Vm

Questions: Part (a) A compressor installed at a wharf (for loading container ships) is able to provide 6 bar.g pressure into the pressure receiver. The compressor is moved