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

What is idss, Q. What is Idss. What are the conditions for its maximum valu...

Q. What is Idss. What are the conditions for its maximum value? The term 'Idss' refers to saturation condition of the Drain current. From the above graph it's clear that as the

Flexible manufacturing systems, (a) What are the elements of Flexible Manuf...

(a) What are the elements of Flexible Manufacturing Systems? (b) What are the basic types of workstations typically found in an FMS. Describe them briefly?

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

Diffusion capacitance, Diffusion Capacitance Diffusion capacitance is ...

Diffusion Capacitance Diffusion capacitance is the capacitance because of transport of charge carriers among the two terminals of a device, for instance, the diffusion of carr

Which are the different fet amplifiers, Q. Which are the different FET ampl...

Q. Which are the different FET amplifiers? A FET can be used as a small-signal amplifier by connecting one of its lead to signal ground. The other two leads then serve as the i

Cmos processes, CMOS processes: The low-performance "lateral" bipolar ...

CMOS processes: The low-performance "lateral" bipolar transistors occasionally employed in CMOS processes are sometimes designed symmetrically, i.e., with no distinction betwe

Determine power reflection coefficient at the input port, Determine power r...

Determine power reflection coefficient at the input port: For the MESFET equivalent circuit shown below, find S 11 and S 22 . Note that resistances associated with the voltag

Load balancing and load management, Load Balancing and Load Management ...

Load Balancing and Load Management It has been observed in which the load on all three phases of a distribution line and between the feeders is not balanced. This output in in

Determine the rectified load voltage, Consider the circuit of Figure (a) wi...

Consider the circuit of Figure (a) with v S (t) = 10 cos ωt. Use the piecewise-linear model of the diode with a threshold voltage of 0.6 V and a forward resistance of 0.5  to dete

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