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

Digital demodulator processes, Q. Digital demodulator processes? The fu...

Q. Digital demodulator processes? The functions of the receiver in Figure are the inverse of those in the transmitter. At the receiving end of a digital communication system, t

Calculate power delivered to the network, Calculate power delivered to the ...

Calculate power delivered to the network: 1. A wave is traveling from left to right, emerging from Z g =50 with a peak amplitude of V p =5V. The 1-port network [S] has in=0.5-

Types of power diode , Types of Power Diode According  to their  rever...

Types of Power Diode According  to their  reverse recovery characteristics of power diodes it can be  classified as follows: a.       General purpose  diodes b.      Fas

Forward and reverse-active in bipolar junction transistor, Forward and Reve...

Forward and Reverse-active in Bipolar Junction Transistor: Forward-active (or simply, active): The base-collector junction is reverse biased and base-emitter junction is

Determine the magnitude of the current, Determine the magnitude of the curr...

Determine the magnitude of the current: For the circuit of Figure below determine the magnitude of the voltage "drops" across each resistor R1 - R7. Determine the magnitude

Survey methods and analysis - power supply, Survey Methods and Analysis - P...

Survey Methods and Analysis - Power Supply There are two major methods of gathering information from customers: qualitative and quantitative.  Quantitative Rese

Power and power distribution, design a single phase circuit from a supply p...

design a single phase circuit from a supply point to a load

Explain about floating point numbers, Q. Explain about Floating Point Numbe...

Q. Explain about Floating Point Numbers? The IEEE Standard 754 floating point is the most common representation today for real numbers on computers. There are numerous ways

Explain commercial adcs and dacs, Explain Commercial ADCs and DACs? Ana...

Explain Commercial ADCs and DACs? Analog interface chips (AICs), like those in the Texas Instruments TLC32040 series, consist of all type of the analog components that explaine

Dielectric heating - stepper motor , Dielectric Heating Dielectric  l...

Dielectric Heating Dielectric  losses  occur in  insulating materials. These are same  as hysteresis losses  in magnetic materials. When  an alternating  electric  field  is a

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