instructions provide the computer with the ability tomake decisions based on the results of previouslygenerated data.Control instructions send commands to devicesnot under direct control of the control unit, such asinput and output units. The address portion of thecontrol instruction does not specify a location inmemory, but is usually a coded group that specifies anaction be required of a particular piece of equipment.In a single-address computer, where eachinstruction refers to only one address or operand, theinstructions are normally taken from the memory insequential order.If one instruction comes from acertain location, such as X, the next instruction isusually taken from location X + 1. However, theexecution of a logic instruction may produce a resultthat dictates that the next instruction is to be takenfrom an address as specified in a portion of the logicinstruction. For example, the logic instruction mayinitiate certain operations in the computer todetermine if the content of a given register in thearithmetic section is negative. If the answer is yes,the location of the next instruction is specified in anaddress section of the logic instruction. If the answeris no, the next instruction would be taken from thenext sequential location in the memory.Every computer provides circuitry for a variety oflogic instructions, thus providing the capability ofselecting alternate instruction sequences if certaindesirable or undesirable conditions exist. The abilityto branch at key points is the special feature of thecomputer that makes it able to perform such diversetasks as missile control, accounting, and tactical airplotting.ARITHMETIC-LOGIC UNITThe arithmetic-logic unit (ALU) is the section inwhich arithmetic and logic operations are performedon the input or stored data. The operations performedin this unit include adding, subtracting, multiplying,dividing, counting, shifting, complementing, andcomparing.Generally, information delivered to the controlunit represents instructions, while information routedto the arithmetic unit represents data. Frequently, it isnecessary to modify an instruction. This instructionmay have been used in one form in one step of theprogram, but must be altered for a subsequent step. Insuch cases, the instruction is delivered to thearithmetic unit where it is altered by addition to orsubtraction from another number in the accumulator.The resultant modified instruction is again stored inthe memory unit for use later in the program.All arithmetic operations can be reduced to one offour processes: addition, subtraction, multiplication,or division. In most computers, multiplicationinvolves a series of additions, and division is a seriesof subtractions.The arithmetic unit contains several registers.Each register is a unit that can store one “word” ofcomputer data. These registers generally include theD, X, and Q register, and a unit called the accumulator(A register).The registers are so named foridentification purposes only. During an arithmeticprocess, the D, X, and Q registers temporarily hold orstore the numbers being used in the operation. Thesenumbers are called the operands. The accumulatorstores the result of the operation. The control unitinstructs the arithmetic unit to perform the specifiedarithmetic operation as requested by the program.The control unit transfers the necessary informationinto the D, X, and Q registers from memory andcontrols the storage of the results in the accumulatoror in some specific location in memory.The arithmetic unit also makes comparisons andproduces yes or no or GO/NO-GO outputs as a result.The computer can be programmed so that ayes or GOresult causes the computer to perform the next step inthe program, while a no or NO-GO result causes thecomputer to jump several steps in the program. Acomputer can also be programmed so that a no resultat a certain point in the program will cause thecomputer to stop and await instructions from akeyboard or other input device.INTERNAL DATA STORAGE UNITIn some digital computers, the internal datastorage unit, or memory section, is constructed ofsmall, magnetic cores, each capable of representinganon or off condition. An on condition is representedby a 1 and an off condition is represented by a 0. Asystem of these cores arranged in a matrix can storeany computer word that is represented in binary form.All computers must contain facilities to storecomputer words or instructions until theseinstructions or words are needed in the performanceof the computer calculations.Before thestored-program type of computer can begin to operateon its input data, it is first necessary to store, inmemory, a sequence of instructions and all numbers8-5
Integrated Publishing, Inc. - A (SDVOSB) Service Disabled Veteran Owned Small Business