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

Microcontroller, 1. Look at a method of creating AC from DC. 2. This may...

1. Look at a method of creating AC from DC. 2. This may involve a microcontroller. 3. Method must be able to synchronise your produced AC to local AC supply. 4. Look at po

Determine the disadvantages of GPS system, Determine the disadvantages of G...

Determine the disadvantages of GPS system -  Maps not up to date hence instructed to carry out an incorrect manoeuvre (for example turn into a road that no longer exists) -

Draw and explain a differential circuit, Q. Draw and explain a differential...

Q. Draw and explain a differential circuit A differentiator is a high pass RC circuit having a very small time constant. It is a circuit which gives an output voltage proportio

#speed control, explain speed control of dc motor

explain speed control of dc motor

Mesh-current equation with controlled sources, Since a controlled source ac...

Since a controlled source acts at its terminals in the same manner as does an independent source, source conversion and application of KCL and KVL relations are treated identically

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

Find the charge flowing and the number of electrons, Q. A current i(t) = 20...

Q. A current i(t) = 20 cos(2π × 60)t A fows through a wire. Find the charge flowing, and the number of electrons per second that are passing some point in the wire.

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