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

Explain polling, What is meant by polling? In polling schemes, a set of...

What is meant by polling? In polling schemes, a set of address lines is driven by the controller to address every of the masters in sequence. When a bus request is received fro

Triac, what is the daily life work of triac

what is the daily life work of triac

Compute efficiency of 4 hours full load at 0.8 power factor, Q. A 10-kVA tr...

Q. A 10-kVA transformer is known to have an iron loss of 150 W and a full-load copper loss of 250 W. If the transformer has the following load cycle, compute its all-day efficiency

Total debt to total assets ratio, Total Debt to Total Assets ratio A m...

Total Debt to Total Assets ratio A metric used to measure a company's financial risk by determining how much of the company's assets have been financed by debt. It is calculat

Obstacle avoidance Arduino robot, we work as a group on Automoted guided ve...

we work as a group on Automoted guided vehicles project, with 2 vehicles one is leading and the other is guided and following the first one, i was assigned to write an obstacle avo

Determine the voltage across each resistor, For the circuit of Fig: (i) ...

For the circuit of Fig: (i) using Kirchoff's Laws , find all the currents (ii)  determine the voltage across each resistor and check that all loops comply with KVL (iii

Pins and signals , Pins  and Signals As  discussed  earlier that  808...

Pins  and Signals As  discussed  earlier that  8085  microprocessor  chip has 40 pins shown  various  pins  and signals of 8085  microprocessor. All  these  signals can be   c

Hybrid model for two-port network, Hybrid Model for Two-port Network:- ...

Hybrid Model for Two-port Network:-             V 1 = h 11 i 1 + h 12 V 2                                                                             I 2 = h 1 i 1

Explain about rotating machines, Q. Explain about Rotating Machines? Th...

Q. Explain about Rotating Machines? Themost widely used electromechanical device is a rotatingmachine, which utilizes themagnetic field to store energy. The main purpose of mos

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