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

Effects of an increase in real national income, Q. What will be the...

Q. What will be the effects of an increase in real national income on the interest rate? Answer: An enhance in real national income will increase the interest rate. If

Low pressure gas hazards, Low Pressure Gas Hazards : Safety screens and wi...

Low Pressure Gas Hazards : Safety screens and wire-mesh guards should be placed round evacuated glassware and safety goggles or a face shield must be worn against the possibility

#title.superposition theorem, .coments on the limitation of the superpositi...

.coments on the limitation of the superposition theorem

Define byte assembler directive, What do you understand by DB assembler...

What do you understand by DB assembler directive?   DB (Define Byte): The DB directive explains by a byte-type variable (that is a variable that occupies one byte of memo

Help , What''s hysteresis ?

What''s hysteresis ?

Simulink help, I want simulink model for carrier based pwm method

I want simulink model for carrier based pwm method

Starting methods for polyphase induction motors, Starting Methods for Polyp...

Starting Methods for Polyphase Induction Motors When high starting torques are required, a wound-rotor induction motor, with external resistances inserted in its rotor circuits

Cro, what is cro ?

what is cro ?

Determine self inductances of coils, Determine self inductances of coils: ...

Determine self inductances of coils: The number of turns in two coupled coils A and B are 600 and 1700 respectively. While a current of 6 A flows in coil B, the total flux in

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