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

Example of binary subtraction of negative number , Example of binary subtra...

Example of binary subtraction of Negative number Case 2.   Negative number is more than  the positive number ( i e, answer  is negative)  Example : Subtract 92 10 ( 101

Sketch the labelled frequency response, Question: (a) Consider the foll...

Question: (a) Consider the following RC admittance function: (i) If the function is to be realised using the Cauer II Form, find the values of the different components

Dc motor, what is the reason of low meagger result of dc motor

what is the reason of low meagger result of dc motor

How to calculate new current and terminal voltage?, Q. Series generator hav...

Q. Series generator having a combined armature and field resistance of 0.4? is running at 1000 r.p.m. and delivering 5.5kw at terminal voltage of 110 V. If the speed is raised to 1

Safe conduct in electricity and gas hazards, Safe Conduct : what if a tr...

Safe Conduct : what if a trailing flex became caught up in an apparatus trolley and was cut? Or someone splashed water onto a plug, or concentrated sulphuric acid onto a flex? F

Calculate the diameter of the core, A step index multi mode fibre along wit...

A step index multi mode fibre along with numerical aperture of 0.2 supports approximately 1000 modes at an 850µm wavelength. Calculate a) What is the diameter of the core? b)

For the nor and inverter realizations, Q. For the NOR and inverter realizat...

Q. For the NOR and inverter realizations shown in Figure, find the truth table, the type of gate realized, and the expression for the logic output, in each case.

What do you mean by amplifier block, Q. What do you mean by Amplifier block...

Q. What do you mean by Amplifier block? An amplifier can be modeled as a two-port device, that is, a box with two pairs of terminals designated as input and output, as shown in

Explain the 8259 microprocessor, Explain the 8259 microprocessor. 82...

Explain the 8259 microprocessor. 8259: The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. This can be expanded to 64 interrupt requests with us

For carry flag - return instructions , For Carry Flag  RC (Return of ...

For Carry Flag  RC (Return of Carry) and RNC ( Return on no Carry) Instruction RC returns from  the subroutine  to the calling  program if carry  flag is et (CY= 1). The

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