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

Find the inductor current and voltage, Q. The energy stored in a 2-µH induc...

Q. The energy stored in a 2-µH inductor is given by wL(t) = 9e-2t µJ for t ≥ 0. Find the inductor current and voltage at t = 1 s.

Example of clamper circuits, Example of clamper circuits: Example of c...

Example of clamper circuits: Example of clamper circuits are as follow Voltage multiplier circuit: voltage circuit is employed to maintain a relatively low transformer pe

Current through each resistor for the networking, Find the current through ...

Find the current through each resistor for the networking below using Mesh Analysis and Nodal Analysis.

Explain the significance of the coupling capacitor, Q. Explain the signific...

Q. Explain the significance of the Coupling capacitor and the RE - CE circuit. The function of the coupling capacitor is to isolate the amplifier input circuit from the source.

Determine the service and backwash rates, Determine the Service and Backwas...

Determine the Service and Backwash Rates The system on site is a pressure sand filter, with a service curve. The filter is backwashed using the feed pump, at a higher flow rat

Draw circuit diagrams and show polarity markings, Q. Two single-phase trans...

Q. Two single-phase transformers, each rated 2400: 120-V, are to be interconnected for (a) 4800:240- V operation, and (b) 2400:120-V operation. Draw circuit diagrams and show polar

Switching diode, how can I use switching diodes to achieve SPDT "relay" fun...

how can I use switching diodes to achieve SPDT "relay" function? 2 inputs 12vdc..for BI-Color LED.

Factors which affect the inductance of an inductor, Factors which affect th...

Factors which affect the inductance of an inductor include:  i)  The number of turns of wire (N) - more turns the higher the inductance ii)  The cross-sectional area of the

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

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