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

How do you modify the direction of rotation of a d.c. motor, Q. How do you ...

Q. How do you modify the direction of rotation of a D.C. motor? Ans: The direction of rotation of DC motor will be changed either by changing the field winding connections o

Which property of material allows it to drawn out in wires, Property of mat...

Property of material which allows it to be drawn out into wires is (A) Ductility.                                    (B) Solder ability. (C) Super conductivity.

What do mean by flow of electron, Flow of electrons - Electrons flow down a...

Flow of electrons - Electrons flow down a wire that is what current, is. Good conductors like copper and silver and aluminum have free electrons in their outer shells, and they jum

Find the efficiency of the transformer, Q. Athree-phase, 600-kVA, 2300:230-...

Q. Athree-phase, 600-kVA, 2300:230-V,Y-Ytrans- former bank has an iron loss of 4400 W and a full- load copper loss of 7600 W. Find the efficiency of the transformer for 70% full lo

Explain the architecture of 8085, Explain the Architecture of 8085. Ø  ...

Explain the Architecture of 8085. Ø  ALU Ø  Interrupt control Ø  Serial I/O control Ø  Timing and control unit Ø  Instruction Register & Decoding

Determine the transfer function c/r for the block diagram, Feedback amplifi...

Feedback amplifiers are of great importance in electronic circuits. The block diagram of a class of feedback amplifier is shown in Figure. Determine the transfer function C/R for t

Show the equivalent nor realizations of basic not, (a) Show the equivalent ...

(a) Show the equivalent NOR realizations of the basic NOT, OR, and AND gates. (b) Show the equivalent NAND realization of the basic NOT, AND, and OR gates.

The quantity of electricity transferred., If a current of 10A flows for fou...

If a current of 10A flows for four minutes, find the quantity of electricity transferred. Quantity of electricity, Q=It coulombs. I =10A and t = 4 × 60 = 240s.  Hence Q =

Draw the circuit of a two stage rc coupled amplifier, Q. Draw the circuit o...

Q. Draw the circuit of a two stage RC coupled amplifier?

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