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

Determine a normalized frequency at 820nm, Determine a normalized frequency...

Determine a normalized frequency at 820nm for a step index fibre having 25µm core radius. Given n 1 =1.48 and n 2 =1.46.Also calculate how several modes propagate within this fibre

Digital logic design, how to sort three number in descending order and disp...

how to sort three number in descending order and display on seven segment

Determine the upper limit of tdm signal, A TDM signal of the type is formed...

A TDM signal of the type is formed by samplingM voice signals at fs = 8 kHz. If the TDM signal then modulates the amplitude of a 4-MHz carrier for radio transmission, determine the

Determine the equivalent inductance, Determine the equivalent inductance: ...

Determine the equivalent inductance: Two coils of inductances 4H and 6H are connected in parallel. If their mutual inductance is 3 H, determine the equivalent inductance of th

What do you mean by transconductance, Q. What do you mean by Transconductan...

Q. What do you mean by Transconductance? The  control that the gate voltage has over the drain current is measured by transconductance and is similar to the transconductance of

Compare call and push instructions, Compare CALL and PUSH instructions ...

Compare CALL and PUSH instructions CALL PUSH When CALL is implemented the microprocessor automatically stores the 16-bit address of the instruction next to CALL on the sta

#DSP ., #The requirement is as follows- There is a signal which is in the r...

#The requirement is as follows- There is a signal which is in the range of 0 to 5Hz. This signal frequency composition is to determined. The resolution of the determination is 1Hz.

Input output, Input output The parallelogram symbol  is used to repres...

Input output The parallelogram symbol  is used to represent the input output  process as shown  below.                 IN01H

Find the power supplied by the voltage source, Find the power supplied by t...

Find the power supplied by the voltage source and the power absorbed by the 24 Ω resistor (R3) in the circuit shown below:   Determine the voltage V2 in the circuit shown.

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