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

Light triggering - power semiconductor devices , Light Triggering Whe...

Light Triggering When  light is  thrown  on silicon the hole electron pair get excited an increases hence  the leakage  current of J 2   increases which  will increase I C1 a

Input characteristics - power semiconductor devices , Input Characteristics...

Input Characteristics Transistors  can be  operated in the switching  mode. If  base  current IB  is zero transistor is in  an ON  state  behaves as a switch. If  the base  cur

Growth in communications, The growth in communications over the past 60 yea...

The growth in communications over the past 60 years has been phenomenal. The invention of the transistor in 1947 and the integrated circuit and laser in 1958 have paved the way to

What do you mean by companding, Q. What do you mean by Companding? In o...

Q. What do you mean by Companding? In order to lower the crest factor of a waveform, so as to produce better performance, a process known as companding is used. It works like a

Define resistance strain gauge, Q. Define Resistance Strain Gauge? Mech...

Q. Define Resistance Strain Gauge? Mechanical and civil engineers routinely employ the dependence of resistance on the physical dimensions of a conductor to measure strain. A s

Find the antenna temperature, Q. If an antenna has an available noise power...

Q. If an antenna has an available noise power of 1.6 × 10 -15 W in a 1-MHz bandwidth, find the antenna temperature.

Compute the capacitance per unit length, Write a program implementing the c...

Write a program implementing the conjugate gradient method (un-preconditioned). Solve the matrix equation corresponding to a finite difference node-spacing, h = 0.02m in x and y di

Ac supply, its defination and mathematical expression if any

its defination and mathematical expression if any

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

Electrical System Design, List four sources of information which are essent...

List four sources of information which are essential to the designer of this electrical installation

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