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

Determine the electromagnetic force on the plunger, Q. Consider the electro...

Q. Consider the electromagnetic plunger shown in Figure. The λ-i relationship for the normal working range is experimentally found to be λ = Ki 2/3 /(x+t), where K is a constant. D

Determine the atomic weight of an atom, Atomic weight of an atom is (A...

Atomic weight of an atom is (A) Sum of the number of protons and neutrons. (B) Sum of the number of protons and electrons. (C) Sum of the number of electrons and n

Residential wiring and safety considerations, Q. Residential wiring and saf...

Q. Residential wiring and safety considerations? Residential electric power service commonly consists of a three-wire ac system supplied by the local power company. A distribut

Cro, oscilloscope probes specification & performance

oscilloscope probes specification & performance

Any number system to decimal conversion , Any number System  to Decimal Co...

Any number System  to Decimal Conversion To convert a number in any number system to its  equivalent  decimal number, simply multiple each  digit of the number  with its  posi

Construct a truth table and get the minimum sop expression, Q. For the logi...

Q. For the logic circuit of Figure, construct a truth table and obtain the minimum SOP expression.

Determine the parameters of the equivalent circuit, The no-load and blocked...

The no-load and blocked-rotor tests on a three phase, wye-connected induction motor yield the following results: • No-load test: line-to-line voltage 400 V, input power 1770 W,

High pressure gas hazards, High Pressure Gas Hazards When we consider t...

High Pressure Gas Hazards When we consider the dangers of compressed gas in the lab, there are three main sources of danger as follows: 1) Sudden release of high pressure ga

Define the signals in time domain, Define the Signals in Time Domain? T...

Define the Signals in Time Domain? The time domain is the type of visualization that most people are familiar with. This method shows variations of a signal with time. The most

Discuss the low- and high-frequency designs, Consider a CS JFET amplifier w...

Consider a CS JFET amplifier with the following parameters : R 1 = 350 k; R 2 = 100 k, R SS = 1200 , R D = 900 , R L = 1000 , R S = 2000 , ro = 15 k,gm = 6 × 10 -3 S,

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