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

Single phase full wave controlled rectifier , Single Phase Full Wave Contro...

Single Phase Full Wave Controlled rectifier The single  phase  half  wave controlled  rectifier  produce only one pulse  of load  current  during  one cycle  of supply voltage

Sr flip flop - introduction to microprocessors , SR Flip Flop The SR  f...

SR Flip Flop The SR  flip  flop is an arrangement  of logic gates that maintain astable output even after  the  input  are turned off.  It has  two  inputs namely  SET input (S

What is the advantage of using jfet as an amplifier, Q. What is the advanta...

Q. What is the advantage of using JFET as an amplifier? As an amplifier of small time-varying signals, the JFET has a number of valuable assets. First of all it has a very high

Transformers, Three transformers are provided with the following rating val...

Three transformers are provided with the following rating values: 1) 2400/240 V, 55kVA, Req1 = (0.1 + 0.0Y) Ohm and Xeq1 = (0.15 + 0.XX) Ohm. 2) 240/120 V, 25kVA, Req1 = (0.1

What is meant by thermal runaway, Q. What is meant by Thermal Runaway? Expl...

Q. What is meant by Thermal Runaway? Explain with reference to a transistor.How is it avoided in circuits? The collector current of a transistor increases with increasing tempe

How to convert decimal to binary number, Q. How to convert Decimal to Binar...

Q. How to convert Decimal to Binary number? To convert the decimal to binary is slightly more difficult. There are two procedures (Methods) that may be used to convert from dec

Rrc rotate accumulator right instruction , RRC Rotate  Accumulator  Right...

RRC Rotate  Accumulator  Right Instruction This instruction also  rotates the contents of the  accumulator  toward right  by one bit. The  D 7   bit moves  to D 5   position a

Explain in detail the operation of 8255 in mode 1, Explain in detail the op...

Explain in detail the operation of 8255 in mode1 taking suitable example. In mode1, Ports A and B are programmed as input or output ports and Port C is used for handshaking.

Demodulation of ssb signals, Demodulation of SSB signals also requires the ...

Demodulation of SSB signals also requires the use of a phase-coherent reference. Figure shows the general configuration to demodulate the SSBsignal.Asmall carrier component, which

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