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

Digital, #quesFind a minimum two level, multiple-output AND-OR gate circuit...

#quesFind a minimum two level, multiple-output AND-OR gate circuit to realize these functions (eight gates minimum). F1(a,b,c,d) =Sm(10,11,12,15) +D (4,8,14) F2(a,b,c,d) =Sm(4,11

Tvm, Why is the signal first attenuated and then amplified?

Why is the signal first attenuated and then amplified?

Equivalent circuit of a polyphase induction machine, Equivalent Circuit of ...

Equivalent Circuit of a Polyphase Induction Machine The inductionmachinemay be regarded as a generalized transformer inwhich energy is converted and electric power is transferr

Vehicle tracking system, coding for vehicle tracking system using gsm in av...

coding for vehicle tracking system using gsm in avr atmega16 microcontroller

Explain the construction of power transformer, Q. Explain, with the aid of ...

Q. Explain, with the aid of diagrams, the following in relation to the construction of power transformers. Include the advantages and disadvantages in your description. a) Core

High-pass t filters, High-pass T filters: Three-element filters can co...

High-pass T filters: Three-element filters can comprise a 'T' or 'π' topology and in either geometries, a low-pass, band-pass, high-pass, or band-stop characteristic is feasib

Cause of sparking at the brushes of a dc motor, Q. Cause of sparking at the...

Q. Cause of sparking at the brushes of a DC Motor? Ans: Sparking at the brushes can be occur due to poor quality of carbon brushes, loose connection, poor armature of carbon

Demodulators for FM, Demodulators for FM Figure  shows a block diagram ...

Demodulators for FM Figure  shows a block diagram of a general FM demodulator, which is implemented by generating an AM signal whose amplitude is proportional to the instantane

Determine thevinin and norton equivalent circuit, Design and simulate by us...

Design and simulate by using multisim software a series voltage regulator to supply 1A to a load at a constant voltage of 9V. The supply voltage to regulator is 15V±10%. The minimu

Explain the operation of the counter, Q. Figure shows the mod-8 counter whi...

Q. Figure shows the mod-8 counter which counts from 010 to 710 before resetting. Explain the operation of the counter and sketch the timing diagram.

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