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

Example of high resistivity material, Example of high resistivity material ...

Example of high resistivity material is (A) Nichrome              (B) Silver (C) Gold                      (D) Copper Ans: Nichrome is example of high resistivity

Main difference between a latch and a flip flop, Question: a) What is ...

Question: a) What is the main difference between a latch and a flip flop? b) Draw the logic diagram of an SR-latch using only NAND gates. c) A positive edge triggered

Nash equilibrium matlab code, Can someone please guide me on how to compute...

Can someone please guide me on how to compute a nash equilibrium in matlab

Determine the disadvantages of expert systems, Determine the Disadvantages ...

Determine the Disadvantages of expert systems -  Lacks common sense in some decision making processes -  Errors in the knowledge base can result in incorrect decisions being

Discrete time system transfer function, For a discrete time unit step input...

For a discrete time unit step input x(kT), the output  y(kT) of a system is shown below,   Part (a)  Obtain the Z-transform of the output signal y(kT).   Part (b)   F

calculate the current, Find the Thévenin equivalent for the attache...

Find the Thévenin equivalent for the attached circuit and use this to calculate the current in the load.   Circuit information:- Load consists

Abcd propagation , ABCD propagation of an optical ray through a system can...

ABCD propagation of an optical ray through a system can be explained by a simple 2_2 matrix. In ray optics, the characteristic of a system is given by the corresponding ray matrix

What are transmission bridges, Q. What are transmission bridges? How do the...

Q. What are transmission bridges? How do they assist in satisfying the connectivity?  Ans: A typical transmission bridge is demonstrated in figure. Series capacitance and shunt

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