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
Discuss the modes of connection for polyphase transformers Discuss with aid of electrical grouping and wiring connection diagrams the different types of connections for polypha

Q. Explain by using a circuit diagram, a ‘Darlington Pair'. Mention its advantages? THE DARLINGTON PAIR : This is a very special way of direct coupling of two transistors. The


A 13.8 kV feed er circui t breaker has a 600:5 multira tio curr ent transform er with charact eristics as show n in Figure 5.11. Th e max - imum load on the feed er is 80 A pri mar

Q. Draw and explain an RC integrator, with equations RC Integrator is a low pass RC circuit in which the output is taken across capacitor. The low pass RC circuit gives conside

what ie the use of mutual inductance in a hartley oscillator

What are the 8086 interrupt types? Dedicated interrupts Type 0: Divide by zero interrupt Type 1: Single step interrupt Type 2:Non maskable interrupt Type 3: Breakpo

Q. Some element voltages and currents are given in the network con?guration of Figure. Determine the remaining voltages and currents. Also calculate the power delivered to each ele

Q. The energy stored in a 2-µF capacitor is given by w c (t) = 9e -2t µJ for t ≥ 0. Find the capacitor voltage and current at t = 1s.

Consider a three-phase induction motor with a normal torque-speed characteristic. Neglecting the effects of stator resistance and leakage reactance, discuss the approximate effect