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

Explain the meaning of amplitude modulation, a. Explain the meaning of ampl...

a. Explain the meaning of amplitude modulation? Show that the AM output having two sidebands and the carrier frequency. b. Illustrate that the equivalent parallel impedance of a

Calculate the time to get the voltage across the capacitor, 1. The circuit...

1. The circuit below will be most efficiently analyzed by obtaining the Thevenin equivalent circuit for the circuit to the left of the points (a-b) on the schematic. The capacitor

Strain gauge bridge circuit, Explain kinds of strain gauge bridge circuits ...

Explain kinds of strain gauge bridge circuits and resistance strain gauges.

Immediate addressing , Immediate  Addressing In this  addressing mode...

Immediate  Addressing In this  addressing mode that 8/16  bit data  is specified  in the  instruction itself  as its  one of the  operands. Normally the instructions  using  a

Find the inductor current and voltage, Q. The energy stored in a 2-µH induc...

Q. The energy stored in a 2-µH inductor is given by w L (t) = 9e -2t µJ for t ≥ 0. Find the inductor current and voltage at t = 1 s.

Wien Bridge Oscillator, i need some explanation on Wien Bridge Oscillator ...

i need some explanation on Wien Bridge Oscillator with some example ?

Give examples of natural insulating materials, Give four examples of natura...

Give four examples of natural insulating materials. Illustrations of the natural insulating materials are rubber, cotton, wood and mica.

Reporting requirements for distribution licensees, Reporting Requirements f...

Reporting Requirements for Distribution Licensees Distribution licensees are needs to provide operational reports, commercial reports, financial reports, energy audit reports

What is cd-rom, Compact Disc - Read Only Memory. A CD-ROM is any compact di...

Compact Disc - Read Only Memory. A CD-ROM is any compact disc which having computer data. These discs can store enormous amounts of data (up to 640 megabytes). If there is a large

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