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

Calculate the value of resistor, Calculate the value of resistor: 1.  ...

Calculate the value of resistor: 1.  What are the significant differences in the way ammeters and voltmeters are connected. If an ammeter reads 2.5 A for a period of 4 minutes

Explain hall effect with hall mobility and hall angle, Explain Hall effect....

Explain Hall effect. Consider a slab of material wherein there is a current density J resulting by an applied electric field Ex in the x- direction. The electrons will drift al

Module of the rated currents - transformer, Module of the rated currents - ...

Module of the rated currents - transformer: The transformer of the Face(Figure) 2 is a transformer of type Delta-Y (the neutral of Y is grounded). The rated output is of 1500

Counter-controlled analog to digital converter, Q. Counter-controlled analo...

Q. Counter-controlled analog to digital converter? Figure shows the block diagram of a counter-controlledA/Dconverter. Resetting the binary counter to zero produces D/A output

What do you mean by digital building blocks, Q. What do you mean by Digital...

Q. What do you mean by Digital Building Blocks? Whereas a continuous change from one value to another is the essential characteristic of an analog signal and continuous-state (

2365 - 305 task a, List four sources of information which are essential to ...

List four sources of information which are essential to the designer of this electrical installation.

Sectoral overview and enabling framework, Sectoral Overview and Enabling Fr...

Sectoral Overview and Enabling Framework Previously, you have studied about several Acts and Policies relevant to the power sector, their aims, main features and implications

Physics, high resistivity materials

high resistivity materials

Benefits of digital systems, Q. Show Benefits of digital systems? Ever ...

Q. Show Benefits of digital systems? Ever since most digital systems have only two possible states, there is high degree of accuracy in the transmission of data. With an analog

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