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

Electric Optic Device, Transmission Through a LiNb0 3 Plate Examine the tr...

Transmission Through a LiNb0 3 Plate Examine the transmission of an unpolarized He-Ne laser beam (?o= 633 nm) normally incident on a LiNb0 3 plate (ne = 2.29, no = 2.20) of thickn

Describe about absolute poverty, Q. Describe about Absolute Poverty? Po...

Q. Describe about Absolute Poverty? Poverty defined with respect to an absolute material standard of living. A person is absolutely poor if their income does not allow them to

Find the charge flowing and the number of electrons, Q. A current i(t) = 20...

Q. A current i(t) = 20 cos(2π × 60)t A fows through a wire. Find the charge flowing, and the number of electrons per second that are passing some point in the wire.

What is interfacing, What is interfacing? An interface is a shared boun...

What is interfacing? An interface is a shared boundary among the devices which includes sharing information. Interfacing is the process of making two dissimilar systems communi

Cost and profitability - proposed kpis, Cost and Profitability - Proposed K...

Cost and Profitability - Proposed KPIs  KPI  UOM  Measures   RepresentativeStandards  Aggregate Technical &  Commercial L

Evaluate the straight-line and actual gain response, Q. Consider the circui...

Q. Consider the circuit shown in Figure in the time domain aswell as in the s-domain. Its transfer function V 2 (s)/V 1 (s) can be shown to be  which is a second-order bandpass tra

Power, what is reactivecpower

what is reactivecpower

8085microprocessor architecture , Normal 0 false false fals...

Normal 0 false false false EN-IN X-NONE X-NONE 8085MICROPROCESSOR ARCHITECTURE

Example numerical of dc generator., Q. An 8 - pole dc generator has 500 arm...

Q. An 8 - pole dc generator has 500 armature conductors and has a useful flux per pole of 0.065 web. What will be the emf generated if it is lap connected and runs at 1000 r.p.m.

Describe the basic types of number systems, Q. Describe the basic types of ...

Q. Describe the basic types of Number Systems? Probably the largest stumbling block most beginning programmers encounter when attempting to learn assembly language is the commo

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