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

Define time-shifting precedes time-reversing and vice versa, Define Time-Sh...

Define Time-Shifting Precedes Time-Reversing and Vice Versa Signal x[n] is time-shifted by m samples (delay in time) giving x[n - m]. This signal is then reversed at n = 0 givi

Explain protected mode addressing, Explain protected mode addressing. ...

Explain protected mode addressing. This addressing permits access to data and programs located as the first 1M byte of memory, with in the first 1M byte of memory. Addressing

Describe binary number system, Q. Describe binary number system? The bi...

Q. Describe binary number system? The binary number system has a base of 2 with two distinct digits (bits), 1 and 0. A binary number is expressed as a string of 0s and 1s, and

Describe the functionalities and the purpose of an equalizer, Question: ...

Question: (a) For a CD quality sound, what is the bit depth used and give the amplitude's levels and the dynamic range of this sound quality (b) In audio technology, the dec

Alternater, if the prime mover input of an alternater connected directly t...

if the prime mover input of an alternater connected directly to an infinite bus in increased,then its?

Determine the current and the voltage in the load resistance, Q. Adiodewith...

Q. Adiodewith the i-v characteristic shown in Figure is used in series with a voltage source of 5 V (forward bias) and a load resistance of 1 k. (a) Determine the current and t

What do you mean by external data bus, What do you mean by external data bu...

What do you mean by external data bus? External Data Bus: A bus which connects a computer to the peripheral devices. The microprocessor-8088 has 16-bit registers, 20-bit add

The filter capacitor , It is needed to use a half-wave rectifier for a dc p...

It is needed to use a half-wave rectifier for a dc power supply that gives an average dc output voltage of 15 V and a maximum ±1V ripple is permitted. The rectifier feeds a load of

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