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

Air gaps, What is the main thing to look for in calculations of air gaps?

What is the main thing to look for in calculations of air gaps?

Find the quantum levels, A uniform quantizer is said to have 16 levels, and...

A uniform quantizer is said to have 16 levels, and hence is called a midriser. The saturation levels are to correspond to extreme values of the message of 1 V ≤  f(t) ≤ 17 V. Find

Transistor, what is bias compensation

what is bias compensation

Explain graphics adapters, Explain graphics adapters. Video card conve...

Explain graphics adapters. Video card converts digital output by the computer in an analog video signal and sends the signal by a cable to the monitor also termed as a graphic

Explain rotameter and hot wire anemometer, Write down about the following t...

Write down about the following terms: (i) Pirani Gauge (ii) Rotameter (iii) Hot wire Anemometer (iv) Drag Force Flow Meter

VLSI, In my designed analog circuit,efficiency is measured at steady state ...

In my designed analog circuit,efficiency is measured at steady state or transient state of my output node? Efficiency of MOSFET circuit given in datasheets of any product is measur

What is meant by polling, What is meant by polling? Polling or device p...

What is meant by polling? Polling or device polling is a process which recognizes the device that has interrupted the microprocessor.

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