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

Find the initial current when switch is closed - capacitor, 1. In the circ...

1. In the circuit shown below, the capacitor initially has a voltage across it 4 Volts (at t = 0). a. Write down the expression for V C (t) when the switch is closed. b. Wr

Fourier transform - filtering, Fourier transform  (filtering) (i) Perf...

Fourier transform  (filtering) (i) Perform low pass filtering in the frequency domain. Write and m-file lowfft.m which does this operation. lowfft.m function lowfft im

Pn diode, PN Diode The current-voltage characteristics are of major ...

PN Diode The current-voltage characteristics are of major concern in the learning of semiconductor devices with light entering like a third variable in optoelectronics devic

Relative permeability, The force between two wires 1 metre apart and each c...

The force between two wires 1 metre apart and each carrying 1 amp is 2 x 10 -7 Newtons when in a vacuum (or in practice, air).However, it is found experimentally that the force is

Explain the delay model, Explain the delay model based on logical effort of...

Explain the delay model based on logical effort often used in estimating delays in logic cells. Hence use the model to predict the delay of a 4-input NOR logic cell with a 3 times

Electricity and safety, explain appropriate first aid procedure to be follo...

explain appropriate first aid procedure to be followed in case of electric shock

Chemistry, Write short note on hardness of water and its units

Write short note on hardness of water and its units

Field effect transistor, Field effect transistor: Primarily difference...

Field effect transistor: Primarily difference between bit and jet is that bit transistor is a current controlled device while jet is a voltage controlled device.  Is a direct

Diod, explain the application of the Si,zener,and LED diodes

explain the application of the Si,zener,and LED diodes

Coupling, advantages and disadvantages of direct and r c coupling

advantages and disadvantages of direct and r c coupling

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