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

Technical loss in electrical systems, Technical Loss in Electrical Systems ...

Technical Loss in Electrical Systems Technical loss is inherent in electrical systems, as all electrical devices have a few resistances and the flow of currents causes a power

Principles for implementation of strategy in organization, Principles for I...

Principles for Implementation of Strategy in an Organization Organization required focusing on five principles for the successful implementation of strategy. Organizations wil

Finance and accounting in kpi, Finance and Accounting in KPI Every bus...

Finance and Accounting in KPI Every business is completed to earn some profit and it is the underline concept. The main tasks are to manage the finances efficiently to meet th

Storage oscilloscope, Aim To build a simple storage oscilloscope usi...

Aim To build a simple storage oscilloscope using the PIC trainer To report on the program's design and operation Equipment PIC Trainer and PICkit3 in-circui

Sketch the phasor diagram showing all the voltages, Q. A balanced wye-conne...

Q. A balanced wye-connected load with a per-phase impedance of 4 + j3  is supplied by a 173-V, 60-Hz three-phase source. (a) Find the line current, the power factor, the total

transmisson medium, Can I find out the salution of electrods Transmissio...

Can I find out the salution of electrods Transmission medium light sound uncoupling magnet for high dc cycle.

Magnetic Bond Method:, how does the magnetic bond method work? Application ...

how does the magnetic bond method work? Application of the magnetic bong method & advantages and disadvantages of the magnetic bond method.

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