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

Dc machines, compound generator drawback

compound generator drawback

Sub instruction - op code format , SUB Instruction Op code  format is...

SUB Instruction Op code  format is of SUB  instruction is Replace  the three bit code  of the register R from   to obtain the op code of the  required SUB  instruction . o

Working design with realistic models, A preliminary design with ideal resis...

A preliminary design with ideal resistors, inductors and capacitors, will get 25 marks. If the design does not meet the specifications then one mark will be deducted following the

Determine the electromagnetic force on the plunger, Q. Consider the electro...

Q. Consider the electromagnetic plunger shown in Figure. The λ-i relationship for the normal working range is experimentally found to be λ = Ki 2/3 /(x+t), where K is a constant. D

Explain about direct-current machines, Q. Explain about Direct-current mach...

Q. Explain about Direct-current machines? Generally speaking, conventional dc generators are becoming obsolete and increasingly often are being replaced by solid-state rectifie

Give an account on the operation of the oupled amplifier, Q. Give an accoun...

Q. Give an account on the operation of the R-C coupled amplifie r. When a.c. signal is applied to the base of the first transistor, it appears in the amplified form across its c

Explain the applications of emitter follower, Q. Explain the applications o...

Q. Explain the applications of emitter follower. Because of high input impedance and low output impedance an emitter follower is capable of transferring maximum power from the

Electric machinery fundamentals, Ask qu1. If the resistor Radj is adjusted ...

Ask qu1. If the resistor Radj is adjusted to 175O what is the rotational speed of the motor at no-load conditions? 2. Assuming no armature reaction, what is the speed of the motor

Energy bands, Energy Bands 1) Since isolated atoms are brought togethe...

Energy Bands 1) Since isolated atoms are brought together to make a solid, the electron wave functions begin to overlap. 2) Several interactions occur, and, at the proper i

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