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

Factors affecting choice of observation, Factors Affecting Choice of Obser...

Factors Affecting Choice of Observation: Observers are influenced by a number of factors in the process of observation. Black and champion have identified three such factors.

wind turbine, pls how can i stat up building wind turbin

pls how can i stat up building wind turbine

Determine the fall-off rate, Q. A low-pass filter circuit is shown in Figur...

Q. A low-pass filter circuit is shown in Figure. Using a PSpice program and PROBE, obtain the Bode magnitude plot for the transfer function ¯H(f) = ¯V out / ¯V in for the frequ

Determine the motor current and speed, A dc series motor is connected to a ...

A dc series motor is connected to a load. The torque varies as the square of the speed.With the diverter-circuit open, the motor takes 20 A and runs at 500 r/min. Determine the mot

Determine the input current and input voltage, Q. A 100-kVA, 2300:230-V, 60...

Q. A 100-kVA, 2300:230-V, 60-Hz, single-phase transformer has the following parameters: R 1 = 0.30 , R 2 = 0.003 , RC 1 = 4.5k, X 1 = 0.65 , X 2 = 0.0065 , and Xm 1 = 1.

Square wave generator ( 10 MHz to 20MHz), I need a simple design of above ...

I need a simple design of above mentioned , this oscillator will be used in a wireless power transmission

Develop and execute a pspice program, Develop and execute a PSpice program ...

Develop and execute a PSpice program to solve for the current I 2 in Figure.

What is signal multiplexing, Q. What is Signal Multiplexing? Frequency-...

Q. What is Signal Multiplexing? Frequency-division multiplexing (FDM) and time-division multiplexing (TDM) systems. When data from many sources in time are interlaced, the inte

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