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

Signals and spectral analysis, Q. Signals and spectral analysis? Figure...

Q. Signals and spectral analysis? Figure shows the functional block diagram of a signal-processing system. The information source may be a speech (voice), an image (picture), o

Show elementary synchronous machines, Q. Show Elementary Synchronous Machin...

Q. Show Elementary Synchronous Machines? The polyphase synchronous machine operates with direct current supplied to the field winding (assumed to be on the rotor, which is usua

Feedback amplifier, Draw and explain the circuit of feedback amplifier

Draw and explain the circuit of feedback amplifier

What is the signal classification of 8085, What is the signal classificatio...

What is the signal classification of 8085 All the signals of 8085 can be classified into 6 groups Address bus Data bus Control and status signals Power supply and f

Calculate voltage and frequency, The stator and rotor of a three-phase, 440...

The stator and rotor of a three-phase, 440-V, 15-hp, 60-Hz, eight-pole, wound-rotor induction motor are both connected in wye and have the following parameters per phase: R1 = 0.5

Determine horsepower output at full-load torque, A 500-hp, wye-connected, w...

A 500-hp, wye-connected, wound-rotor induction motor, when operated at rated voltage and frequency, develops its rated full-load output at a slip of 0.02; maximum torque of 2 times

Electronics, what is the difference between half &full wave rectifier

what is the difference between half &full wave rectifier

Explain symmetrical t-attenuator, Question 1 State and Explain Kirchhoff's...

Question 1 State and Explain Kirchhoff's Voltage and Current Law Question 2 State and prove Thevenine's Theorem Question 3 What is a filter? Design a Constant -K band Pa

Explain topology method used in lan technology, Q. Explain topology method ...

Q. Explain topology method used in LAN technology? Ans: LAN Topologies: Network topology is a physical schematic which demonstrates interconnection of the many users. Th

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