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 are the functions of bus interface unit in 8086, What are the function...

What are the functions of bus interface unit (BIU) in 8086? (a) Get instructions from memory. (b) Get data from memory and I/O ports. (c) Write data to memory and I/O por

Define asynchronous communication with serial communication, With respect t...

With respect to serial communication define the asynchronous communication. Asynchronous implies "no synchronization", and therefore does not require sending and receiving idl

What are loosely coupled systems, What are loosely coupled systems? In ...

What are loosely coupled systems? In loosely coupled systems every CPU may have its own bus control logic. The bus arbitration is handled by an external circuit, common to all

Distribution transformer connection, why the primary bushing of 7970/13.8 d...

why the primary bushing of 7970/13.8 distribution transformer blown up when connected wye on a 13.8 kv source?

Speed and torque control of polyphase induction motors, Speed and Torque Co...

Speed and Torque Control of Polyphase Induction Motors The induction motor is valuable in so many applications because it combines simplicity and ruggedness. Although a good nu

Define the operation of real mode interrupt, Define the operation of real m...

Define the operation of real mode interrupt. Operation of Real mode interrupt: While the microprocessor completes executing the current instruction, this determines whether a

Give a short description of soft ferrites, Give a short description of soft...

Give a short description of soft ferrites . Soft ferrites and their applications: all non- metallic compounds are consisting of ferric oxide and one or two bivalent metal oxid

Determine the maximum value of the voltage, Q. Three waveforms seen on an o...

Q. Three waveforms seen on an oscilloscope are shown in Figure. If the horizontal scale is set to 50 ms per division (500 ms for the entire screen width), and the vertical scale is

Show the block diagram for a 3-bit ripple counter, Q. (a) For a JKFFwith JK...

Q. (a) For a JKFFwith JK = 11, the output changes on every clock pulse. The change will be coincident with the clock pulse trailing edge and the flip-flop is said to toggle, when T

Determine efficiency on diffrent load cycle, Q. A 75-kVA transformer has an...

Q. A 75-kVA transformer has an iron loss of 1 kW and a full-load copper loss of 1 kW. If the transformer operates on the following load cycle, determine the all-day efficiency:

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