executing other instructions. Instructions or instructionbytes are added to the rear of the queue until the queueis full. When the execution unit has completed aninstruction, it simply takes the next instruction orseveral instruction bytes from the front of the queue.Instruction Operation LevelsThe CPU executes instructions at two levels orstates: the executive state and the task state. Data bitsin the status indicating registers(s) are used to select thedesired active state.Executivestate—Executive state, also called inter-rupt state, instructions are designed to process what areknown as executive functions (primarily I/O and inter-rupt processing) for multiprogramming operations. Thesefunctions are included in the operating system programs.There may be as many as four separate executive statesin newer computers, one for each class of interrupts.Taskstate—Task state instructions execute whatare called application functions. These functionsactually perform the work, such as solving the firecontrol problem in a CDS/NTDS platform orcomputing a sonobuoy pattern on a TSC platform.The majority of machine instructions can beexecuted in either the task or executive states. Thereare a limited number of instructions that can be executedonly in the executive states. An example is privilegedinstructions that are part of interrupts, which you willlearn more about later in this topic.Those computers that have task and executive stateshave at least one set of addressable registers for eachstate. These addressable register types (accumulators,index registers, base registers, and the like) are onlyaccessible by machine instruction when the computeris in the applicable state. The register sets are enabledand disabled automatically as the computer changesstates. In computers with four executive states, thereare five sets of addressable registers, one for the taskstate and one for each executive state.INSTRUCTION OPERAND ADDRESSINGAddressing is the process of locating the operand(specific information) for a given operation. It issimilar to the process of obtaining your address so thatinformation can be sent to you. Once the computerknows where to obtain the location of the operand, theinstruction can be carried out. If for instance, theoperand is in memory, the addressing techniquedetermines how to obtain the memory address of theoperand and how to use this address to locate theoperand and fetch it. If the operand is in one of theCPU’s registers, addressing is the means by which theinstruction specifies the selected register and theoperand is fetched. Because the length of instructionsand the number of bits per memory cell vary betweentypes of instructions and computers, there is a varietyof ways the operand maybe obtained.INTERRUPTSUp to this point we have covered timing and instruc-tion control and execution. The following informationis designed to the together the overall operation of thecomputer through the study of interrupts and interruptprocessing. We first cover the definition of an interruptand the types and classifications of interrupts you willencounter in computer systems. Then, we cover howcomputers handle interrupts and what happens withinthe computer hardware and software.An interrupt is defined as a break in the normal flowof operation of a computer caused by an interruptsignal. The break occurs in such a way that theoperation can be resumed from the point of the break ata later time with exactly the same conditions prevailing.Interrupts are a method of diverting the attention ofthe computer from whatever process or program it isperforming to the special condition or event that causedthe interrupt signal. Interrupts allow the computer torespond to high priority demands and still be able toperform normal or lower priority processing. When thecondition that caused the interrupt signal to occur hasbeen addressed or processed, the computer’s attentioncan be returned to the process or program it wasexecuting before the interrupt with the exact sameconditions prevailing.Interrupts can occur eitherasynchronously or synchronously within the CPUprogram. The handling of a synchronous interruptoccurs with the actual event that caused the interrupt;whereas the handling of an asynchronous interrupt mayoccur much later in time than the actual event thatcaused the interrupt. We discuss the classification,types (micro, mini, and mainframe computers),priorities, codes, and handling processes of interrupts.Classifications of InterruptsThere are two major classifications of interrupts:internal interrupts and external interrupts.Internalinterrupts—Internal interrupts occur asa result of actions or conditions within the sections ofthe computer (CPU, IOCs, or memory). Internalinterrupts tend to indicate the completion or terminationof I/O operations, or the ending of defined time periods;or they signal some type of error.5-10
Integrated Publishing, Inc. - A (SDVOSB) Service Disabled Veteran Owned Small Business