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

Find the line current and voltage across the load, Q. (a) A balanced wye-co...

Q. (a) A balanced wye-connected load with per-phase impedance of 20 + j10 is connected to a balanced 415-V, three-phase supply through three conductors, each of which has a series

Norton equivalent circuit, Cointruct and simulate using multisim software a...

Cointruct and simulate using multisim software a series voltage regulator to supply 1A to a load at a constant voltage of 9V. The supply voltage to regulator is 15V±10%. The minimu

Show the dot convention, Q. For the coupled coils shown in Figure, a dot ha...

Q. For the coupled coils shown in Figure, a dot has been arbitrarily assigned to a terminal as indicated. Following the dot convention presented in the text, place the other dot in

Closed loop block diagram into Electrical Circuit, I have a closed loop or ...

I have a closed loop or feedback system and i want to convert it into electrical circuit. please give me example about this

Mode 2 - boost converter, Mode 2 In this  mode transistor  gets turne...

Mode 2 In this  mode transistor  gets turned off by  the negative output  of PWM  current  flows  through  inductance L diode D then  divide into two  parts one flows through

Two stage rc coupled amplifier, Q. Two Stage Rc Coupled Amplifier? ...

Q. Two Stage Rc Coupled Amplifier? It is the most popular type of a multistage amplifier because it is cheap and provides excellent audio fidelity over a wide range of fre

Customer service management, Customer Service Management CRM involves ...

Customer Service Management CRM involves several activities related to planning - both long terms and short terms, measurement and control, improvement and innovation of all a

Explain the synchronous up-down counters, Explain the Synchronous Up-Down C...

Explain the Synchronous Up-Down Counters? The circuit of a 3-bit synchronous up-down counter and a table of its sequence are shown below.  Alike to an asynchronous up-down count

Switching characteristics, Switching Characteristics The switching  cha...

Switching Characteristics The switching  characteristic  of an IGBT  during  turn on and turn off time all  shown  in the sum of delay time  and rise time gives  the total  tur

Working of closed cycle and open cycle brayton cycle, Give the layout of a ...

Give the layout of a modern steam power plant and illustrate it briefly. With the help of schematic diagrams illustrate the construction and basic working of closed cycle and op

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