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

Illustrates power dissipation management in embedded system, Illustrates ab...

Illustrates about the power dissipation management in embedded system? Power Dissipation Management a. Clever real-time programming through Wait and Stop instructions b.

Different types and uses of delay line in cro, Q.   What are the different ...

Q.   What are the different types and uses of delay line in CRO? OR Why is a delay line used in the vertical section of the oscilloscope? Sol. All electronic circui

Find the largest current out, Q. Consider a BJT switch connected to the nex...

Q. Consider a BJT switch connected to the next stage, as shown in Figure, in which iout is likely to be negative when v out is high. Assume V CC = 5 V, R C = 1k, and the high r

Calculate the maximum power that transmitted to the load, Calculate the Max...

Calculate the Maximum Power That Transmitted To the Load? A 25 MW load at the 33 kV receiving-end busbar of a short 3-phase transmission line has a power factor of 0.8 lagging.

Show the applications of a r-c coupled amplifier, Q. What are the applicati...

Q. What are the applications of a R-C coupled amplifier. The R-C coupled amplifiers have excellent audio fidelity over a wide range of frequency. Therefore, they are widely use

Nand gate - introduction to microprocessors , NAND Gate NAND   means NO...

NAND Gate NAND   means NOT AND  it complements  the output  of an AND  gate. The symbol  of NAND  by a NOT  gate.  Generally Not  operation  is represented by a bubble as shown

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

risers, Risers: Riser Design : A riser or a feeder head is a passag...

Risers: Riser Design : A riser or a feeder head is a passage of sand made in the cope to permit the molten metal to rise above the highest point in the casting after the mou

Calculus, area bounded by the curve y=3x(x-2)^2 and the x-axis

area bounded by the curve y=3x(x-2)^2 and the x-axis

Activities to preparing long-term plans, Activities to Preparing Long-term ...

Activities to Preparing Long-term Plans 1. Data collection regarding existing loads, forecast of expected loads, operating conditions, and etc. from Grid substation up to cons

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