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

Princeton and harvard microprocessor architectures, Question a) Explain...

Question a) Explain, with the aid of diagrams, the differences between the Princeton and Harvard microprocessor architectures. b) Describe why the principle of locality of r

Mr GZ, HOW TO PERFOM AUTO DIALLING USING GSM MODULE

HOW TO PERFOM AUTO DIALLING USING GSM MODULE

Dc generator, Why armature core in a DC machine is constructed with laminat...

Why armature core in a DC machine is constructed with laminated steel instead of solid steel sheets

Finite state machine, the tutorial assignment is part of my thesis work and...

the tutorial assignment is part of my thesis work and i need help in it please

Transistor, describe the compensation technique for both Vbe and Icbo

describe the compensation technique for both Vbe and Icbo

Butterworth filter, what is experimental setup for Butterworth filter?

what is experimental setup for Butterworth filter?

Assignment, design a half wave bridge rectifier to perform the function ind...

design a half wave bridge rectifier to perform the function indicated

Determine the current needed in the coil to produce a flux, Q. Consider the...

Q. Consider the magnetic circuit shown in Figure. Assume the relative permeability of the magnetic material to be 1000 and the cross-sectional area to be the same throughout. Deter

Superposition, advantages and disadvantaages of superposition

advantages and disadvantaages of superposition

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