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

What is induction machines, Q. What is Induction machines? We shall fir...

Q. What is Induction machines? We shall first consider polyphase induction motors and then single-phase induction motors. The polyphase induction motors used in industrial appl

Give some applications of german silver, Give some applications of German s...

Give some applications of German silver. German silver is an alloy of zinc, nickel and copper. German silver is used in electrical measuring instruments.

Explain ionic polarisation, Explain ionic polarisation. Ionic Polaris...

Explain ionic polarisation. Ionic Polarisation: It takes account of the fact that while some of the atoms in a molecule contain an excess positive or negative charge that of

Obtain the value of rs, Consider and obtain the values for R S , R 2 , R 1 ...

Consider and obtain the values for R S , R 2 , R 1 , and R D . Apply the rule-of-thumb dc design procedure outlined in this section for a JFET with V P = 3V, I DSS = 20 mA, and a

TRIAC, what are the electrical characteristics of TRIAC?

what are the electrical characteristics of TRIAC?

Calculate the voltage across the capacitor, In the circuit above, V1 is a d...

In the circuit above, V1 is a dc supply which outputs 12V, R1 has a value of 100 Ω and C1 is 100µF. The switch has been left in the position shown for a long time such that there i

Simulate the circuit using digital simulation techniques, You are the new c...

You are the new chief PCB designer for a small company who are about to become heavily involved in the design and realisation of digital timing products. Your management wants to p

Explain electric polarization, Explain electric polarization. Electr...

Explain electric polarization. Electric polarization : This polarization density is the vector field such expresses the density of permanent or induced electric dipole momen

Network theorems, what is the limitations of maximum power transfer thorem ...

what is the limitations of maximum power transfer thorem ?

Electrical engineering, 4. Modify the circuit designed for question 3 to pr...

4. Modify the circuit designed for question 3 to provide an emergency stop which will park both cylinders in the extended position (i.e. A + B +). 5. Modify the circuit designed fo

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