Cpi compare immediate instruction , Electrical Engineering

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.

Posted Date: 4/5/2013 12:54:12 AM | Location : United States







Related Discussions:- Cpi compare immediate instruction , Assignment Help, Ask Question on Cpi compare immediate instruction , Get Answer, Expert's Help, Cpi compare immediate instruction Discussions

Write discussion on Cpi compare immediate instruction
Your posts are moderated
Related Questions
Q Two charges of equalmagnitude 5µC but opposite sign are separated by a distance of 10 m. Find the net force experienced by a positive charge q = 2 µC that is placed midway betwee

The rotor of a wound-rotor induction motor is rewound with twice the number of its original turns,with a cross-sectional area of the conductor in each turn of one-half the original

1) Consider the magnetic circuit shown in the figure. Steady currents flow in the windings of N 1 and N 2 turns on the outside legs of the ferromagnetic core. The core has a

Q. Explain topology method used in LAN technology? Ans: LAN Topologies: Network topology is a physical schematic which demonstrates interconnection of the many users. Th

what is the digital logic circuit for binary divider?

Q. For the networks shown in Figure, determine the transfer function G(s) = V o (s)/V i (s).

Circuit Symbols for MOSFET A range of symbols are employed for the MOSFET. The basic design is usually a line for the channel along with the source and drain leaving it at rig

Discuss electrical properties of insulating materials. Electrical properties of an insulating material are As Follows: Insulation resistance - It is the property, through

Factors Affecting to High Technical Losses Large Scale Rural Electrification Large scale rural electrification programmed undertaken in the country resulted in long LT li

Responses to Exponential Excitations Let us consider Aest as a typical exponential excitation in which A is a constant and s is a complex- frequency variablewith a dimension of