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

Bi directional buffer 74ls245 , Bi Directional Buffer 74LS245 This types...

Bi Directional Buffer 74LS245 This types  of bi directional  buffer is required for data  bus as it has  to function as bi directional bus. The logic  diagram  of such  buffer i

Which metal has material with lowest resistivity, The material with lowest ...

The material with lowest resistivity is (A) Constantan.         (B) Silver. (C) manganin.            (D) nichrome. Ans: The material with lowest resist

Simplified operation on transistor, Simplified operation: Figu...

Simplified operation: Figure: Simple circuit to show the labels of a bipolar transistor. The essential value of a transistor comes from its capability to make use

Transformers, A 440v 4-pole dc generator takes an armature current of 50A w...

A 440v 4-pole dc generator takes an armature current of 50A when rotating at 626 rpm. the armature circuit resistance is 0.25 ohms. determine the generated emf?

Role of a bus arbiter in a multiprocessor configuration, Discuss the role o...

Discuss the role of a bus arbiter in a multiprocessor configuration. Bus arbiter: It functions to resolve priority among bus masters and permits only one device at a time to

Dc generater, define all the symbols with their unit

define all the symbols with their unit

Design a pulse generator, To design a VI that can also be used as a Sub VI ...

To design a VI that can also be used as a Sub VI in another VI. The title of the VI will be Pulse Generator. The output from the VI will be of the type Analogue Waveform and

Plc - programmable logical controller , PLC ( Programmable Logical  Contr...

PLC ( Programmable Logical  Controller ) PLC  stand for programmable logical  controller.  PLC   is an  industrial computer  used to monitor inputs and depending upon  their  m

Followings are the disadvantages of plc - stepper motor , Followings are th...

Followings are the Disadvantages of PLC a.Too much  work  required in  connecting wires. b.Difficulty with changes or replacements. c.Difficulty in finding  errors  requi

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