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

Ac netwoks, hello look for someone that could do i lab report form me on ac...

hello look for someone that could do i lab report form me on ac network, the report is due tonight at 12:00 so only have 8 hours left wondering if anyone is interested in do it? ca

Explain the purposes of modulation and demodulation, Question The diagr...

Question The diagrams below depict a modulation (left) and a demodulation(right). (a) Express y(t), u(t) and z (t). (b) What may happen to the demodulated signal y

Working principle of ultrasonic machining, Explain the basic working princi...

Explain the basic working principle of ultrasonic machining with the help of diagram. What are the different kinds of tool materials explain, tool holders are used in ultrasonic

Utilization of electrical energy, Ask question #Discuss the role of load fa...

Ask question #Discuss the role of load factor on the cost of electrical energy 100 words accepted#

Find the current in resistance, Q. Obtain the Thévenin and Norton equivalen...

Q. Obtain the Thévenin and Norton equivalent circuits for the portion of the circuit to the left of terminals a-b in Figure, and find the current in the 200- resistance.

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

Determine the output waveform of the voltage, Q. The first four harmonics i...

Q. The first four harmonics in the Fourier series of current waveform given by where I m = 15 mA and T = 1 ms. If such a current is applied to a parallel combination of R

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)

Working principle of an electronic voltmeter, Q.   Explain the working prin...

Q.   Explain the working principle of an electronic voltmeter. Sol. Electronic voltmeter Basic Voltmeter: The addition of a series resistor, or multiplier, converts the

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