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

Direct 3-bit binary decoding, Q. A table for the direct 3-bit binary decodi...

Q. A table for the direct 3-bit binary decoding is given. Show a block diagram for a 3-to-8 decoder and suggest a method for its implementation.

Wave anlysers, Operation of heterodyne wave analyzer with block diagram

Operation of heterodyne wave analyzer with block diagram

Complete instruction set of 8085 microprocessor , Complete Instruction Set ...

Complete Instruction Set of 8085 Microprocessor There are  total 256 instructions in  8085 microprocessor. These instructions are classified  into  seven categories  according

Energy stored in the capacitor when it is fully charged, An 12µF capacitor ...

An 12µF capacitor is connected in series to a 0.5M? resistor across the dc voltage supply of 240V. verify: (a)  Time constant (b)  Initial charging current (c)  Time fo

Change in an organisation, Change in an organisation: Change might ...

Change in an organisation: Change might be perceived in two ways: Change as continuous and intrinsic to an organisation and change as discontinuous & extrinsic. A force

Flashlight, Why are some flashlights brighter than others? Why is it import...

Why are some flashlights brighter than others? Why is it important that all of the batteries point in the same direction? What is the difference between old batteries and new? What

What are the basic modes of operation of 8255, What are the basic modes of ...

What are the basic modes of operation of 8255? There are two basic modes of operation of 8255, viz. 1. I/O mode. 3. BSR mode. In I/O mode, the 8255 ports work as progr

Explain the discovery of neutron. mention its properties, Explain the disco...

Explain the discovery of neutron. Mention its properties. Discovery of Neutron: The existence of neutron was first predicted by Rutherford in the year 1920. But it was discov

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