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

Explain the working of rectifier circuits, Q. Explain the working of Rectif...

Q. Explain the working of Rectifier Circuits? A simple half-wave rectifier using an ideal diode is shown in Figure(a). The sinusoidal source voltage v S is shown in Figure (b)

Nicol prism, how much and what to write it is of 30 marks

how much and what to write it is of 30 marks

Arduino Microcontroller, Hi. Do you do projects with Arduino microcontrolle...

Hi. Do you do projects with Arduino microcontroller? How much does it cost?

generator, diagram of static generator

diagram of static generators

Electronics circuits 1, Explain and drive the expression for fixed bias and...

Explain and drive the expression for fixed bias and potential divider.

Find the total per-phase inductance, A 300 km, 3-phase, 50Hz transmission l...

A 300 km, 3-phase, 50Hz transmission line has spacing as shown in Figure. Each phase of the line consists of a bundle of three conductors. (a) Find the total per-phase inductanc

Rankine cycle and modified rankine cycle, Discuss in detail the several ene...

Discuss in detail the several energy resources and their availability. How does a Rankine cycle differ from a modified Rankine cycle? Write down the mathematical expression of m

Electron beam focused to a fine spot, Q. How is the electron beam focused t...

Q. How is the electron beam focused to a fine spot on the face of the CRT? Sol. The functional diagram of an electrostatic focusing arrangement is shown below. The pre-accele

Synchronization, Synchronization:  Whatever type of weep is used, it must ...

Synchronization:  Whatever type of weep is used, it must be synchronized with the signal being measured. Synchronization has to be done to obtain a stationary pattern. This requir

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