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

Partial indicators method, Partial Indicators Method The partial indic...

Partial Indicators Method The partial indicators technique consists of calculating various measures of the financial, operating, commercial, and quality of a business's perfor

Transformer, how much transformer oil is used in transformers

how much transformer oil is used in transformers

Thunderstrom detector, Ask question #how to construct thunderstrom detector...

Ask question #how to construct thunderstrom detector with circuit breaker.

Static or electronic energy meters, Static or Electronic Energy Meters ...

Static or Electronic Energy Meters Electronic energy meters are replacing traditional electromechanical meters in several residential, commercial and industrial applications s

Explain thevenin and norton equivalent circuits, Q. Explain Thevenin and no...

Q. Explain Thevenin and norton equivalent circuits? For a linear portion of a circuit consisting of ideal sources and linear resistors, the volt-ampere (v-i) relationship at an

Where does cpu enhanced mode originate from, Intel's 80386 was the first 32...

Intel's 80386 was the first 32-bit processor, and as the company had to backward-support the 8086. All the modern Intel-based processors run in the improved mode, capable of switch

Calculate the reflection of wedge, The corners of wedge-shaped block are A(...

The corners of wedge-shaped block are A(0,0,2), B(0,0,3), C(0,2,3), D(0,2,2), E(-1,2,2) and F(-1,2,3) and the reflection plane goes the Y-axis at 450 between (-X) & (Z) axis. Calcu

Financing the power sector projects, Financing the power sector projects: ...

Financing the power sector projects:   Massive investment is required for the targeted expansion of the sector. It has been estimated at Rs. 9 lakh crores in the further 10 yea

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