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

Develop a block diagram of an asynchronous decade counter, Q. Counting to m...

Q. Counting to moduli other than 2 n is a frequent requirement, the most common being to count through the binary-coded decimal (BCD) 8421 sequence. All that is required is a four

Explain fet amplifiers, Explain FET amplifiers? Just like the BJT ampli...

Explain FET amplifiers? Just like the BJT amplifiers, FET amplifiers are constructed in common-source (CS, analogous to CE), common-drain (CD, analogous to CC), and common-gate

OCR, matlab code for handwritten digital

matlab code for handwritten digital

Energy gap, Energy Gap Differentiating feature between the metals, ...

Energy Gap Differentiating feature between the metals, insulators, and semiconductors. Ascertains the absorption or emission spectra, the leakage current, and the intrin

Direct 3-bit binary decoding, Q. A table for the direct 3-bit binary decodi...

Q. A table for the direct 3-bit binary decoding is given. Show a block diagram for a 3-to-8 decoder and suggest a method for its implementation.

Daa decimal adjust accumulator instruction , DAA Decimal Adjust Accumulator...

DAA Decimal Adjust Accumulator Instruction This  instruction adjusts the contents  of the accumulator  into BDC (Binary Coded Decimal )  form  after a BCD  addition. It should

Compute the transfer function from the input, In this project we will consi...

In this project we will consider the control of a synchronous generator supplying electricity to the grid. We will focus on the problem of frequency stability. The frequency at whi

A battery consists of five cells in series, A battery having of five cells ...

A battery having of five cells in series. Each cell is 2.5V and internal resistance is 0.05 Ω. A battery is linked to the load resistance of 15Ω. Verify: i.  Total e.m.f

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