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

Assigment, what is p-n junction and how its work

what is p-n junction and how its work

Basic macroeconomic policy trilemma for open economies, Q. Explain th...

Q. Explain the basic macroeconomic policy trilemma for open economies. Answer: Of three goals mainly countries share - independence in financial policy and stability in t

Sketch the resulting transfer curves, Q. Consider the MOSFET circuit with v...

Q. Consider the MOSFET circuit with variable voltage, with RD = 2k and VDD = 12 V. The static characteristics of the n-channel enhancement MOSFET are given in Figure. (a) Drawt

Common-base configuration, Common-base configuration:  The common-bas...

Common-base configuration:  The common-base that is abbreviated as CB transistor configuration, which is as well termed as the 'grounded base' configuration, is displayed in

Determine the flux density in lines, Question : (a) List the six basic ...

Question : (a) List the six basic quantities and units as used in the SI systems of units and give their respective symbols (b) A flux density in the CGS system is expressed

add instruction, ADD Instruction This  instruction use to add  content...

ADD Instruction This  instruction use to add  contents of any  register or memory  location with the  contents of accumulator. There are two  formats for ADD  instruction to ad

What is ohmmeter, What is ohmmeter An ohmmeter is an instrument for mea...

What is ohmmeter An ohmmeter is an instrument for measuring resistance

Show how emitter amplifier work as a buffer amplifier, Q. Due to what speci...

Q. Due to what special property does an emitter amplifier work as a buffer amplifier?  The circuit design of the emitter follower is such that it has a high input impedance and

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