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

What is the output modes used in 8279, What is the output modes used in 827...

What is the output modes used in 8279? 8279 gives two output modes for selecting the display options. 1.Display Scan In this mode, 8279 gives 8 or 16 character-multiple

moving average model, Altavox is a manufacturer and distributor of a lot o...

Altavox is a manufacturer and distributor of a lot of electronic instruments and devices, including digital/analog multimeters, function generators, oscilloscopes, frequency counte

Determine the current flow, Q. A charge q(t) = 50 + 1.0t C flows into an el...

Q. A charge q(t) = 50 + 1.0t C flows into an electric component. Find the current flow.

Di disable interrupts instruction, DI Disable  Interrupts Instruction ...

DI Disable  Interrupts Instruction The interrupt enable  flip flop is reset and all the  interrupts of 8085 microprocessors  except  TRAP  are disabled . the  instruction  form

Explain working of ring topology, Q. Explain working of Ring Topology? ...

Q. Explain working of Ring Topology? Ring Topology: In ring topology, all user nodes are connected with physical path acting as links of a chain and last user node is co

Four cells in series, A battery having of 12 cells are divided in three gro...

A battery having of 12 cells are divided in three group which each group having of four cells in series. The three groups are joined in parallel. The emf of every cell is 1.5V and

Centrifugal compressor, hi I need information of Compressor Shaft Impelle...

hi I need information of Compressor Shaft Impellers Coupling Hub Thrust Collars Balance Drum for centrifugal compressor with pecture

Illustrate the basic concept of machine cell design, a) Write short notes o...

a) Write short notes on part feeding devices and transfer mechanism. b) Explain with example automation for machining operation with relevant diagrams. c) discuss different p

Determine the value of rl, Q For the circuit of Figure: (a) Find an...

Q For the circuit of Figure: (a) Find an expression for the power absorbed by the load as a function of R . (b) Plot the power dissipated by the load as a function of th

Find the modulated signal in each case, Let the message signal m(t) = α cos...

Let the message signal m(t) = α cos (2πf m t) be used to either frequency-modulate or phase- modulate the carrier Ac cos(2πf c t). Find the modulated signal in each case.

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