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 current through each resistor, For the circuit in figure, find the...

For the circuit in figure, find the current through each resistor.

Switching characteristics during turn off, Switching Characteristics During...

Switching Characteristics During Turn off The techniques  used for turning off a thyristor is known  as  commutation techniques. A  thyristor can be can be  turn off by reducin

Current through each resistor for the networking, Find the current through ...

Find the current through each resistor for the networking below using Mesh Analysis and Nodal Analysis.

What is maximum memory size that can be addressed by 8086, What is the maxi...

What is the maximum memory size that can be addressed by 8086? In 8086, an memory location is addressed by 20 bit address and the address bus is 20 bit address and the address

Electronics, Figure 1(a) shows a simple one-stage MOSFET amplifier. The inp...

Figure 1(a) shows a simple one-stage MOSFET amplifier. The input-output relationship is graphed in Figure 1(b), where the solid curve indicates operation in the saturated region an

find the thevenin and norton equivalent circuits, The output port of the o...

The output port of the one-port is defined by terminals A and B. Given: R 1 = 10 k_, R 2 = 20 k_, R 3 = 10 k_, and R 4 = 10 k_ V 1 = 20 V and I1 = 0.8 mA a) Find the T

Calculate the monthly electric bill, Calculate the monthly electric bill fo...

Calculate the monthly electric bill for TESTU.  Metering is as follows: B 00,000 kWHr C 00,000   kVARHr D 0,000        kW  peak demand Facilities Charge = $500

Electromagnetism, explain how can you find hysteresis loss from hysteresis ...

explain how can you find hysteresis loss from hysteresis loop

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

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