Cpi compare immediate instruction , Electrical Engineering

Assignment Help:

CPI Compare Immediate Instruction

The 8 bit  data  specified  in the  instruction is  compared with the  contents of the accumulator. The comparison  is done by  subtracting  the 8 bit data form  the contents of the accumulator the  contents of the accumulator d not  change. The flags are modified similar  to subtraction. The instruction format is

CPI 8 bit data                    (A- 8bit data )

Flags : All  flags are modified as they would  change  in subtract operation but the  content of  both  the operand do no to change.

Although  all flags  are modified  but the  conclusion can be made only by CY and Z flag as shown  below .

IF A> 8 bit data CY and Z Flags are reset.

IF A =8 bit  data Z flag  is set and CY flag is reset.

IF A < 8 bit  CY is set and Z  flag is  reset.


Related Discussions:- Cpi compare immediate instruction

generator, diagram of static generator

diagram of static generators

Obtain the expression for the steady-state coil current, Q. Let the coil of...

Q. Let the coil of the solenoid of have a resistance R and be excited by a voltage v = Vm sin ωt. Consider a plunger displacement of g = g 0 . (a) Obtain the expression for the

Xthl exchange top of the stack with hl instruction , XTHL Exchange top of t...

XTHL Exchange top of the stack with HL Instruction The contents  of top  two location of the  stack are exchanged with the  contents of HL register pair. The contents  of reg

How do you find the insulation resistance of transformer, Q. How do you cal...

Q. How do you calculate the insulation resistance of transformer and what is the minimum value? Ans. The insulation resistance of the transformer will be calculated by using

Representation of magnetic fields, The direction of the magnetic field line...

The direction of the magnetic field lines is given by 'Maxwell's Right-Hand corkscrew rule'  The thumb of the right hand indicates the direction of current flow in the wire and

Explain steady-state stability, Q. Explain Steady-State Stability? The ...

Q. Explain Steady-State Stability? The property of a power system that ensures that it will remain in equilibrium under both normal and abnormal conditions is known as power-sy

Name the various magnetically hard alloys, Name the various magnetically ha...

Name the various magnetically hard alloys. Several of the magnetically hard materials are rare earth carbon steel, cobalt, tungsten steel, alnico, hard ferrites and cobalt stee

Fast recovery diodes - types of power diodes , Fast  Recovery diodes ...

Fast  Recovery diodes The fast  recovery  diodes low recovery times. These diodes  are manufactured by diffusion. They are used in converter circuits where  the speed  of reco

Phasor diagram, The aim of this question is to help you become familiar wit...

The aim of this question is to help you become familiar with phasor diagrams, and in particular to see how the diagram changes when one of the system parameters (in this case resis

Find the per-unit voltage regulation, Q. A single-phase, 3-kVA, 220:110-V, ...

Q. A single-phase, 3-kVA, 220:110-V, 60-Hz transformer has a high-voltage winding resistance of 0.3 , a low-voltage winding resistance of 0.06 , a leakage reactance of 0.8  on i

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