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

Zener Diode, #question ...THE APPLICATION AND OPERATION OF ZENER DIODES

#question ...THE APPLICATION AND OPERATION OF ZENER DIODES

Thyristor terminology , Thyristor  Terminology The followings  terms ...

Thyristor  Terminology The followings  terms are used in SCR  specifications: Latching current : The  latching  current is  the value of on stat e current  required  to mai

For zero flag - return instructions, For zero flag  RZ ( Return on Z...

For zero flag  RZ ( Return on Zero) and RNZ ( Return on no zero) Instructions RZ  returns from the subroutine to the  calling  program, if zero flag  is set  (Z= 1). The

Find the minimum sum of products, Given that , f(a,b,c,d,e) = Σm (6,7,9,11,...

Given that , f(a,b,c,d,e) = Σm (6,7,9,11,12,13,16,17,18,20,21,23,25,28) using a Karnaugh map. (i) Find the essential prime implicants (ii) Find the minimum sum of product

Organisational trends - power distribution management, Organisational Trend...

Organisational Trends: 1 Organisations are economic and social entities in which a number of persons perform multifarious tasks in order to attain common goals. Four key organ

Human resources - kpi, Human Resources - KPI It is the responsibility ...

Human Resources - KPI It is the responsibility of management to have the lean, capable, customer friendly organization that strives for catering to diversified need of all the

Why hard magnetic materials are used, Hard magnetic materials are used for ...

Hard magnetic materials are used for making (A) Permanent magnets. (C) Conductors. (B) Insulator. (D)Temporary magnets. Ans: Hard magnetic materials are

Electonic principles, can you help with my electronic principle assignment

can you help with my electronic principle assignment

What is solar water heating, What do you understand by solar water heating ...

What do you understand by solar water heating and discuss different kind of solar water heating based on collector-storage and circulation type. Discuss integrated collector - s

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