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

Measures for improving joints and connection, Measures for Improving Joints...

Measures for Improving Joints and Connection 1. Spacing of poles: The spacing between poles (for overhead lines) is also an important requirement. Long spans will result in

Properties and application of permanent magnetic materials, Give the proper...

Give the properties and application of permanent magnetic materials. Permanent magnetic materials: Properties: Permanent magnetic materials have a huge area of hyster

Expression for the real power transfer capacity, Q. Consider a lossless tra...

Q. Consider a lossless transmission line with only a series reactance X. (a) Find an expression for the real power transfer capacity of the transmission system. (b) What is P

Find the residual output offset voltage, Q. In order to minimize output vol...

Q. In order to minimize output voltage offsets in practical op-amp circuits, one provides a dc path from each input terminal to ground, makes each input terminal see the same exter

Diode transistor logic gate, A circuit realization of a NAND gate will now ...

A circuit realization of a NAND gate will now be developed. By connecting NAND gates together in various ways, one can synthesize other gates and flip-flops. Thus in principle, a s

Not gate- introduction microprocessors , Normal 0 false fals...

Normal 0 false false false EN-IN X-NONE X-NONE

Name the materials used in case of bimetals, Name the materials used in cas...

Name the materials used in case of Bimetals and give reasons. Bimetals : Alloy of nickel and iron along with low value of coefficient of thermal expansion are utilized as

DLD, draw alogic diagramto implement F=ABCDE using only 3 inputAND gates

draw alogic diagramto implement F=ABCDE using only 3 inputAND gates

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

Requirement specification for the monitor and alarm system, Prepare a User ...

Prepare a User Requirement Specification for the monitor and alarm system. User Requirements Specification should be written in a clear and unambiguous manner to state: • The

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