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

Discuss dos function call with one example, Discuss DOS function call with ...

Discuss DOS function call with one example. DOS function call: So as to use DOS function calls, always place the function number in register AH and load all other pertinent

Evaluate the transfer function, Since dc motors of various types are used e...

Since dc motors of various types are used extensively in control systems, it is essential for analytical purposes that we establish a mathematical model for the dc motor. Let us co

Performance mapping & implementation plan - power supply, Importance Perfor...

Importance Performance Mapping & Implementation Plan - Power Supply Another data presentation device in which several managers find appealing is the significance-performance m

Global positioning system, Global Positioning System: For power utilit...

Global Positioning System: For power utilities, the basic objective of using Global Positioning System (GPS) and GIS should be to: enhance the efficiency of transmissio

Explain working of inverting summing amplifier, Q. Explain working of Inver...

Q. Explain working of Inverting Summing Amplifier? The circuit of Figure is extended by adding other input points, as shown in Figure. Because of the virtual ground at terminal

DC generator, define all the symbols with their units of DC generater

define all the symbols with their units of DC generater

Usage of fixed bias, Usage: Because of the above inherent drawbacks, f...

Usage: Because of the above inherent drawbacks, fixed bias is seldom used in linear circuits (that is those circuits which use the transistor like a current source). Instead,

Use of a k map simplify the following boolean expressions, Q. With the use ...

Q. With the use of a K map, simplify the following Boolean expressions and draw the logic diagram.

Encoder - introduction to microprocessors , Encoder The encoder is a...

Encoder The encoder is a logic  circuit  which  provides  the binary code is  output  for each input each input signal. In  other words  we can  say that it performs  just  op

Determine the maximum value of the voltage induced in coil, Q. A 10-turn sq...

Q. A 10-turn square coil of side 200 mm is mounted on a cylinder 200 mm in diameter. If the cylinder rotates at 1800 r/min in a uniform 1.2-T field, determine the maximum value of

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