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

Several forms of interference, Q. Several forms of interference? Interf...

Q. Several forms of interference? Interference may take several forms: ac hum, higher frequency pulses and "whistles," or erratic waveforms commonly known as static. Interferin

Pn diode, PN Diode The current-voltage characteristics are of major ...

PN Diode The current-voltage characteristics are of major concern in the learning of semiconductor devices with light entering like a third variable in optoelectronics devic

Dissemination of Learning - KPI, Dissemination of Learning - KPI Manag...

Dissemination of Learning - KPI Management has initiated a program, consequently invested a considerable amount of resources and learnt a lesson too. This learning now needs t

Wye-delta transformation., what is the literature review about wye delta tr...

what is the literature review about wye delta transformation?? for 3 paragraphs atleast*

Stator current control methods - motor control , Stator  Current Control ...

Stator  Current Control Methods The torque  and speed  of an induction motor  can be  controlled  by the  stator  current  the motor  behaviour  is different from that with VS

Explain the transfer characteristics, Q. Explain the transfer characteristi...

Q. Explain the transfer characteristics in a few words ? The transfer characteristics are a plot of an output (or a drain) current versus an input controlling quantity. There i

Find the antenna temperature, Q. If an antenna has an available noise power...

Q. If an antenna has an available noise power of 1.6 × 10 -15 W in a 1-MHz bandwidth, find the antenna temperature.

Define combinations of logic gates, Define Combinations of logic gates? ...

Define Combinations of logic gates? The Logic gates be able to combined to produce more complex functions. They can as well be combined to substitute one kind of gate for anoth

What do you mean by sensors or transducers, Q. What do you mean by Sensors ...

Q. What do you mean by Sensors or Transducers? In almost all engineering applications there arises a need tomeasure some physical quantities, such as positions, displacements,

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