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

Erc and kpi, ERC and KPI The company requires understanding the strate...

ERC and KPI The company requires understanding the strategic and nearing term impact of the Regulator's orders / tariff approval process. Once these dimensions are understood,

Show demagnetizing effect of armature reaction, Q. A20-hp, 250-Vshuntmotor ...

Q. A20-hp, 250-Vshuntmotor has a total armature - circuit resistance of 0.25  and a field-circuit resistance of 200.At no load and rated voltage, the speed is 1200 r/min, and the

Electric roadway system specification, The electric roadway system shall ut...

The electric roadway system shall utilize solar energy as the main power source. The electric roadway system shall negotiate with the power utility on backup power supply.

Sinusoidal expression for the current, The voltage across a 1 - μF capaci...

The voltage across a 1 - μF capacitor is given. Which is the sinusoidal expression for the current? a) 30 sin200t b) 70cos (800t - 20°) At what frequency will the re

What is polarisation, What is polarisation? Explain. While a dielectric...

What is polarisation? Explain. While a dielectric material is related an electric field the dipoles of the material find oriented in a certain direction under the effect of the

Dc generator, short note on armature reaction

short note on armature reaction

Determine the induced armature emf, A250-V, 50-kWshort-shunt compound dc ge...

A250-V, 50-kWshort-shunt compound dc generator,whose schematic diagramis shown in Figure, has the following data: armature resistance 0.05 , series-field resistance 0.05 , and sh

How 8255 programmable peripheral interface can operate, What are the differ...

What are the different modes in which 8255 Programmable Peripheral Interface (PPI) can operate? Twenty Four I/O lines in 38-bit port groups - A, B and C A and B can be

Hybrid meters, Hybrid Meters These meters have electronic measurement ...

Hybrid Meters These meters have electronic measurement circuits but show is by impulse counters/stepper motors. Accuracy is classically class 1.0 or 2.0 and commonly these met

Discuss mode - 2 of programmable peripheral interface, Discuss mode -2 (bi-...

Discuss mode -2 (bi-directional mode) of 8255 (Programmable Peripheral Interface). Only permitted with port A. Bi-directional bus data used for interfacing two computers and GP

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