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

Find the force between the wires, Q. A magnetic force exists between two ad...

Q. A magnetic force exists between two adjacent, parallel current-carryingwires. Let I1 and I2 be the currents carried by the wires, and r the separation between them.

Find the rated and maximum torques, A 4000-V, 5000-hp, 60-Hz, 12-pole synch...

A 4000-V, 5000-hp, 60-Hz, 12-pole synchronous motor, with a synchronous reactance of 4  per phase (based on cylindrical-rotor theory), is excited to produce unity power factor at

Show maximum common-mode input voltage, Q. Show Maximum Common-Mode Input V...

Q. Show Maximum Common-Mode Input Voltage of amplifier? This is the maximum voltage that the two inputs can be raised above ground potential before the op amp becomes nonlinear

Dc motor, You have been given a DC motor to characterize. What three measu...

You have been given a DC motor to characterize. What three measurements are required in order to develop the torque-speed curve and the acceleration curve for the unloaded motor?

State the functions of a fuse, State the functions of a fuse. Fuse is ...

State the functions of a fuse. Fuse is a protective device that made of a thin wire or strip. This strip or wire is placed with the circuit this has to protect, therefore the

What do you mean by double word, Q. What do you mean by Double Word? A ...

Q. What do you mean by Double Word? A double word is precisely what its name implies, two words. Thus, a double word quantity is 32 bits. Logically, this double word can be div

Show frequency response using pspice and probe, Q. Show Frequency response ...

Q. Show Frequency response using pspice and probe? PSpice is capable of performing transient circuit analysis, for which the request is given by the following statement: • T

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