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

Torque-speed characteristics of 3-phase induction motors, Torque-Speed Char...

Torque-Speed Characteristics of 3-Phase Induction Motors Because the torque-slip characteristic is one of themost important aspects of the inductionmotor, we will now develop a

Find the reverse saturation current of the bej, Q. A silicon BJT has an emi...

Q. A silicon BJT has an emitter current of 5m Aat 300 K when the BEJ is forward-biased by vBE = 0.7 V. Find the reverse saturation current of the BEJ. Neglecting ICBO, calculate iC

Verniercallipars, what is a verniercallipar?what is its uses in labs?why it...

what is a verniercallipar?what is its uses in labs?why it is using o meassure he diameer and volume of cylendars?what is its least count?what is zero error?

Explain protected mode interrupt, Explain protected mode interrupt. In...

Explain protected mode interrupt. In this mode, interrupts have exactly similar assignments as in real mode, but the interrupt vector table is not same. In place of interrupt

Analysis of financial plans, Complete the financial reporting for each peri...

Complete the financial reporting for each period and develop recommendations using the templates provided. Procedure 1.  Read the case study. 2.  Complete the financial re

Which steps are used for the procurement, Q. Which Steps are used for the p...

Q. Which Steps are used for the procurement? a. Initially, an introductory letter may be sent addressed to The Head, NRSA Data Centre, National Remote Sensing Agency, Balanagar

Compute the current loss in the lines, Q. Consider a 240-V supply feeding a...

Q. Consider a 240-V supply feeding a resistive load of 10 kW through wires having a total resistance of R = 0.02 . For the same load, let a 120-V supply be used with a total wire

Determine the input resistance between terminals of circuit, Q. Consider Fi...

Q. Consider Figure of the weighted differencing amplifier. Let R 3 = R 1 and R 4 = R 2 . Determine the input resistance between terminals a and b of the circuit.

Transient, The winding of an electromagnet has an inductance of 3H and a re...

The winding of an electromagnet has an inductance of 3H and a resistance of 15?. When it is connected to a 120 V d.c. supply, Determine:

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