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

Voltage quadrupler, Voltage Quadrupler : A voltage quadrupler circuit is s...

Voltage Quadrupler : A voltage quadrupler circuit is shown in fig. which provides output voltage V0 = 4 Vm. Operation : Capacitor C 1 , C 2 and C 3 charges to Vm, 2Vm and 2Vm

Find the resonant frequency, Find the resonant frequency: Find the res...

Find the resonant frequency: Find the resonant frequency ω0 (or f0) for the given series RLC circuit v = Vm sin ωt = 50 sin ωt Figure Also determine the expre

What do you mean by communication channel, Q. What do you mean by communica...

Q. What do you mean by communication channel? The communication channel (transmissionmedium) is the physicalmediumthat is utilized to send the signal from the transmitter to th

Digital electronic, What are the advantages of wired-AND connection of digi...

What are the advantages of wired-AND connection of digital IC

Mr, what is pole core and pole shoe in a dc machine

what is pole core and pole shoe in a dc machine

Zener diode, where is a zener diode used in a car

where is a zener diode used in a car

Assmblly language, hi PA DS:1234 = AB PA DS:1235 = CD if i typed mov DX,[...

hi PA DS:1234 = AB PA DS:1235 = CD if i typed mov DX,[1234H] WHAT SHOULD I GET IN DX ?

Explain the applications of emitter follower, Q. Explain the applications o...

Q. Explain the applications of emitter follower. Because of high input impedance and low output impedance an emitter follower is capable of transferring maximum power from the

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