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

Types of bias circuit for class a amplifiers, Types of bias circuit for Cla...

Types of bias circuit for Class A amplifiers: There are five common types of biasing circuits used with Class A bipolar transistor amplifiers: A. Fixed bias B. Collector

Describe the process control instructions, Describe the process control ins...

Describe the process control instructions STC - It sets the carry flag & does not affect any other flag  CLC - it resets the carry flag to zero &does not affect any other fl

Convert these numbers to their decimal values, Q. Consider the three BCD nu...

Q. Consider the three BCD numbers listed below. 0001 1000 0101 1000 0010 0001 0011 1000 0100 0011 0101 0101 a) Convert these numbers to their decimal values. b) Conv

How do you modify the direction of rotation of a d.c. motor, Q. How do you ...

Q. How do you modify the direction of rotation of a D.C. motor? Ans: The direction of rotation of DC motor will be changed either by changing the field winding connections o

Verniercallipars, what is a verniercallipar?what is its uses in labs?why it...

what is a verniercallipar?what is its uses in labs?why it is using o meassure he diameer and volume of cylendars?what is its least count?what is zero error?

Mr Aucamp , How can I get an oscillator to genarate a sinusoid instead of a...

How can I get an oscillator to genarate a sinusoid instead of a triangle wave

Dc machines, explain dynamically induced emf and derive expression for it

explain dynamically induced emf and derive expression for it

Electricity and safety, explain appropriate first aid procedure to be follo...

explain appropriate first aid procedure to be followed in case of electric shock

Basis vectors, • Vectors can be represented in terms of basis vectors, a se...

• Vectors can be represented in terms of basis vectors, a set of vectors that span the vector space • Mostly will use i, j, k to denote a Cartesian right-handed basis set • V

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