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

Magnetism and mahnetic materials, I have to make assignment of about the to...

I have to make assignment of about the topic Magnetism and magnetic materials. I don''t know how I will prepare this assignment. Please give me some instructions about this.

Show the conditions necessary for sustained oscillation, The conditions nec...

The conditions necessary for sustained oscillation can be summarized as follows: 1. There should be a positive feedback. 2. The loop gain of the circuit must be equal to or g

Description of capacitor, Description of Capacitor r A capacitor has cap...

Description of Capacitor r A capacitor has capacitance of one Farad when current charging of one Ampere flows in one second. This process causing a transferring of one volt in p

Engineering Science, A rifle with a mass of 3,5 kg fires a bullei with a ma...

A rifle with a mass of 3,5 kg fires a bullei with a mass of 120 g with a muzzle velocity of 420 mls. Calculate the following: 1.4.''l The momentum before the rifle was fired ''1.4.

Embedded system, 10. List the three ways in which an RTOS handles ISRs in a...

10. List the three ways in which an RTOS handles ISRs in a multitasking environment

Corrosion, I want to know whether the circuits for both methods(linear pola...

I want to know whether the circuits for both methods(linear polarization resistance and electrochemical impedance spectroscopy) are same or not?

Explain radio and television broadcasting, Q. Explain Radio and Television ...

Q. Explain Radio and Television Broadcasting? Radio (AM and FM) and television broadcasting are the most familiar forms of communication via analog transmission systems. The re

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

Determine the equivalent winding resistance, Determine the equivalent windi...

Determine the equivalent winding resistance: A 50 kVA, 2200/110 V, 50 HZ' transformer contain an HV winding resistance of 0.15 Ω and a leakage reactance of 0.45 Ω. The LV wind

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