CA1058767A - Programmable calculator with printout of key actuation - Google Patents
Programmable calculator with printout of key actuationInfo
- Publication number
- CA1058767A CA1058767A CA291,275A CA291275A CA1058767A CA 1058767 A CA1058767 A CA 1058767A CA 291275 A CA291275 A CA 291275A CA 1058767 A CA1058767 A CA 1058767A
- Authority
- CA
- Canada
- Prior art keywords
- key
- program
- register
- calculator
- keys
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Calculators And Similar Devices (AREA)
Abstract
Abstract of the Disclosure A modular read-write and read-only memory unit capable of employing both direct and indirect decimal and symbolic addressing, a central processing unit capable of performing both serial binary and parallel binary-coded-decimal direct and indirect memory register arithmetic, and an input-output control unit capable of bidirectionally transferring information between the central processing unit and a number of input and output units are controlled by a microprocessor included in the central processing unit. The input and output units include a keyboard input unit with a section capable of being defined by plug-in read-only memory modules and stored programs added by the user, a magnetic card reading and recording unit capable of bidirectionally transferring information between an external magnetic card and the calculator, and a solid state output display unit capable of displaying three lines of numeric information. An output printer unit capable of printing out every alphabetic and numeric character and many other symbols individually and in messages may also be included with the other input and output units.
Description
1058'76'7 Background of the Invention . _ This invention relates generally to calculators and improvements therein and more particularly to programmable calculators that may be controlled both manually from the keyboard input unit and automatically by a stored program ; loaded into the calculator from the keyboard input unit or an external record member.
Conventional programmable calculators generally have less capability and flexibility than is required to meet the needs of many users. For example, they typically cannot be readily expanded and adapted by the user to separately in-crease the amount of program and data storage memory or to perform special keyboard functions oriented toward the en-vironment of the user. They also typically cannot perform indirectly addressed numeric data register transfers and arithmetic without utilizing available working registers for addresses rather than data. This seriously limits their ability to efficiently perform complex operations such as file manipulations or matrix arithmetic. Moreover, they typically have a very limited capability for performing
Conventional programmable calculators generally have less capability and flexibility than is required to meet the needs of many users. For example, they typically cannot be readily expanded and adapted by the user to separately in-crease the amount of program and data storage memory or to perform special keyboard functions oriented toward the en-vironment of the user. They also typically cannot perform indirectly addressed numeric data register transfers and arithmetic without utilizing available working registers for addresses rather than data. This seriously limits their ability to efficiently perform complex operations such as file manipulations or matrix arithmetic. Moreover, they typically have a very limited capability for performing
-2-~05~'7~;7 direct arithmetic between working and storage memory re-gisters and little or no capability for performing indirect arithmetic between working and storage memory registers.
In some conventional programmable calculators a pro-gram stored within the calculator can be recorded onto an external magnetic record member and can later be reloaded back into the calculator ~rom the magnetic record member.
~owever, data and programs stored within these calculators typically cannot be separately recorded onto an external magnetic record member and later separately reloaded back in~o the calculator therefrom. Moreover, these calculators have no provision for making a program secure when it is recorded onto an external magnetic record member. Any user may therefore re-record the program or obtain an indication of the individual program steps once the program is reloaded into the calculator.
Conventional programmable calculators with self-contained output printer units typically have a very limited alpha capability of only a few selected characters confined to certain columns of the printer. They are therefore typi-cally unable to print out both a numeric and a distinct mnemonic representation of every program step of every pro-gram stored within the calculator Furthermore, they are typically unable to print out labels for inputs to and out-puts from the calculator or messages informing the user how to run programs with which he may be unfamiliar. Such features would be very helpful to the user both in editing programs and in simplifying their use.
In som~ conventional programmable calculators a pro-gram stored within the calculator may be edited by single stepping ~orward through the program while viewing an output ~V5~7~7 display representing the last-encountered program step and its associated address and, in one case, also the presently-encountered program step and its associated address. How-ever, these calculators typically cannot single step back-ward through the program or display the next program step 1~ to be encountered and its associated address. Moreover, they typically have no provision for inserting program steps into the program without reloading portions of the program and no provision for finding every occurrence of any de-signated program step. Such features would also be very helpful to the user in editing programs.
Conventional computer systems have or may be pro-grammed to have much more capability than conventional pro-grammable calculators. However, they are larger, more ex-pensive, and less efficient in calculating elementary mathematical fun~tions than conventional programmable cal-culators. ~oreover, a skilled programmer is typically required to utilize them. ~ue to these factors, conventional computer systems are best suited for handling large amounts of data or making highly iterative or very complex mathema-tical calculations.
Summary of the Invention An object of an aspect of this invention is to provide an improved programmable calculator that has more capability and flexibility than conventional programmable calculators and that is smaller, less expensive, more efficient in cal-culating elementary mathematical functions, and easier to ~utilize than conventional computer systems.
An object of an aspect of this invention is to provide a programmable calculator in which the amount of program ~ o5~7~7 and data storage memory available to the user may be sepa-rately expanded and in which additional program and data storage memory made available to the user is automatically accommodated by the calculator and the user informed when he has exceeded the capacity of either the program or data storage memory.
An object of an aspect of this invention is to provide a programmable calculator in which the functions performed by the calculator may be readily expanded by the user and oriented toward the environment of the user and in which the added functions are automatically accommodated by the cal-culator.
An object of an aspect of this invention is to provide a programmable calculator in which the user may define key-board functions to be performed by the calculator and may protect them from subsequently being inadvertently altered or destroyed.
An object of an aspect of this invention is to provide a programmable calculator capable of employing extensive in-direct addressing to permit efficient manipulation of filesand matrix operations.
~ n object of an aspect of this invention is to provide a programmable calculator in which the user may employ either absolute or symbolic addressing and in which program jumps or subroutine calls may be made to absolute or symbolic ad-dresses.
An object of an aspect of this invention is to provide a programmable calculator capable of performing both direct and indirect storage, recall, and e~change between working and storage memory registers.
.
l(~S~7ti7 An object of an aspect of this invention is to provide a programmable calculator capable of performing both direct and indirect arithmetic bidirectionally between working and storage memory registers.
An object of an aspect of this invention is to provide a programmable calculator capable of performing serial binary arithmetic, parallel-by-digit binary-coded-decimal arithmetic, and logic operations.
An object of an aspect of this invention is to provide a programmable calculator in which either programs or data stored within the calculator may be separately recorded on an external magnetic record member and, subsequently, sepa-rately reloaded back into the calculator therefrom.
An object of an aspect of this invention is to provide a programmable calculator in which the user may designate any program stored within the calculator as being secure when it is recorded onto an external magnetic record member for subsequent re-entry into the calculator and in which the user is prevented from re-recording any secure program or obtaining any indication of its individual program steps once it is reloaded into the calculator.
An object of an aspect of this invention is to provide a programmable calculator capable of printing out every alphabetic and numeric character and many other symbols in-dividually and in messages.
An object of an aspect of this invention is to provide a programmable calculator capable of printing out both a numeric and a mnemonic representation of each keyboard entry in a key-log listing.
An object of an aspect of this invention is to provide a ~051~767 programmable calculator capable of printing out a numeric representation of each numeric keyboard entry and calculated numeric result and a mark distinguishing each numeric key-board entry from each calculated numeric result.
An object of an aspect of this invention is to provide a programmable calculator capable of printing out both a numeric and mnemonic representation of each step in a program stored within the calculator and a numeric indication of the address of each program step in a program listing.
An object of an aspect of this invention is to provide a programmable calculator capable of editing programs stored within the calculator more efficiently than conventional programmable calculators.
An object of an aspect of this invention is to provide a programmable calculator in which the user may single step either forward or backward through an internally stored program in a program entering mode to check the program and may single step forward through the program in a program-controlled operating mode to check the program execution.
An object of an aspect of this invention is to provide a programmable calculator in which the last program step en-countered, the program step presently encountered, and the next program step to be encountered, while single stepping either forward or backward through a program stored within the calculator, may be displayed.
An object of an aspect of this invention is to provide a programmable calculator in which the usér may insert program steps and automatically locate every occurrence of a de-signated program step in a program stored within the calculator.
-7- ;
- - ~ ..
lOS871~7 Other and incidental objects of this invention will become apparent from a ^eading of this specification and an inspection of the accompanying drawings.
In accordance with one aspect of this invention there is provided an electronic calculator comprising: key-board input means including a plurality of keys for entering information, including programs and control commands, into the calculator, each of the plurality of keys having a mnemonic representation; memory means for storing information, including programs, that has been entered into the calculator;
processing means, coupled to the keyboard input means and memory means ! for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the mnemonic representations of the keys of the . keyboard input means; the keyboard input means including a key-log control key for selecting a key-log mode of ~ calculator operation; the processing means being responsive to selection of the key-log mode of calculator operation .
and to subsequent actuation of a key of the keyboard input means for causing the printer means to print the mnemonic representation of the actuated key.
In accordance with another aspect of this invention there is provided an electronic calculator comprising: key-board input means including a plurality of keys for entering information, including control commands and a program com-prising program steps, into the calculator, each program step having a numeric and a mnemonic representation; memory means for storing information, including a program comprising program steps, that has been entered into the calculator, , . . .
,"~ ",',,~, - ~ ~ ' .,,: ~ . . : . , ~05t~7~7 each stored program step having a separate numeric address;
processing means, cou~led to the keyboard input .neans and memory means, for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the numeric and mnemonic representations of each program step comprising a program stored in the memory means; the keyboard input means including a list control key for enter-ing a list control command into the calculator; the processing means being responsive to entry of a list control command for causing the printer means to print a program listing comprising the numeric and mnemonic representations of each program step comprising a program stored in the memory means together with the corresponding numeric address of each such progxam step.
Disclosed hereinafter is an embodiment in which there is employed a keyboard input unit, a magnetic card reading and recording unit, a solid state output display unit, an output printer unit, an input-output control unit, a memory unit and a central processing unit to provide an - adaptable programmable calculator having manual operating, automatic operating,program entering, magnetic card reading, magnetic card recording, and alphameric printing modes. The keyboard input unit includes a group of data keys for enter-ing numeric data into the calculator, a group of control keys for controlling the various modes and operations of the calculator and the format of the output display, and a group ~
of definable keys for controlling additional functions that ~.
30 may be added by the user. All of the data keys and nearly ;
all of the control keys may also be employed for programming ~ .
4 8a _ ~ 05B7~;7 the calculator, many of the control keys being provided solely for this pu~pose. The keyboard input unit also includes a group of indicator lights for informing the user of the status of the calculator. These indicator lights and all of the keys are mounted on a front panel of a housing for the calculator.
The magnetic card reading and recording unit in-cludes a reading and recording head, a drive mechanism for driving a magnetic card from an input receptacle in the front panel of the calculator housing past the reading and recording head to an output receptacle in the front panel, and reading and recording drive circuits coupled to the reading and ~.~;s' , , .. ..... . .
~ .
; ~05~7~i~
recording head for bidirectionally transferring information between the magnetic card and the calculator as determined by the control keys of the keyboard input unit. It al~o in-cludes a pair of detectors and an associated control circuit for disabling the recording drive circuit whenever a notch is detected in the leading edge of the magnetic card to pre-vent information recorded on the magnetic card from being inadvertently destroyed. Such a notch may be provided in any magnetic card the user desires to protect by simply pushing out a perforated portion thereof.
The solid state output display unit includes three rows of light emitting diode arrays and associated drive circuits for selectively displaying three separate lines of numeric information. Numeric data may be displayed in either a fixed or a floating point format as determined by the con-trol keys of the keyboard input unit.
The output printer unit includes a stationary thermal printing head with a row of resistive heating ele-ments, a drive circuit for selectively energizing each heating element, and a stepping mechanism for driving a strip of thermal-sensitive recording paper past the stationary thermal printing head in seven steps for each line of alphameric in-~ormation to be printed out. ~very alphabetic and numeric character and many other symbols may be printed out indivi-dually or in messages as determined by the control keys of the keyboard input unit or by a program stored within the calculator.
The input-output control unit includes a sixteen-bit uni-versal shift register serving as an input-output regi~ter into which information may be transferred serially from the central _g_ ~, ;:
:.. , processing unit or in parallel from the keyboard input and magnetic card reading and recording units and from which in-formation may be transferred serially to the central pro-cessing unit or in parallel to the keyboard indicator lights and to the solid state output display, magnetic card reading and recording, and output printer unitsO It also includes control logic responsive to the central processing unit for ~` controlling the transfer of information between these units.
The input-output control unit may also be employed to per-form the same functions between the central processing unit and peripheral units including, for example, a digitizer, a marked card reader, an X-Y plotter, a magnetic tape unit, and a typewriter. A plurality of peripheral units may be con-nected at the same time to the input-output control unit by simply plugging interface modules associated with the selected peripheral units into receptacles provided therefore in a rear panel of the calculator housing.
The memory u~it may employ both direct and indirect decimal and symbolic addressing. It includes a modular random-access read-write memory having a program storage section for storing a plurality of program steps and having a separate data storage section including a plurality of working registers, a plurality of associated display re-gisters, and a plurality of storage registers for manipulating and storing data. These program and data storage sections o~ the read-write memory may be separately expanded without increasing the overall dimensions of the calculator by the addition of program storagè modules or by the alteration of the data storage memory control. Additional r-ead-write memory made available to the user is automatically accommodated 1051~ 7 by the calculator, and the user is automatically informed ~hen the program or data storage capacity o~ the read-write memory has been exceeded.
The memory unit also i~cludes a modular read-only memory i~ which routines and subroutines of basic instruc-tions ~or per~orming the various functions of the calculator are stored. These routines and subroutines of the read-only memory may be expanded and adapted by the user to per-iorm additional functions oriented toward the specific needs o~ the user. This is accomplished by simply plugging ad-ditional read-only memory modules into receptacles provided there~or in the top pane o~ the calculator housing; Added read-only memory modules are automatically accommodated by the calculator a~d may be associated with the de~inable keys o~ the keyboard input unit or employed to e~pand the opera-tions associated with other keys. An o~erlay is employed with each added read-o~ly memory module associated with the de inable keys o~ the ~eyboard input unit to identi~y the additional ~unctions that may then be performed by the cal-culator.
Plug~i~ read-only memory modules lncluding, for ~ample, an alpha module, a mathematics module, a statistics module, a definable ~nctions module, and a typewriter module may be added to the read-only memory. The alpha m~dule en-ables the calculator to print out every alphabetic character indi~idually or In messages. ~t èmploys addressing e~abling it to redefine most of the keys of the keyboard input unit so that it may be employed at the sæme time as other plug-in read-only memory modules. The mathematics module enables the calculator to perform trigonometric ~unctions, coordinate lO~Y 7t;7 -~ transformations, vector arithmetic, and many other mathe-matical functions. Similarly, the statistics module enables the calculator to perform random number generations, ac-cumulations of sums, sums of products and sums of squares for up to five variables, linear and multiple linear re-gressions, and many other statistical functions. It also permits the use of a correct key, included among the de-finable keys of the keyboard input unit, to automatically delete data from a statistical analysis. The definable functions module enables the user to store programs of his own choosing in the program storage section of the read-write memory, associate them with some of the definable keys of the keyboard input unit, and protect them from sub-sequently being inadvertently altered or destroyed. It also permits the use of an insert key and a find key, in-cluded among the definable keys of the keyboard input unit, to insert program steps in a program stored in the read-write memory and to find every occurrence of any designated program step in the stored program. The typewriter module enables the calculator to control the entire keyboard of a properly interfaced typewriter.
The memory unit further includes a pair of recir-culating sixteen-bit serial shift registers. One o$ these registers serves as a memory address register for serially receiving information from an arithmetic-logic unit included in the central processing unit, for parallel addressing any memory location designa$ed by the received information, and for serially transferring the received information back to the arithmetic-logic unit. The other of these registers serves as a memory access register for serially receiving -12_ ~, . .
.
information from the arithmetic-logic unit, for writing in-formation in parallel into any addressed memory location, for reading information in parallel from any addressed memory location, and for serially transferring information to the arithmetic-logic unit. It also serves as a four-bit parallel shift register for transferring four bits of binary-coded-decimal information in parallel to the arithmetic-logic unit.
The central processing unit includes four recir-culating sixteen-bit serial shift registers, a four-bit serial shift register, the arithmetic logic unit, a programmable clock, and a microprocessor. Two of these sixteen-bit serial shift registers serve as accumulator registers for serially receiving information from and serially transferring in-formation to the arithmetic-logic unit. The accumulator re-gister employed is designated by a control flip-flop. One of the accumulator registers also serves as a four-bit paral-lel shift register for receiving four bits of binary-coded-decimal information in parallel from and transferring four bits of such information in parallel to the arithmetic-logic unit.
The two remaining sixteen-bit serial shift registers serve as a program counter register and a qualifier register, re-spectively. They are also employed for serially receiving information from and serially transferring information to the arithmetic-logic unit. The four-bit serial shift regi-ster serves as an extend register for serially receiving in-formation from either the memory access register or the arithmetic-logic unit and for serially transferring infor-mation to the arithmetic-logic unit.
The arithmetic-logic unit is employed for per-forming one-bit serial binary arithmetic, four-bit parallel ~,:
~058~7 binary-coded-decimal arithmetic, and logic operations. It may also be controlled by the microprocessor to perform bi-directional direct and indirect arithmetic between any of a plurality of the working registers and any of the storage - registers of the data storage section of the read-write memory.
The programmable clock is employed to supply a variable number of shift clock pulses to the arithmetic-logic unit and to the serial shift registers of the input-output, memory, and central processing units. It is also employed to supply clock control signals to the input-output control logic and to the microprocessor.
The microprocessor includes a read-only memory in which a plurality of microinstructions and codes are stored.
These microinstructions and codes are employed to perform the basic instructions of the calculator. They include a plurality of coded and non-coded microinstructions for trans-ferring control to the input-output control logic, for controlling the addressing and accessing of the memory unit, and for controlling the operation of the two ac-cumulator registers, the program counter register, the ex-tend register and the arithmetic-logic unit. They also include a plurality of clock codes for controlling the operation of the programmable clock, a plurality of qualifier selection codes for selecting qualifiers and serving as primary address codes for addressing the read-only memory of the micropro-cessor, and a plurality of secondary address codes for ad-dressing the read-only memory of the microprocessor. In re-sponse to a control signal from a power supply provided for the calculator, control signals for the programmable clock, and qualifier-control signals from the central-processing -14_ lOS8~7~;7 and input-output control units, the microprocessor issues the microinstructions and codes stored in the read-only memory of the microprocessor as required to process either binary or binary-coded-decimal information entered into or stored in the calculator.
In the manual operating mode, the calculator is controlled by keycodes sequentially entered into the cal-culator ~rom the keyboard input unit by the user. The solid state output display unit displays a numeric repre-sentation of the contents of three of the working registersand their associated display registers. These working re-gisters and their associated display registers may contain the last-entered numeric operand and two previously entered or calculated numeric operands or results or three previously entered or calculated numeric operands or results. The out-put printer unit may be controlled by the user to selectively print out a numeric representation of any numeric data entered into the calculator ~rom the keyboard input unit, a numeric representation of any result calculated by the cal-culator, and a mark distinguishing numeric data entries fromcalculated numeric results. If the alpha read-only memory module is plugged into the calculator, the output printer unit may also be controlled by the user to print out labels for inputs to and outputs ~rom the calculator and any other alphabetic in~ormation that may be desired.
When the calculator is in the manual operating mode, it may also be operated in a key-log alphameric printing mode.
The output printer unit then prints out a numeric representa-tion o~ each keycode as it is entered by the user. If the alpha read-only memory module is plugged into the calculator, , ~
' -- -- , .
~058~G~7 the output printer unit also prints out a mnemonic representa-tion of each such keycode.
In the automatic operating mode, the calculator is controlled by automatically obtaining keycodes stored as steps of a program in the program storage section of the read-write memory. ~uring automatic operation of the cal-culator, data may be obtained from the memory unit as de-signated by the program or may be entered from the keyboard input unit by the user while the operation of the calculator is stopped for data either by the program or by the user.
The solid state output display unit displays the ~inal con-tents of the three working registers and their associated display registers. This may include the final calculated numeric result and two previously entered or calculated numeric operands or results or three previously entered or calculated numeric operands or results. The output printer unit prints out calculated numeric results and other numeric information designated by the program. If the alpha read-only memory module is plugged into the calculator, the output printer unit also prints out any alphabetic information de-signated by the progra~.
When the calculator is in the automatic operating mode, the user may also employ a step program control key of the keyboard input unit to single step forward through the program being executed. This enables the user to check the execution of the program step by step in order to determine whether the program, as entered into the calculator, does in fact carry out the desired sequence of operations In the program entering mode, keycodes are sequen-tially entered by the user into the calculato~ from the ll)S~7~7 keyboard input unit and are stored as steps of a program in the program storage section of the read-write memory. The program may include sequences of program steps that will be intrepreted, when the program is executed, as alphabetic information to be printed out by the output printer unit if the alpha read-only memory module is plugged into the cal-culator This alphabetic information may include labels for inputs to and outputs from the calculator, alphabetic messages for facilitating the use of the program and the opera-tion of the calculator, or any other alphabetic informationthat may be desired. While the user is entering a program into the calculator in the program entering mode, the solid state output display unit displays a numeric representation of the last-entered program step and its associated address and the addresses of the next two program steps to be entered and the present contents of those addresses.
In the program entering mode, the user may also employ the step program control key and a back step control key of the keyboard input unit, to single step either ~or-ward or backward through any sequence of program steps storedin the program storage section of the read-write memoryO
While the user is single stepping forward or backward through a sequence of program steps, the solid state output display unit displays a numeric representation of the last-encountered program step, the program step presently encountered, the next program step to be encountered, and the addresses of these program steps. If the definable functions read-only memory module is plugged into the calculator, the user may also employ the insert and find keys described above by switching to the manual operating mode. These features ~()58767 greatly facilitate the editing of programs stored in the program storage section of the read-write memory.
When the calculator is in the program entering mode, it may also be operated in a key-log alphameric printing mode. The output printer unit then prints out a numeric representation of each program step and its associated ad-dress as it is entered into the calculator from the keyboard input unit by the user. If the alpha read-only memory module is plugged into the calculator, the output printer unit also prints out a mnemonic representation of each such program step.
When the calculator is in the program entering mode, it may also be operated in a list alphameric printing mode.
The output printer unit then prints out a numeric repre-sentation of every program step then stored in the program storage section o~ the read-write memory and a numeric re-presentation of the addresses of those program steps. If the alpha read-only memory module is plugged into the cal-culator, the output printer unit also prints out a mnemonic representation of each such program step.
In the magnetic card reading mode, the magnetic card reading and recording unit may be employed by the user to separately load either data or programs into the calculator from one or more external magnetic cards. Data and programs so loaded are separately stored in the data storage and pro-gram storage sections of the read-write memory.
In the magnetic card recording mode, the magnetic card reading and recording unit may be employed by the user to separately record either data or programs, separately stored in the data storage and program storage sections of the read-write memory, onto one or more external magnetic cards. Programs stored in the program storage section of the read-write memory may be coded by the user as being secure when they are recorded onto one or more external magnetic cards. The calculator detects such programs when they are reloaded into the calculator and prevents the user from re-recording them or obtaining any listing or other indication of the individual program steps.
Des_ription of the Drawings Figure 1 is a front perspective view of an adaptable programmable calculator according to the preferred embodiment of this invention.
Figure 2 is a rear perspective view of the adaptable programmable calculator of Figure 1.
Figures 3A-B are simplified block diagrams of the adaptable programmable calculator of Figures 1 and 2.
Figure 4 is a memory map of the memory unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 5 is a detailed memory map of the dedicated portion of the data storage section of the read-write memory employed in the memory unit of Figures 3A-B and 4.
Figure 6 is a detailed memory map of the dedicated portion of the program storage section of the read-write memory employed in the memory unit of Figures 3A-B and 4.
Figure 7 is a simplified operational logic flow chart illustrating the operation of the microprocessor employed in the central processing unit of Figures 3A-B.
Figure 8 is a plan view of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2 and 3A-B showing how the keyboard input unit may be redefined by lOS8'~7 :.
an alpha plug-in read-only ~emory modl.le that may also he employed in the adaptdble programrndble calc:ulator.
Figure 9 (sheet 7) is a plan view of the definable keys of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B and the overlay associated with a definable functions plug-in read-only memory module that may be employed in the adaptable pro-grammable calculator.
Figure 10 (sheet 7) is a plan view of the definable keys of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B and the overlay associated with a mathematics plug-in read-only memory module that may be employed in the adaptable programmable calculator.
Figure 11 (sheet 7) is a plan view of the definable keys of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B and the overlay associated with a statistics plug-in read-only memory module that may be employed in the adaptable programmable calculator.
Figure 12 (sheet 9) is a plan view of the kPyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B
showing how the keyboard input unit may be redefined by a typewriter plug-in read-only memory module that may also be employed in the adaptable programmable calculator.
Figure 13 is a simplified flow chart of the overall control sequence employed for keycode processing in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 14 is a flow chart of the cdisplay routine of Figure 13.
Figuresl5A-C are flow charts of the display list building routine of Figure 14.
Figure 16 is a map of the output bit assignment for ...
.': ' .
~OS8767 the seven-segment display employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 17 is a map of the display list built in the read-write memory of Figures 3A-B, 4, and 5.
Figure 18 is a map of the internal structure of the display list of Figure 17.
Figures l9A-B are flow charts of the monitor routine employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figures 20A-B are flow charts of the interpreter routine of Figure 13.
Figures 21A-D are flow charts of the program mode key, run mode key, floating-point display key, and fixed-point display key processing routines, respectively, of Figure 13.
Figure 22 is a map of the status word register of Figure 5 illustrating how it is employed by some of the routines of Figures 21A-D.
Figure 23 is a flow chart of the back step key processing routine of Figure 13.
Figure ~4 is a flow chart of the clear key processing routine selectable by the interpreter routine of Figure 13.
Figure 25 is a flow chart of the end key processing routine select-able by the interpreter routine of Figure 13.
Figure 26 is a flow chart of the stop key processing routine select-able by the interpreter routine of Figure 13.
Figure 27 (sheet 23) is a flow chart of the integer x key processing routine selectable by the interpreter routine of Figure 13.
Figure 28 (sheet 22) is a flow chart of the pi key processing ~ lOS~767 routine se}ectable by the interpreter routine o~ Figure 13.
Figure 29 ~sheet 22) is a flow chart o~ the clear x key processing routine selectable by the interpreter of Figure 13.
Figures 30A-B are simpli~ied flow charts o~ the number entry processing routine selectable by the interpreter o~ Figure 13.
Figures 31A-C are ~low charts o~ portions o~ the magnitude processing portions o~ the number entry,routine o~
Figures 30A-B.
Figures 32A-B are ~low charts o~ expone~t process~ng portions o~ the number entry routine o~ Figures 30A-B.
Figure 33 is a ~low chart o~ the change-s~gn pro-cessing portion o~ the number entry routine of Figures 30A-B.
Figure 34 ls a ~low chart o~ the termination portion o~ the number entry routine of F~gures 30A-~.
Figure 35 is a ~low chart o~ the up-key proces~i~g routine selectable by the interpreter of Figures 13.
Figure 36 is a ~low chart o~ the down-~ey processing routine se}ectable by the interpreter routi~e o~ Figure 13.
Figure 3~ is a ~low chart of the roll-up key.processing routine selectable by the interpreter routine o~ Figure 13.
Figures 38A-B are simpli~ied ~low charts o~ the re-gister trans~er and register arithmetic routlnes selec~able by the interpreter routin'e o~ Figure 13.
. . . . . .
. Figures 39A-B are ~lo~ charts o~ the register trans~er and automatic address termination routine employed in con-nection with the register trans~er arithmetic key processing routine of Figures 38A-B.
Figure 40 ~ 8 a flow chart o~ the indirect-key pro-cessing routine selectable by the interpreter routi~e o~ Figure 13.
,' . , .
lOS8'~f~7 Fi~ure 41 is a flow chart of the a- and b-register transfer key processing routines selectable by the interpreter routine o~ Figure 13.
Figure 42 is a ~low chart o~ the indirect address computation routine e~ployed in connection wlth the indirect-key processing routine of ~igure 40.
Figure 43 is a ~low chart of the decimal address ~ump and automatic address termination routine employed in con-nection with the go-to a~d if key processing routines selectab}e by the interpreter routine o~ Figure 13.
Figure 44 is a ~low chart of the label-key processing routine selectable by the interpreter routine of Figure 13.
Figure 45 is a ~low chart of the i~ ~ey processing rout~ne selectable by the interpreter routine o~ Figure 13.
Eigure 46 is a flow chart o~ the subroutine/return key processing rout~ne selectable by the interpreter routine ~o~ Figure 13.
Figures 47A-C are ~low charts of the floating point add and subtract key processing routines selectable by the interpreter rout~ne o~ Figure 13.
Figure 48 is a flow chart oi the floating point multi-ply key processing routine selectable by the interpreter rou~.ine o~ Figure 13.
Figures 49A-B are ~lo charts o~ the ~loatlng point di~ision key processing routine oY Figure 3.
Eigures 50A-C are ~lo~ charts o~ the ~loating point square root key processing routine select~ble by t~e inter-preter routine of Figure 13.
Figure 51 (sheet 48) is a flow chart of the store routine of Figure 13.
105~7~7 Figure 52 (sheet 47) is a flow chart of the rounding routine employed in connection with several of the routines selectable by the interpreter routine of Figure 13.
Figure 53 (sheet 47) is a flow chart of the x~squared key processing routine selectable by the interpreter routine of Figure 13.
Figure 54 (sheet 47) is a flow chart of the reciprocal-x key processing routine -~electable by the interpreter routine of Figure 13.
Figure 55A-B are flo~ charts o~ the basic format key processi~g routine selectable by the interpreter routine o~
Figure 13.
Figure 56 is a flow chart o~ a search routine that may be e~ployed in connec~ion with the basic ~ormat key processing routine of Figures 55A-B.
Figure 57 is a memory map illustrating the use o~ the search routi~e o~ Figure 56.
Figures 58A-B are flow charts of a plotter routine employed in connection with the basic ~ormat key processing routine of Figures 55A-B.
Figure 59 is a map of a memory register em~,loyed in connection w~th the plotter routine of Figures 58A-B.
Figure 60 is a ~low chart of the program-step re-cording portion o~ the record key processing routine of Figure 13.
~ Figure 61 ~s a flow chart of the program-step loading portion of the load key processing routine o~ Figure 13.
F~gure-~62 is a memory map o~ the program storage section of the read-write memory of Figures 3A-B and 4-6 illustrating how a secure pro~ram is destroyed by an unsecure program.
-24_ ~05~'7~7 Figuxe 63 is a flow ch~rt o~ the format recording portion o~ the record key proeessing routine of Figure 13.
Figure 64 is a ~lo~ chart o~ the data recording portion of the record key processing routine o~ Figure 13.
Figure 65 is a ~low chart of the data loading portion of the load key processing routine o~ Figure 13.
Figure 66 is a ~low chart showing how a plug-in read-only memory module employed in the adaptable programmable calculator o~ Figures 1, 2,and 3A-B can obtain keycordes from a program stored in the program storage section of the read-write memory of Figures 3A-B and 4.
Figureq 67.A-C show how the print routine accesses code ~n~ormation stored in tables in the data storage section oi the read-write memory of F~gures 3A-B and 4.
Figures 68A-B are memory maps of a directive table and a code table respectively, in an alpha plug-in --rea~-o~ me~or~ mo~ul~ that may be employed i~ the adaptable programmable calculator of Figures 1, 2,and 3A-B.
Fig~re 69 is a flow chart showing how the printer .code is accessed by an alpha plug-in read-ouly memory module employed in the adaptable programmable calculator of Figures 1, 2,and 3A-B.
Figures 70A-B are flow charts of the typewriter -~ormat routine employed in connection with the format key .psocessing-routine selectable by the interpreter. routine o~
Eigure 13.
E~gure 71 is a memory map o~ a type~riter mnemonic table in a typewriter plug.-in read-only memory module that may be e~ployed in the adaptable programmable calculator o~
Figures 1, 2,and 3A-B~
-25_ Figure 7~ is a ~low chart o~ a typewriter list routine that may be performed when the typewriter read- ( only memory module is plugged into the adaptable programmable calculator o~ Figurec 1, 2,and 3A-B.
Figure 73 is a ~low chart of a typewriter print routine that may be performed when the typewriter read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2,and 3A-B.
Figure 74 is a flow chart o~ a typewriter alpha rout~ne that may be per~ormed when the typewriter read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-8.
Figure 75 is a ~low chart o~ a de~inable keycode entry routine employed when the definable ~unctions read-only memory module is plugged into the calculator.
~igure 76 is a flow chart of a protect key processing routine that may be performed when the de~inable functions read-only memory module is plugged into the calculator.
Figure 77 is a flow chart o~ a memory -~earch routine that may be performed when the definable functions read-only memory module i~ plugged into the calculator.
Figures 78A-B are ~low charts o~ a de~inable ~unction calls routine that may be per~ormed when the de~inable unc-tions read-only memory module is plugged into the calculator.
Figure 79 is a d~recti~e table o~ the ~unction calls that may be per~ormed by tha deiinable ~unction calls routine o~ Figures 78A-B.
Eigure 80 ~s a ~low chart o~ a definable ~unction return routine employed with the de~inable function calls routine o~ Figures 78A-B.
lOS87f~7 Flgure 81 i~ a ~low chart of a turn-o~-the-functio~
light subroutine employed by the definable iunction return routine o~ Figure 80.
Figure 82 is a ~low chart oi a iunction stack - checking subrouti~e employed by the de~inable ~unction calls routine and the deiinable function return routine oi Figures 78A-B and 80, respectively.
Figure 83 is a ilow chart oi a delete-protect routine that may be performed when the de~inable iunct~ons read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2,and 3A-s.
Figure 84 is a ilow chart oi a turn-ofi-the-delete-light subroutine e~ployed by the delete-protect routine oi ~igure 83.
Figure 85 is a flow chart oi an empty-the-~unction-ctack subroutine employed by the delete-protect routine oi . Figure 83.
Figure 8~ is a ilow chart o~ a find routine that may be periormed when the deiinable functions read-only memory module is plugged into the adaptable progra~mable calculator o~ Figures 1, 2,and 3A-s.
Figure 8~ is a ~low chart oi a get-the-next-~ey sub-routine employed by the ~ind routine of Figure 86.
Figure 88 is a ~low c~art of a memory compactor routine that may be performed when the deiinable iu~ctions read-only memory module is plugged into the adaptable programmable calculator of Figures-l, 2, and 3A-B.
Eigure-89 is a memory map illustrating the use of the memory compactor subroutine oi Figure 88.
Figures 90A-C are flow charts o~ a delete routi~e that may be periormed when the deiinable ~unct~o~ read-c~ly - memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
.. :
10~767 :
- Figures 91A-B are.flow charts of an ~nser~ routine that may be performed when the definable functions read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 92 is a flow chart of an address calculating subroutine `` employed by the insert routine of Figures 91A-B.
Figures 93A-B are flow charts of a tangent x routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figures 94A-B are flow charts of an arctangent x routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figures 95A-B are flow charts of an e-to-the-x-power routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 96 is a flow chart of a natural logarithm x routine that may be performed when the mathematics read-only memory modu1e is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure g7 is a flow chart of a subroutine employed by the tangent x and the e-to-the-x-power routines of Figures 93A-B and 95A-B, respectively.
Figures98A-B are flow charts of a subroutine employed by the tangent x and arctangent x routines of Figures 93A-B and 94A-B, respectively.
Figures 99A-B are flow charts of a subroutine employed by the e-to-the-x-power and natural logarithm x routines of Figures ,. . ~ ~, 35A-R a~d 96, respectively.
Figure 100 is a flow chart of a subroutine employed by the arctangent x and ~atural logarithm ~ routines of Figures 94A-B and 95, respectively.
Figure 101 is a flow chart of sine and cosine routines that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator oi Figures 1, 2, and 3A-B.
Figure 102 is a ~low chart of a table f(x) routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 103 is a flow chart of an arc routine that may be performed when the mathematics read-only memory madule is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.-~igure 104 is a flow chart of an arcsine routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.
Figure 105 is a ~low chart o~ an arccosine routine that may be performed ~hen the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.
Figure 106-is a flo~ chart of a co~version to polar coordinates routine that may be performed when the mathe-ma~ics read-only memory module is plugged i~to the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
. . Figure 107 is a flow chart of a conversion to rec-tangular coordinates routine that may be performed when the .: ' . .
-29_ ~0S8~67 mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-s.
Figure 108 is a flow chart o~ a ten-to-the-x-power routine that may be performed when the mathematics read-: only memory module is plugged into the adaptable pro-grammable calculator of Figures 1, 2, and 3A-s.
Figure 109 is a flow chart o~ an absslute value y .routine that may be per~ormed when the mathematics read-only memory module is plugged ~nto the adaptable pro-grammable calculator o~ Figures 1, 2, and 3A-B.
Figure 110 is a ~low chart of an x-to-the-y-power routine that may be performed when the mathema~ics read-only memory module is plugged into the adaptable pro-grammable calculator of Figures 1, 2, and 3A-B.
Figure 111 is a ~low chart of a logarithm-to-the-base-ten routine t~at may be per~ormed when the mathematics . .~ad~on~y.memGry..module is glugged into the adaptable pro-grammable calculator o~ Eigures 1, 2, and 3A-B.
Figure 112 is a flow chart o~ a routine ~or converting degrees, minutes, and seconds to degrees that may be per~ormed whe~ the mathematics read-only memory module is plugged into the adapta~le programma~le calculator o~ Figures 1, 2, and 3A-B.
Figure 113 is a ~low chart o~ a routine ~or conYerting degrees to degrees, minutes, and.seco~ds that may be per~ormed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
Eigure 114 ~s a ~low chart of a subroutine employed by the routine.~o Pigure L3~or convert~ng de Fees to degrees, .
minutes,and seconds. s Figure 115 is a ~low chart o~ an x ~actorial routine 105~767 that may be employed when the mathematics read-only memoxy module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
; Figure 116 is a flow chart o~ a recall routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~
Figuresl, 2, and 3A-s.
- . . .
Figure 117 is a flow chart of an accumulate plus routi~e that may be employed when the mathematics read-only : 10 memory module is plugged into the adaptable programmable : calcuIator o~ Figures 1, 2, and 3A-s.
Figure 118 is a ~low chart o~ an accumulate minus routine that may be e~ployed when the mathemat~cs read-only memory module is plugged into the adaptable.programmable calculator o~ Figur~ 1, 2, and 3A-s.
Figures ll9A-B are ~low charts o~ a rounding routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figur~ 1, 2, and 3A-B.
Figure 120 is a flow chart o~ a scale routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~
Figures 1, 2, and 3A-B.
Figure 121 is a flow chart o~ a subroutine employed by the scale routine o~ Figure 120.
F~gure 122 is a flow chart o~ a clear routine that mar be employed ~hen the mathematics read-only memory module ls plugged intc~the adaptable programmable calculator of ~gures 1, 2, and 3A-B .
Figure 123 is a flow chart of a de~inable ~(x) .
-31- ..
.
- , ' ~ ~ ' -lOS8';~t;7 routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-s.
Figure 124 is a flow chart o~ a do-loop routine that may be employed when the mathematics read-only memory module ~s plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.
Figures 125A-B are flow charts of a summation routine that may be per~ormed when the statistics read-only memory module is plugged into the adaptable programmable calculator o~
Figures 1, 2, and 3A-3.
Figure 126 is a ~low chart o~ a correct routine that may be performed when the statistics read-only memory module is plugged into the adaptable programmable calculator o~
Figures 1, 2, and 3A-B.
Figure 127 i~ a flow chart of a t-pair routine that -may be per~ormed ~hen the statistics read-only memory module ~s plugged into the adaptable prog~ammable calculator o~
Figures 1, 2, and 3A-B.
F~gure 128 is a ~low ohart of an x sguared routine that may be per~ormed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 129 is a ~low chart o~ a mean value rout~ne.
that may be perrormed when the statis~ics read-only memory module is plugged into the adaptable programmable calculator .. ., . . _ . ... .. .
o~ Figures 1, 2, and 3A-s.
Figure i30.ls a flo~ chart o~ a maximu~/mlnimum routine that may be per~ormed when the statistic~ read-only memory module is plugged ln~o the adaptable programmable calCulator of Figures 1, 2, and 3A-B.
Figure 131 is a ~low chart o~ a Yariance routine that may be per~ormed when the statistics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
l~)S~7~7 - Figure 132 is a flow chart of an initialize routine that may beperformed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 133 is a flow chart of a regression routine that may be performed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 134 (sheet 113) is a flow chart of a variables routine that may be performed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 135 (sheet 112) is a flow chart of an r2-correlation routine that may be performed whcn the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 136 is a block diagram of the microprocessor of Figures 3A-B.
Figures 137A-D are detailed schematic diagrams of the microprocessor of Figures 3A-B and 136.
Figure 137'is a figure map showing how the detailed schematic dia-grams of Figures 137A-D fit together.
Figures 138A-H are detailed flow charts illustrating the operation of the microprocessor of Figures 3A-B~ 136, and 137A-D.
Figure 138'is a figure map showing how the detailed flow charts of Figures 138A-D fit together.
Figure 138 " is a figure map showing how the detailed flow charts of Figures 138E-H fit together.
Figure 138I shows the macro-instruction coding table, the used data format, and the used address and constants for the micro-processor of Figures 3A-B and 136.
Figure 138J is an instruction table for the microprocessor of Figures 3A-B and 136.
Figure 139 is a block diagram of the programmable clock of Figures 3A-B.
Figures 140A-C (sheets 119 and 129-131) are detailed 105E~7~7 schematic diagrams of the programmable clock of Figure~ 3A-B
and 139 and of a portion o~ the input-output control unit o~
Figures 3A-B.
Figure 140' is a figure map showing how the detailed schematic diagr~ms of Figures 140A-c fit together.
Figure 141 is a waveform diagram illustrati~g the .
operation o~ the programmable clock of Figures 3A-B, 139, and 4oA-c.
. Figure~ 142A-D (3heet 119 and 133-136) are detailed -~chematic diagrams of the shift regi~ter and arithmetic-logic units of Figures 3A-B.
Figure 142' i3 a figure map shcwing how the detailed schematic diagrams of Figures 142A-D fit to~ether.
F gure 143 is a bloc~ diagram o~ the arithmetic-logic unit of Figure~ 3A-8.
Figure 144 is a table o~ the ~unction code assigmments o~ ~he arithmetic-logic unit o~ Figures 142A-D and 143.
Figure 145 is a table o~ integrated c~rcuits that ~ay be employed to construct the AL~ o~ Figures 142A-D and 143.
Figure 146 is a block diagram o~ the memory unit o~
Figures 3A-B.
~igure 147 is a table o~ mnemon~cs used in the memory unlt o~ Figures 3A-B.
Figure 1~8 is a sc~ematic diagram o~ the read-wrlte ~. . . . . .
memory of Figures 3A-B, 4, and 146.
Figure 149 is a schematic diagram o~ one o~ the add-on read-write memory modules o~ Fi~ure 146 that may be plugged into the calculator to increase the amou~t of program storage memory aYailable to the user.
Figure 150 is a schematic diagra~ o~ the other add-o~
read-write memory module of Figure 146 that ~ay be plugged into the calculator to ~urther increase ~he amount o~ program storage memory available to the user.
~ . ~
~Q587~7 Figure 151 is a schematic diagram of the read~only memory of Figures 3A-B, 4 and 146.
Figure 152 is a schematic diagram of the add-on read-only memory modules of Figure 146 that may be plugged into the calculator to increase the number of functions available to the user.
Figure 153 is a block diagram of one of the read-only memory chips of Figures 151-152.
Figures 154A-D (sheets 119 and 147-150) are schematic diagrams of one of the read-only memory chips of Figures 151-152.
Figure 154' is a figure map showing how the detailed schematic diagrams of Figure~ 154A-D fit together.
Figure 155 is a memory map of the memory unit of Figures 3A-B and 4 illustrating how it is partitioned into the read-only and read-write memory chips of Figures 148-153 and 154A-D.
Figure 156 i9 a flow chart illustrating how the row numbers of the lists stored in the read-only memory chips are computed.
Figure 157 i9 a table of bit numbers and actual bits used in connection with the flow chart of Figure 156.
Figures 158A-D are detailed schematic diagrams of the memory address register of Figures 3A-B and 146.
Figure 158' is a figure map showing now the detailed schematic diagrams of Figures 158A-D fit together.
Figures 159A-D are detailed schematic diagrams of the control circuitry of Figure 3 and 146.
Figure 159' is a ~igure map showing how the detailed Rchematic diagrams of Figures 159~-D fit together.
, . - ,,: , ": .
~o~8~ 7 Figure 160 is a waveform diagram illustrating the operation of the control circuitry of Figures 159A-D.
Figures 161A-D (sheets 157 and 163-166) are detailed schematic diagrams of the memory access register of Figures 3A-B and 146.
Figure 161' is a figure map showing how the detailed schematic diagrams of Figures 161A-D fit together.
Figures 162A-D (sheets 157 and 167-170) are detailed schematic diagram~ of the input-output register and gating control circuits employod in the input-output control unit of Figure 3.
Figure 162' is- a figure map showing how the detailed schematic diagrams of Figures 162A-D fit together.
Figure 163 is a schematic diagram of the source and relation~hip of the input-output party lines connected to the peripheral interface module receiving receptacles of Figure 2.
Figure 164 i9 a waveform diagram illustrating the operation of the control section of the input-output control unit of Figures 3A-B and 140A-C.
Figure 165 is a flow chart illustrating the operation of the control section of the input-output control unit of Figures 3A-B and 140A-C.
Pigure 166 is a schematic diagram of the address code decoding for the output selection portion of the interface modules employed with the input-output control unit of Figures 3A-B.
Figure 167 i9 a chart listing and defining all of the input-output lines of the input-output control unit of Figures 3A-B.
1~;)5~67 Figure 168 is a wa~eform diagram o~ some of the out-put signals employed by the inp~t-out~ut control unit and . associated interface modules of Figures 3A-B.
Figure 169 is a ~aYeform diagram of some o~ the input signals employed by the input-output control unit and associated inter~ace modules of Figures 3A-B.
Figure 170 is a waveform diagram illustrating the operation of the interrupt mode o~ operation o~ the input-output control unit of Figures 3A-B.
Figure 171 i8 a schematic diagram of logic that may be used to interface an output peripheral to the input-output control unit of Figures 3A-B.
Figure 172 is a schematic diagram o~ logic that may be used-to interface an input peripheral to the input-output control unit o~ Figures 3A-B.
Figure 173 iB a schematic diagram o~ logic t~at may beiused to int~erface an interrupting peripheral to the input-o~tput control unit o~ Figures 3A-B.
Figures 174A-D (sheets 157 and 178-1811 are detalled schematic diagram~ of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 174' is a figure map showing how the detailed schematic diagrams of Figures 174A-D fit together.
Figure 175 (sheet 180) is a schematic diagram of one of the transformer pairY employed in the keyboard input u~it of Figure~ 174A-D.
Figure 17B is a pictorial view of a transformer employed i3 the keyboard i~put unit o~ Figures 3A-B.
Figure 177 is a schemat~c diagram of the transformer Of Figure 176.
Figure 178 is a schematic diagram o~ a portion o~ the .keyboard input u~it of Figures 174A-D.
..... , ~
..
~ .
1058'7f~7 figure 17~ ~sneet -l79) illustrates the required polarities for the drive and sense l.nes e~ployed i-n the-k~yboard input unit of Figures 3A-B and 176.
Figure 180 is a block diagram of the magnetic card reading and recording unit employed in the calculator of Figures 1, 2, and 3A-B.
Figures 181A-G are schematic diagrams of the magnetic card reading and recording unit of Figure 180.
Figure 181' is a figure map showing how the detailed schematic diagrams of Figures 181A-G fit together.
Figure 182 is a block diagram illustrating how the magnetic card reading and recording unit of Figures 180 and 181A-G interacts with the calculator of Figures 1, 2, and 3A-B.
Figure 183 is a block diagram of the output display unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
.Figures 184A-B are detailed schematic diagrams of the output display unit of Figure 183.
Figure 184' is a figure map showing how the detailed schematic diagram of Figures 184A-B fit together.
Figure 185 is a block diagram of the output printer unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 186 is a cross-sectional view taken along the line A-A in Figure 185.
Figures 187A-B (sheets 191, 197, and 198) are detailed schematic diagrams of the thermal printing head, isolation diodes, four group drivers, and one-of-ten decoder of Figure 185.
Figure 187' is a figure map showing how the detailed schematic diagrams of Figures 187A-B fit together.
Figure 188 is a partial plan view of the thermal printing head of Figure 185.
~ -38-~058767 - Figures 189A-D are detailed schematic diagrams of the twenty dot drivers, the internal ten-bit shift register, the moto, dri~ers, the motor drive control circuit, and the printer timing circuit of Figure 185.
Figure 190 is a figure map showing how the detailed schematic diagrams of Figures 189A-D fit together.
Figures l91A-B (sheets 191, 204,and 205) are detailed schematic diagrams of the motor drivers of Figure 185.
Figure 191' is a figure map showing how the detailed schematic diagrams of Figures l91A-B fit together.
Figure 192 illustrates how the output printer unit of Figures 185-131 prints out each character.
Figure 193 is a flow chart illustrating the printing operation of the output printer unit of Figures 185, 186, 187A-B, 188, 189A-D, and l91A-B.
Figure 194 is a block diagram of the power supply system employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 195 is a detailed schematic of the five volt power supply of Figure 194.
Figure 196 is a detailed schematic diagram of the sixteen, twenty, and twenty-four volt power supplies of Figure 194.
Figures 197A-B are detailed schematic diagrams of the positive and negative twelve volt power supplies of Figure 194.
Figure 198 (sheet 206) is a schematic diagram of an alternative ripple signal circuit that may be employed in the power supply of Figure 195.
Figures l99A-B are block diagrams of an interface module that may be employed to interface a typewriter to the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 199' is a figure map showing how the block diagrams of Figures l99A-B fit together.
Figures 200A-C are schematic diagrams of the interface module of Figures l99A-B.
Figure 200' is a figure map showing how the schematic diagrams of Figures 200A-C fit together.
,, :-Description of the Pre~erred Embodiment GENERAL DESCRIPTION
Referring to Figures 1 and 2, there is shown an adaptable programmable calculator 10 including both a key-board input unit 12 for entering information into and controlling the operation of the calculator and a magnetic card reading and recording unit 14 for recording informa-tion stored within the calculator onto one or more ex-ternal magnetic cards 16 and for subsequently loading the information recorded on these and other similar magnetic cards back into the calculator. The calculator also includes a solid state output display unit 18 for displaying three lines of numeric information stored within the calculator and a group of indicator lights 19, serving as part of the keyboard input unit, for indicating the status of the calculator. It may also include an output printer unit 20 for pri~ting out alphameric information on a strip of thermal-sensitive recording paper 22. All of these input and output units are mounted within a single calculator housing 24 adjacent to a curved front panel 26 thereof.
As shown in Figure 2, a plurality of peripheral input and output units Z8 including, for example, a digi-tizer, a marked card reader, an X-Y plotter, and a type-writer may be connected to the calculator at the same time by simply inserting interface modules 30 associated with the selected peripheral units into any of four receptacles 32 provided therefor in a rear panel 34 of the calculator housing. As each interface module 30 is inserted into one of these receptacles, a spring-loaded door 38 at the en-trance of the receptacle swings down allowing passage of l~S8767 the interface module. Once thc interface module is fully inserted, a printed-circuit terminal board 40 contained within the interface module plugs into a mating edge connector mounted inside the calculator. If any of the selected peripheral units require AC line power, their power cords may be plugged into any of three AC power outlets 42 provided therefor at the rear panel of calculator housing 24.
Referring to the simplified block diagram shown in Figure 3, it may be seen that the calculator also includes an input-output control unit 44 (hereinafter referred to as the I/O control unit) for controlling the transfer of information to and from the input and output units, a memory unit 46 for storing and manipulating information entered into the calculator and for storing routines and subroutines of basic instructions performed by the calculator, and a central processing unit 48 (hereinafter referred to as the CPU) for controlling the execution of the routines and subroutines of basic instructions stored in the memory unit as required to process informa-tion entered into or stored within the calculator. The calculator also includes a bus system comprising an S-bus 50, a T-bus 52, and an R-bus 54 for transferring information from the memory and I/O control units to the CPU, from the CPU to the memory and I/O control units, and between different portions of the CPU. It further comprises a power supply for supplying DC
power to the calculator and peripheral units employed therewith and for issuing a control signal POP when power is supplied to the calculator.
The I/O control unit 44 includes an input-output .
~058'767 register 56 (hereinafter referred to as the I/0 register), associated I/0 gating control circuitry 58, and input-output control logic 60 (hereinafter referred to as the I/0 control), I/0 register 56 comprises a universal six-teen-bit shift register into which information may be transferred either bit-serially from CPU 48 via T-bus 52 or in parallel from keyboard input unit 12, magnetic card reading and recording unit 14, and peripheral input units 28 such as the marked card reader via twelve input party lines 62.
Information may also be transferred from I/0 register 56 either bit-serially to CPU 48 via S-bus 50 or in parallel to magnetic card reading and recording unit 14, solid state output display unit 18, indicator lights 19, output printer unit 20, and peripheral output units 28 such as the X-Y plotter or the typewriter via sixteen output party lines 64.
I/0 gating control circuitry 58 includes control circuits for controlling the transfer of information into and out of I/0 register 56 in response to selected I/0 qualifier control signals from CPU 48 and selected I/0 control instructions from I/0 control 60. It also includes an interrupt control circuit 65. a peripheral control circuit 66, a magnetic card control circuit 67, a printer control circuit 68, a display control circuit 69, and -an indicator control circuit 70 for variously controlling the input and output units and issuing control signals QFG and EBT to I/0 control 60 via two output lines 71 and 72. These last mentioned control circuits variously perform their control functions in response to control signal F~F from the power supply, I/0 qualifier control signals from CPU 48, I/0 control instructions from I/0 control 60, and control signals from keyboard input unit 12. Inter-rupt control circuit 65 10587~7 initiates the transfer of information into I/0 register 56 from keyboard input unit 12 or interrupting peripheral in-put units 28 such as the marked card reader and issues a qualifier control signal QNR to CPU 48 via output lines 73.
Peripheral control circuit 66 enables interface modules 30 plugged into the calculator to respond to information from I/0 register 56, control associated peripheral units 28, transfer information to and/or receive information from associated peripheral units 28, and in some cases initiate the transfer oi information to I/0 register 56 from the interface modules themselves. Magnetic card control circuit 67 enables magnetic card reading and recording unit 14 to respond to information in I/0 register 56 and either read information into I/0 register 56 ~rom a magnetic card 16 or record information onto a magnetic card 16 from I/0 register 56. Printer control circuit 68, display control circuit 69, and indicator control circuit 70 enable output display unit 18, output printer unit 20, and indicator lights 19, respectively, to respond to information from I/0 register 56.
When a basic I/0 instruction obtained from memory unit 46 is to be executed, CPU 48 transfers control to I/0 control 60 by issuing a pair o~ I/0 microinstructions PTR
and XTR thereto. In response to these I/0 microinstructions i'rom CPU 48, control signal F~F from the power supply, control signals QFG and EBT from I/0 gating control circuitry 58, and I/0 quali~ier and clock control signals from CPU 48, I/0 control 60 selectively issues one or more I/0 control in-structions to gating control circuitry 58 as required to e~ecute the basic I/0 instruction designated by CPU 48 and 105~767 issues control signals m, ~T~, QRD, and SCB to CPU 48 via output lines 74-77. The I/O qualifier control signals issued to I/O control 60 and gating control circuitry 58 by CPU 48 are derived from the basic I/O instruction to be executed. Those qualifier control signals issued to I/O
control 60 designate the specific I/O control instructions to be issued by I/O control 60, while those issued to gating control circuitry 58 designate selected control circuits to be employed in executing the basic I/O instruction Memory unit 46 includes a modular random-access read~write memory 78 (hereinaPter referred to as the RWM), a modular read-only memory 80 (hereinafter re~erred to as the RO~), a memory address register 82 (hereina~ter re-ferred to as the M-register), a memory access register 84 (hereinafter referred to as the T-register), and control circuitry 85 for these memories and registers. ~WM 78 and ROM 80 comprise MOS-type semiconductor memories. As shown in the memory map of Figure 4, they are organized into eight l,024-word pages. The basic RWM 78 contains a data storage section 86 of 512 sixteen-bit words extending from address 1000 to address 1777 on page O and a separate pro-gram storage section 88 of 512 six-bit words extending from address 12000 to address 12777 on page 5. All addresses on the memory map are represented in octal formO
Data storage section 86 contains 49 four-word storage registers available to the user (as user addresses 000-048) for manipulating and storing data, 60 additional four-word storage registers that may be made available to the user (as user addresses 049-108) for the same purpose, and 76 words dedicated ~or use by CPU 48. The 60 additional four-word storage registers may be made available to the ' ';
1051~7~7 user by altering a control routine in the R0~ section 80.
This is accomplished by removing a top panel 90 o~ the calculator housing shown in ~igure 1, removing a printed circuit board.containing the contro} routine to be altered, and substituting another printed circuit ~oard containing the altered control routine. Additional data storage modules made a~ailable to the user are automatically ac-commodated by the calculator.
As shown in the more detailed memory map o~ Figure 6, the dedicated portion o~ data storage section 86 includes 12 words (addresses 1750-1753, 1740-1743, and 1760-1763) employed as "~", "Y", and "Z" ~our-word worklng registers ava~lable to the user and 8 words (addresses 1764-1773) employed as "a" and "b" four-word storage registers available to the user. It also includes 8 words (addresses 1744-1747 and 1754-1757) employed as "ARl" and 'tAR2" ~our-word working registers for per~orming binary-coded-decimal arithmetic;
12 words (addresses 1664-1677) employed as three t"Tl"', "T2"', and "T3"') or more temporary storage registers in connection with a de~inable section 91 of keyboard input unit 12 (see Figure 1); 16 words (addresses }720-1737) employed as ~our ("Tl", "T2", "T3", a~d "T4") or more tem-porary storage registers in connection with the remaining sections o~ the ~eyboard input u~it; 7 words (addresses ln 1-1717) employed.as a variable-length "system subroutine stack" ~or storlng return addresses re~uired by programs stored in R0~ 80 and as temporary s-torage ~or housekeeping - n~ormation required by CP~ 48; one word (address 1777) em-.
ployed as a "syste~ stack pointer"; 5 words (addresses 1702-1706)-employed as a "user subrout~ne stac~" ~or storing 1058~
return addresses required by programs entered into program storage section 88 of RWM 78 by the user; 1 word (address 1710 employed as a "user stack pointer", 1 word (address 1701) employed as a "user program counter" for program steps entered into program storage section 88 by the user; 1 word (address 1707) employed as an "address of user 00~0" register for storing the first address available to the user in program storage section 88; 1 word (address 1700) employed as a "microprocessor store" register for storing housekeeping information required by CPU 48; 1 word (address 1774) employed as an "interrupt store" register for storing information displaced from CPU
48 by some keyboard entries; 1 word (address 1775) employed as an "input buffer" register for storing keyboard information awaiting entry into CPU
48, and 1 word (address 1776) employed as a "status word" register for storing information regarding the present.state of the calculator.
As shown in the memory map of Figure 4, program storage section 88 of RWM 78 contains 500 one-word program step registers available to the user (as user addresses 0000-0500) for storing programs and 12 words dedicated for use by CPU 48. An additional 1,536 one-word program-step registers may be made available to the user (as user addresses 0511-2036) in steps of 512 words (addresses 13000-13777) and 1iO24 words (addresses 14000 to 15777).
This is accomplished by removing top panel 90 of the calculator housing shown in Figure 1 and plugging additional program storage modules into the calculator. Added program storage modules are automatically accommodated by ~he calculator.
As shown in the more detailed memory map of Figure 6, the dedicated portion of program storage section 88 1058'~;7 includes 1 word (address 12013) employed as a "security word" register for storing a code designating a program stored in program storage section 88 as being secure. It also includes 1 word (address 12000) employed as an "exe-cution flag" register for storing information indicating whether CPU 48 is being controlled by a program stored in the program storage section or by the keyboard input unit;
2 words (addresses 12001-12002) employed as "normalize flag" and "print flag" registers for storing information about numeric data being processed by CPU 48; 3 words (addresses 12003-12005) employed as "temporary display" re-gisters for storing housekeeping information about the character position, decimal position, and register loca-tion of numeric information being displayed by the output display unit; 1 word (address 12006) employed as a "print code buffer" register for storing housekeeping information about alphameric information being printed out by the out-put printer unit; and 4 words (addresses 12007-12012) available for other uses.
As shown in the memory map of Figure 4, the basic ROM 80 contains 2,048 sixteen-bit words extending from address 0000 to address 0777 on page 0, from address 4000 to address 5777 on page 2, and from address 16000 to address 16777 on page 7. Routines and subroutines of basic in-structions for performing the basic functions of the cal-culator and constants employed by these routines and sub-routines are stored in these portions of ROM 80. An ad-ditional 3,072 sixteen-bit words of ROM may also be added on pages 1, 3, and 4 in steps of 512 and 1,024 words. This is accomplished by simply inserting plug-in ROM modules 92 lV58'76;7 into receptacles 94 provided therefor in top panel 90 of the calculator housing as illustrated in Figure 1 by the partially-inserted plug-in ROM
module on the left. As each plug-in ROM module 92 is inserted into one of these receptacles a spring-loaded door 95 at the entrance of the receptacle swings down allowing passage of the plug-in ROM module. Once the plug-in ROM module is fully inserted as illustrated by the plug-in ROM module on the right, a printed circuit terminal board 96 contained within the plug-in ROM module plugs into a mating edge connector mounted inside the calculator.
A handle 98 pivotally mounted at the top end of each plug-in ROM module 92 facilitates removal of the plug-in ROM module once it has been fully inserted into one of the receptacles 94.
Routines and subroutines of basic instructions (and any needed constants) for enabling the calculator to perform many additional functions are stored in each plug-in ROM module 92. The user himself may therefore quickly and simply adapt the calculator to perform many additional functions oriented toward his specific needs by simply plugging ROM modules of his own choosing into the calculator. Added plug-in ROM modules are automatically accommodated by the calculator and associated with definable section 91 of keyboard input unit 12 or employed to expand the functions performed by this and other sections of the keyboard input unit.
Referring again to Figure 3, M-register 82 of the memory unit com-prises a recirculatlng sixteen-bit serial shift register into which information may be transferred bit-serially from CPU 48 via T-bus 52 and out of which information may be transferred bit-serially to CPU 48 via S-bus 50. In-formation shifted into M-register 82 may be employed to address any word in RWM 78 or ROM 80 via fifteen output lines 106.
T-register 84 of the memory unit comprises a recirculating six-teen bit serial shift register into which information may be transferred either bit-serially from CPU 48 via T-bus 52 or in parallel from any ad-dressed word in RWM 78 and ROM 80 via sixteen parallel input lines 108.
Information may be transferred from T-register 104 either bit-serially to CPU 48 via S-bus 50 or in parallel to any addressed word in RWM 78 via sixteen parallel output lines 110. The four least significant bits of information con-tained in T-register 104 may comprise binary-coded-decimal information and may be transferred from the T-register in parallel to CPU 48 via three parallel output lines 112 taken with S-bus 50.
The control circuitry 85 of the memory unit controls these transfers of information into and out of M-register 82 and T-register 84, controls the addressing and accessing of RWM 78 and ROM 80, and refreshes RWM 78. It performs these functions in response to memory microinstructions, memory clock pulses, and shift clock pulses from CPU 48.
CPU 48 includes a register unit 114, an arithmetic-logic unit 116 (hereinafter referred to as the ALU), a programmable clock 118, and a micro-processor 120. Register unit 114 comprises four recirculating sixteen-bit shift registers 122, 124, 126, and 128 and one four-bit shift register 130.
Shift registers 122 and 124 serve as sixteen-bit lOS~767 serial accumulator registers (hereinafter referred to as the A-register and the B-register, respectively) into which information may be transferred bit-serially from ALU
116 via T-bus 52 and out of which information may be trans-ferred bit-serially to ALU 116 via ~-bus 54. The four least significant bit positions of A-register 122 also serve as a four-bit parallel accumulator register into which four bits of binary-coded-decimal information may be transferred in parallel from ALU 116 via four parallel input lines 132 and out of which four bits of binary-coded-decimal informa-tion may also be transferred in parallel to ALU 116 via three parallel output lines 134 taken with ~-bus 54.
Shift register 126 serves as a sixteen-bit system program counter (hereinafter referred to as the P-register) into which information may be transferred bit-serially from ALU 116 via T-bus 52 and out of which information may be transferred bit-serially to ALU 116 via ~-bus 54. In-formation contained in the least significant bit position of P-register 126 may also be transferred as a qualifier control signal QP0 to microprocessor 120 via output line 135.
Shift register 128 serves as a sixteen-bit qualifier register (hereinafter referred to as the Q-register) into which information may be transferred bit-serially from ALU
116 via T-bus 52 and out of which information may be trans-ferred bit-serially to ALU 116 via ~-bus 54. Information contained in the five least-significant bit positions of Q-register 128 is transferred to I/0 gating control circultry 58 as five one-bit I/0 qualifier control signals Q00-Q04 via five parallel output lines 136, and information contained in the six next-least-significant bit positions -49~
105~3767 of the Q-register is transferred to I/0 control 60 as six one-bit I/0 qualifier control signals Q05~Q10 via six parallel output lines 138. Similarly, information contained in the seven least-significant, the ninth and eleventh least-significant, and the most-significant bit positions of Q-register 128 and information derived from the thirteenth, fourteenth, and fifteenth bit positions of the Q-register may be transferred to microprocessor 120 as eleven one-bit microprocessor qualifier control signals Q00-Q06, Q08, Q10, Q15, and QMR via eleven output lines 140. Information contained in the twelfth through the fifteenth least-significant bit positions of Q-register 128 may be trans-ferred to microprocessor 120 as a four-bit primary address code via four parallel output lines 142.
Shift register 130 serves as a four-bit serial extend register (hereinafter referred to as the E-register) into which information may be transferred bit-serially either from ALU 116 via T-bus 52 or from the least-significant bit position of T-register 84 via input line 144. In-formation may also be transferred out of E-register 130 to ALU 116 via ~-bus 54.
Register unit 114 also includes control circuitry 146 for controlling the transfer of parallel binary-coded-decimal information into and out of A-register 122 and the transfer of serial binary information into and out of A-register 122, B-register 124, P-register 126, Q-register 128, and E-register 130. This is accomplished in response to register microinstructions from microprocessor 120, control signals 11~ and 2Tg from I/0 control 60, and shift clock control pulses from programmable clock 118.
1~)587~:;7 Control circuitry 146 includes a ~lip-flop 148 (hereinafter re~erred to as the A/B flip-flop) for enabling the transfer of information into and out of either the A-register 122 or the B-register 124 as dPtermined by the state of the A/B
flip-flop. The state of A/B flip-flop 148 is initially determined by information Qll transferred to the A/B ~lip-flop from the twelfth least-significant bit position of Q-register 128 but may be subsequently complemented one or more times by microinstruction CAB from microprocessor 120.
ALU 116 may perform either one-bit serial binary arithmetic on data received from T-register 84 or M
register 82 via ~-bus 50 and/or from any register of register unit 114 via ~-bus 54 or four-bit parallel binary-coded-decimal arithmetic on data received from T-register 84 via output lines 112 taken with ~-bus 50 and/or from A-register 122 via output lines 134 taken with ~-bus 54.
It may also perform logic operations on data received from memory unit ~6 and/or register unit 114 via any of these lines. The arithmetic and logic operations performed are designated by ALU microinstructions from microprocessor 120 and are carried out in response to these microinstructions, shift clock control pulses from programmable clock 118, and control signal SCB from I/0 control 60. Information is also transferred ~rom ALU 116 to A-register 122 ~ia output lines 132 or to I~0 register 56, M-register 82, T-register 84, or any register of register unit 114 via T-bus 52 in response to microinstructions and control signals applied to these registers. If a carry results while ALU 116 iS performing either one-bit serial binary arithmetic or four-bit parallel binary-coded-decimal arithmetic, the ALU issues a corresponding quali~ier control sl~nal QBC and QDC to microprocessor 120 via one of t~o output lines 152 and 154.
Programmable cloc~ 118 includes a crystal-co~trolled system cloc~ 156, a cloc~ decoder and generator 158, a~d - a control gate 160. System clock 156 issues regularly re-curring clock pulses to clock decoder and generator 158 ~ia output l~ne 162. In response to these regularly recurring cIock pulses ~rom system cloc~ 156 and to four-bit clock codes from microprocessor 120, clock decoder and generator 158 issues trains o~ n shi~t clock pulses to A~ 116, M-register 82, T-register 82, and all o$ the registers o~
register unit 114 via output line 164. These trai~s of n shi~t clock pulses are employed for shi~ting a corresponding number of bits o~ serial in~or~tatio~ into or out cf any o~
these registers or ~or shifting a carry bit in the AL~. The ~um~er ~ o~ pulses in eacn OT nese trains may vary from one to si~teen as determined by the n~mber o~ bits o~ serial ~n~ormation required during eac~ operation to be per~ormed.
In response to a control signal CC~ ~rom microprocessor 120, control gate i60 prevents any shi~t clock pulses ~rom being - appl~ed to the AL~ or any o~ these registers. ~pon comple~ion o~ each trai~ of n shi~t clGck pulses, cloc~ decoder and generator 158 issues a Ra~S clock pulse to microprocessor 120 via output line 166 and an I/0 clock pulse to.I/0 control 60 via output line 168. In response to the regularly re- -. . curring.cloc~ s~gna} ~rom system clock.56, clock decoder and generator 1~8 alsQ ~ssue~ correspo~dingly regularly recurring -.. . ........................... . .
me r~ clock puljses to memory un~t ~6 ~ia output.line 170.
. -. ~icroprocessor 120 selectively lssues two I/0 microinstruct~ons to I/0 control 60 ~ia two output li~es _52-lOS87~;~
172, six memory microinstructions to memory unit 46 via six output lines 174, thirteen register microinstructions to register unit 114 via thirteen output lines 176, and five ALU microinstructions to ALU 116 via five output lines 178. It also issues a four-bit clock code associated with each of these microinstructions to clock decoder 158 via four output lines 180. These microinstructions and associated clock codes are issued as determined by the control signal POP from the power supply, the eleven microprocessor quali-fier control signals from Q-register 128, the four-bit primary address codes from Q-register 128, and the five microprocessor qualifier control signals from I/O control 60, interrupt control 65, ALU 116, and P-register 126.
As shown in the simplified flow chart of Figure 7, microprocessor 120 executes a hardware diagnostic routine (stored within the microprocessor itself) in response to the control signal POP. Upon completion of this diagnostic routine, ALU 116 issues the qualifier control signal QBC in-dicating whether or not the diagnostic routine was suc-cessful, microprocessor 120 thereupon responds to this qualifier control signal by entering the basic machine operating loop and issuing microinstructions causing a six-teen-bit instruction stored in ROM 80 to be loaded into T-register 84 and transferred from there to Q-register 128.
Microprocessor 120 thereupon sequentially responds to one or more additional qualifier control signals by issuing microinstructions and associated clock codes for executing the instruction then contained in Q-register 128 and causing another sixteen-bit instruction stored in ROM 80 to be loaded into T-register 84 and transferred from there to the 1058~ 7 Q-register. When an instruction requiring multiple branching is contained in Q-register 128, microprocessor 120 issues a pair of microinstructions ~ and 2~ causing the micro-processor to respond to a four-bit primary address code from the Q-register by issuing additional microinstructions and associated clock codes for executing the instruction contained in the Q-register.
As illustrated by the basic machine operating loop shown in the flow chart of Figure 7, microprocessor 120 initially responds to the qualifier control signal QNR
either by issuing microinstructions and associated clock codes for interrupting the basic machine operating loop and executing an I/0 ser~ice routine or by issuing microinstruc-tions and associated clock codes for loading A/B flip-flop 148 with the information Qll contained in Q-register 1280 The manner in which microprocessor 120 responds is deter-mined by the condition of the qualifier control signal QNR, which in turn indicates whether or not the basic machine operating loop should be interrupted.
Assuming the basic machine operating loop is not to be interrupted, microprocessor 120 loads the information Qll into A/B flip-flop 148 and responds to the qualifier control signal QMR either by issuing microinstructions for transferring an address portion of the instruction contained in Q-register 128 ~rom T-register 84 into M-register 82 or by responding to another qualifier control signal Q15.
Again, the manner in which microprocessor 120 responds is determined by the condition of the qualifier control signal Q~R, which in turn indicates whether or not the instruction contained in Q-register 128 is a memory reference instruction.
;~
lOS8~7~;~
Assuming the instruction contained in Q-register 128 is a memory reference instruction, microprocessor 120 $ransfers the required address information into the ~-register 82 and responds to qualifier control signal Q10 either by issuing microinstructions and associated clock codes to select the base page of the memory (i.e. page 0) or by issuing microinstructions and associated clock codes to select the current page of the memory (i.e. the page irom which the instruction contained in Q-register 128 was obtained). In either case, the microprocessor then issues microinstructions as required to read data from the preset page of the memory at the addrsss designated by the address ~nformation last trans~erred into ~-register 82. Upon completion of this operation, microprocessor i20 responds to quali~ier control signal Q15 by issuing additio~al micro-instructions and associ ted clock codes to execute a~ in-direct memory access operation ii the condition of this quali~ier control signal indicates that the address informa-tio~ contained in ~-register 82 is lndirect.
~ssuming the address information contained in M-register 82 is direct (or upon completion of the indirect memory access operation), microprocess~r 120 issues micro-instructions and associated clock codes causing the micro-processor itself to respond to a four-bit primary address code from the Q-register. The microprocessor responds by issuing additionai microinstructions and associated cloc~ codes ~or executing whichever one of ten possible memory reference instructions is contained ~n Q-register 128 and designated by the four-~it primary address code.
.. . . . . . .
Following execution o~ the designated memory reference 1058'~7 instruction, microprocessor 120 issues microinstructions and associated clock codes causing another sixteen-bit instruction stored in ROM 80 to be loaded into T-register 84 and trans-ferred from there to Q-register 128 thereby beginning another cycle of the basic machine operating loop.
As illustrated by other possible paths of the basic machine operating loop shown in Figure 7, microprocessor 120 sequentially responds to other qualifier control signals when other types of instructions are contained in Q-register 128. For example, when an I/O instruction is contained in Q-register 128, microprocessor 120 sequentially responds to quallfier control signals QNR, QMR, Q15, Q10, and QRD by issuing microinstructions and associated clock codes to execute the I/O instruction. It should be noted that the microprocessor qualifier control signals not shown in the simplified flow chart of Figure 7 are variously contained within those flow chart blocks requiring decisions as will hereinafter become apparent. . -10587~7 KEY OPERATIONS
All operations performed by the calculator may be controlled or initiated by the keyboard input unit and/or by keycodes entered into the calculator ~rom the keyboard input unit, the magnetic card reading and recording unit, or peripheral input units such as the marked card reader and stored as program steps in the program storage section of the RWM. The calculator responds to keycodes in basically the same manner whether obtaining them from the keyboard input unit or from the program storage section o~ the RW~.
An operational description o~ the keyboard input unit is there~ore now given with speci~ic re~erence to Figures 1 and 8 e~cept as other~ise indicated.
Line Switch .
An on-off line switch 182, which may be considered as part of the keyboard input unit, controls the applica-tion of.power to the calculator and hence initiation of the control signal PoP ~rom the power supply. The ~ndicator l~ghts 19 serve as a pilot light since at least two Qf them are alwa~s turned on while power is applied to the cal-~ulator.
As shown in Figure 2, the calculator may be operated at 230, 200, 115, or 100 volts ~ 10% as determi~ed by a pair o~ line voltage selector switches mounted at rear panel 34 o~ the calculator housing and at a line frequency within the range o~ 48 to 66 Hertz. The calculator is provided with a 6-amp ~use and either a l-amp fuse for operat~o~ at a line voltage of 200 3r 230 volts i 10Z or a 2-amp ~use ~or opera-tion at a line voltage o~ 100 or 115 volts + 10%. It is also provided with a three-con~uctor power cable 184 which, 1058~
when plugged into an appropriate AC power outlet, grounds the calculator housing. The maximum power consumption o~
the calculator is 150 voltamps. No more than a total of 610 voltamps may be drawn from AC power outlets 42 pro-vided for peripheral units 28.
~ode Keys (RUN. PRGM KEY LOG) When the calculator is first turned on, it is automatically initialized and placed in a manual operating mode. If the calculator is switched to some other opera-ting mode, it may subsequently be placed in the manual operating mode again by simply depressing the RUN mode key.
In the manual operating modej operation of the calculator is manually controlled by the user from the keyboard input unit. During this mode the output display unit displays a decimal numeric representation of the contents of the x-, y-, and z-registers (or of associated memory registers in which the actual or intended contents of the x_, y-, and z-registers are temporarily stored and, ~or simplicity of description, are then considered to be the contents of the x-, y-, and z-registers). The contents of the x-, y-, and z-registers are displayed ad;acent to the corresponding register designators "keyboard x","accumulator y", and "temporary z", respectively, in the display window. De-pression of the RUN mode key also conditions the calculator for operation in an automatic operating mode, a first key-log printing mode, a program-list printing mode, a magnetic card reading mode, and a magnetic card recording mode as determined by other keys hereinafter explained. A run in-dicator light 19 positioned immediately below the RUN mode key is turned on when the calculator is operating in any .
.... .
. , .
- ~o5t~7~7 of the R~N modes.
The PRG~ mode key iq depressed to place the cal-culator in a program entering mode. In this mode keycodes seguentially entered by the user from the keyboard input unit are stored as program steps in successive program-step registers of the program storage section o~ the RWM as specified by the user program counter. As described above, 500 program-step registers (user addresses 0000-0499) are a~ailable, and 1536 additional program-step registers (user addresses (0500-2035) may be made available, to the user ~or this purpose. The program step register into which each program step is to be stored and from which each program step is to be obtained in any program-related operation is al~ays speci~ied by the user program counter. Thus, be~ore entering a program or subprogram into the calculator, the user program counter must be set to the address o~ the pro-- gram step register into ~hich it is desired to store the initial program step o~ the program or subprogr~m to be entered (this address is hereinafter re~erred to as the de-sired starting address nnnn of the program). This may be ac-complished, when the calculator is in a keyboard-controlled run mode, by depress~ng the GO TO ~ey followed by the decimal-digit keys 0-9 specifying the desired starting address nnnn of the program.~ -If the desired starting address is 0000, this may also be accompl~she~, when the calculator is in the manual operating mode by simply depressing the END
key Once the user program countex is set to the desired startin~ address nnnn, the user may proceed to enter the pro-gram or subprogram by sequentially performing basically the ., -.. . .
- . -lOS~767 same key operations that he would normally perform in the manual operating mode. Thus no special language need be learned to program the calculator. During the program entering mode the output display unit displays a decimal numeric representation of the last-entered program step and its associated address and the addresses o~ the next two program steps to be entered and the present contents o~
those addresses.
Depression of the PRGM mode key also conditions the calculator for operation in a second key-log printing mode and the program-list printing mode as determined by other keys hereina~ter explained. A program mode indicator light 19 positioned immediately below the PRGM mode key is turned on when the calculator is operating in any of the PRGM
modes.
The KEY LOG mode key is depressed, when the cal-culator is in the manual operating mode, to place the cal-culator in the first key-log printing modeO In this mode, the output printer unit prints out an octal numeric repre-sentation o~ each keyboard operation as it is per~ormed by the user. This provides a permanent record of all keyboard operations (including regular data print-out operations), as illustrated by the following example:
Keyboard entry Key log ~ 27
In some conventional programmable calculators a pro-gram stored within the calculator can be recorded onto an external magnetic record member and can later be reloaded back into the calculator ~rom the magnetic record member.
~owever, data and programs stored within these calculators typically cannot be separately recorded onto an external magnetic record member and later separately reloaded back in~o the calculator therefrom. Moreover, these calculators have no provision for making a program secure when it is recorded onto an external magnetic record member. Any user may therefore re-record the program or obtain an indication of the individual program steps once the program is reloaded into the calculator.
Conventional programmable calculators with self-contained output printer units typically have a very limited alpha capability of only a few selected characters confined to certain columns of the printer. They are therefore typi-cally unable to print out both a numeric and a distinct mnemonic representation of every program step of every pro-gram stored within the calculator Furthermore, they are typically unable to print out labels for inputs to and out-puts from the calculator or messages informing the user how to run programs with which he may be unfamiliar. Such features would be very helpful to the user both in editing programs and in simplifying their use.
In som~ conventional programmable calculators a pro-gram stored within the calculator may be edited by single stepping ~orward through the program while viewing an output ~V5~7~7 display representing the last-encountered program step and its associated address and, in one case, also the presently-encountered program step and its associated address. How-ever, these calculators typically cannot single step back-ward through the program or display the next program step 1~ to be encountered and its associated address. Moreover, they typically have no provision for inserting program steps into the program without reloading portions of the program and no provision for finding every occurrence of any de-signated program step. Such features would also be very helpful to the user in editing programs.
Conventional computer systems have or may be pro-grammed to have much more capability than conventional pro-grammable calculators. However, they are larger, more ex-pensive, and less efficient in calculating elementary mathematical fun~tions than conventional programmable cal-culators. ~oreover, a skilled programmer is typically required to utilize them. ~ue to these factors, conventional computer systems are best suited for handling large amounts of data or making highly iterative or very complex mathema-tical calculations.
Summary of the Invention An object of an aspect of this invention is to provide an improved programmable calculator that has more capability and flexibility than conventional programmable calculators and that is smaller, less expensive, more efficient in cal-culating elementary mathematical functions, and easier to ~utilize than conventional computer systems.
An object of an aspect of this invention is to provide a programmable calculator in which the amount of program ~ o5~7~7 and data storage memory available to the user may be sepa-rately expanded and in which additional program and data storage memory made available to the user is automatically accommodated by the calculator and the user informed when he has exceeded the capacity of either the program or data storage memory.
An object of an aspect of this invention is to provide a programmable calculator in which the functions performed by the calculator may be readily expanded by the user and oriented toward the environment of the user and in which the added functions are automatically accommodated by the cal-culator.
An object of an aspect of this invention is to provide a programmable calculator in which the user may define key-board functions to be performed by the calculator and may protect them from subsequently being inadvertently altered or destroyed.
An object of an aspect of this invention is to provide a programmable calculator capable of employing extensive in-direct addressing to permit efficient manipulation of filesand matrix operations.
~ n object of an aspect of this invention is to provide a programmable calculator in which the user may employ either absolute or symbolic addressing and in which program jumps or subroutine calls may be made to absolute or symbolic ad-dresses.
An object of an aspect of this invention is to provide a programmable calculator capable of performing both direct and indirect storage, recall, and e~change between working and storage memory registers.
.
l(~S~7ti7 An object of an aspect of this invention is to provide a programmable calculator capable of performing both direct and indirect arithmetic bidirectionally between working and storage memory registers.
An object of an aspect of this invention is to provide a programmable calculator capable of performing serial binary arithmetic, parallel-by-digit binary-coded-decimal arithmetic, and logic operations.
An object of an aspect of this invention is to provide a programmable calculator in which either programs or data stored within the calculator may be separately recorded on an external magnetic record member and, subsequently, sepa-rately reloaded back into the calculator therefrom.
An object of an aspect of this invention is to provide a programmable calculator in which the user may designate any program stored within the calculator as being secure when it is recorded onto an external magnetic record member for subsequent re-entry into the calculator and in which the user is prevented from re-recording any secure program or obtaining any indication of its individual program steps once it is reloaded into the calculator.
An object of an aspect of this invention is to provide a programmable calculator capable of printing out every alphabetic and numeric character and many other symbols in-dividually and in messages.
An object of an aspect of this invention is to provide a programmable calculator capable of printing out both a numeric and a mnemonic representation of each keyboard entry in a key-log listing.
An object of an aspect of this invention is to provide a ~051~767 programmable calculator capable of printing out a numeric representation of each numeric keyboard entry and calculated numeric result and a mark distinguishing each numeric key-board entry from each calculated numeric result.
An object of an aspect of this invention is to provide a programmable calculator capable of printing out both a numeric and mnemonic representation of each step in a program stored within the calculator and a numeric indication of the address of each program step in a program listing.
An object of an aspect of this invention is to provide a programmable calculator capable of editing programs stored within the calculator more efficiently than conventional programmable calculators.
An object of an aspect of this invention is to provide a programmable calculator in which the user may single step either forward or backward through an internally stored program in a program entering mode to check the program and may single step forward through the program in a program-controlled operating mode to check the program execution.
An object of an aspect of this invention is to provide a programmable calculator in which the last program step en-countered, the program step presently encountered, and the next program step to be encountered, while single stepping either forward or backward through a program stored within the calculator, may be displayed.
An object of an aspect of this invention is to provide a programmable calculator in which the usér may insert program steps and automatically locate every occurrence of a de-signated program step in a program stored within the calculator.
-7- ;
- - ~ ..
lOS871~7 Other and incidental objects of this invention will become apparent from a ^eading of this specification and an inspection of the accompanying drawings.
In accordance with one aspect of this invention there is provided an electronic calculator comprising: key-board input means including a plurality of keys for entering information, including programs and control commands, into the calculator, each of the plurality of keys having a mnemonic representation; memory means for storing information, including programs, that has been entered into the calculator;
processing means, coupled to the keyboard input means and memory means ! for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the mnemonic representations of the keys of the . keyboard input means; the keyboard input means including a key-log control key for selecting a key-log mode of ~ calculator operation; the processing means being responsive to selection of the key-log mode of calculator operation .
and to subsequent actuation of a key of the keyboard input means for causing the printer means to print the mnemonic representation of the actuated key.
In accordance with another aspect of this invention there is provided an electronic calculator comprising: key-board input means including a plurality of keys for entering information, including control commands and a program com-prising program steps, into the calculator, each program step having a numeric and a mnemonic representation; memory means for storing information, including a program comprising program steps, that has been entered into the calculator, , . . .
,"~ ",',,~, - ~ ~ ' .,,: ~ . . : . , ~05t~7~7 each stored program step having a separate numeric address;
processing means, cou~led to the keyboard input .neans and memory means, for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the numeric and mnemonic representations of each program step comprising a program stored in the memory means; the keyboard input means including a list control key for enter-ing a list control command into the calculator; the processing means being responsive to entry of a list control command for causing the printer means to print a program listing comprising the numeric and mnemonic representations of each program step comprising a program stored in the memory means together with the corresponding numeric address of each such progxam step.
Disclosed hereinafter is an embodiment in which there is employed a keyboard input unit, a magnetic card reading and recording unit, a solid state output display unit, an output printer unit, an input-output control unit, a memory unit and a central processing unit to provide an - adaptable programmable calculator having manual operating, automatic operating,program entering, magnetic card reading, magnetic card recording, and alphameric printing modes. The keyboard input unit includes a group of data keys for enter-ing numeric data into the calculator, a group of control keys for controlling the various modes and operations of the calculator and the format of the output display, and a group ~
of definable keys for controlling additional functions that ~.
30 may be added by the user. All of the data keys and nearly ;
all of the control keys may also be employed for programming ~ .
4 8a _ ~ 05B7~;7 the calculator, many of the control keys being provided solely for this pu~pose. The keyboard input unit also includes a group of indicator lights for informing the user of the status of the calculator. These indicator lights and all of the keys are mounted on a front panel of a housing for the calculator.
The magnetic card reading and recording unit in-cludes a reading and recording head, a drive mechanism for driving a magnetic card from an input receptacle in the front panel of the calculator housing past the reading and recording head to an output receptacle in the front panel, and reading and recording drive circuits coupled to the reading and ~.~;s' , , .. ..... . .
~ .
; ~05~7~i~
recording head for bidirectionally transferring information between the magnetic card and the calculator as determined by the control keys of the keyboard input unit. It al~o in-cludes a pair of detectors and an associated control circuit for disabling the recording drive circuit whenever a notch is detected in the leading edge of the magnetic card to pre-vent information recorded on the magnetic card from being inadvertently destroyed. Such a notch may be provided in any magnetic card the user desires to protect by simply pushing out a perforated portion thereof.
The solid state output display unit includes three rows of light emitting diode arrays and associated drive circuits for selectively displaying three separate lines of numeric information. Numeric data may be displayed in either a fixed or a floating point format as determined by the con-trol keys of the keyboard input unit.
The output printer unit includes a stationary thermal printing head with a row of resistive heating ele-ments, a drive circuit for selectively energizing each heating element, and a stepping mechanism for driving a strip of thermal-sensitive recording paper past the stationary thermal printing head in seven steps for each line of alphameric in-~ormation to be printed out. ~very alphabetic and numeric character and many other symbols may be printed out indivi-dually or in messages as determined by the control keys of the keyboard input unit or by a program stored within the calculator.
The input-output control unit includes a sixteen-bit uni-versal shift register serving as an input-output regi~ter into which information may be transferred serially from the central _g_ ~, ;:
:.. , processing unit or in parallel from the keyboard input and magnetic card reading and recording units and from which in-formation may be transferred serially to the central pro-cessing unit or in parallel to the keyboard indicator lights and to the solid state output display, magnetic card reading and recording, and output printer unitsO It also includes control logic responsive to the central processing unit for ~` controlling the transfer of information between these units.
The input-output control unit may also be employed to per-form the same functions between the central processing unit and peripheral units including, for example, a digitizer, a marked card reader, an X-Y plotter, a magnetic tape unit, and a typewriter. A plurality of peripheral units may be con-nected at the same time to the input-output control unit by simply plugging interface modules associated with the selected peripheral units into receptacles provided therefore in a rear panel of the calculator housing.
The memory u~it may employ both direct and indirect decimal and symbolic addressing. It includes a modular random-access read-write memory having a program storage section for storing a plurality of program steps and having a separate data storage section including a plurality of working registers, a plurality of associated display re-gisters, and a plurality of storage registers for manipulating and storing data. These program and data storage sections o~ the read-write memory may be separately expanded without increasing the overall dimensions of the calculator by the addition of program storagè modules or by the alteration of the data storage memory control. Additional r-ead-write memory made available to the user is automatically accommodated 1051~ 7 by the calculator, and the user is automatically informed ~hen the program or data storage capacity o~ the read-write memory has been exceeded.
The memory unit also i~cludes a modular read-only memory i~ which routines and subroutines of basic instruc-tions ~or per~orming the various functions of the calculator are stored. These routines and subroutines of the read-only memory may be expanded and adapted by the user to per-iorm additional functions oriented toward the specific needs o~ the user. This is accomplished by simply plugging ad-ditional read-only memory modules into receptacles provided there~or in the top pane o~ the calculator housing; Added read-only memory modules are automatically accommodated by the calculator a~d may be associated with the de~inable keys o~ the keyboard input unit or employed to e~pand the opera-tions associated with other keys. An o~erlay is employed with each added read-o~ly memory module associated with the de inable keys o~ the ~eyboard input unit to identi~y the additional ~unctions that may then be performed by the cal-culator.
Plug~i~ read-only memory modules lncluding, for ~ample, an alpha module, a mathematics module, a statistics module, a definable ~nctions module, and a typewriter module may be added to the read-only memory. The alpha m~dule en-ables the calculator to print out every alphabetic character indi~idually or In messages. ~t èmploys addressing e~abling it to redefine most of the keys of the keyboard input unit so that it may be employed at the sæme time as other plug-in read-only memory modules. The mathematics module enables the calculator to perform trigonometric ~unctions, coordinate lO~Y 7t;7 -~ transformations, vector arithmetic, and many other mathe-matical functions. Similarly, the statistics module enables the calculator to perform random number generations, ac-cumulations of sums, sums of products and sums of squares for up to five variables, linear and multiple linear re-gressions, and many other statistical functions. It also permits the use of a correct key, included among the de-finable keys of the keyboard input unit, to automatically delete data from a statistical analysis. The definable functions module enables the user to store programs of his own choosing in the program storage section of the read-write memory, associate them with some of the definable keys of the keyboard input unit, and protect them from sub-sequently being inadvertently altered or destroyed. It also permits the use of an insert key and a find key, in-cluded among the definable keys of the keyboard input unit, to insert program steps in a program stored in the read-write memory and to find every occurrence of any designated program step in the stored program. The typewriter module enables the calculator to control the entire keyboard of a properly interfaced typewriter.
The memory unit further includes a pair of recir-culating sixteen-bit serial shift registers. One o$ these registers serves as a memory address register for serially receiving information from an arithmetic-logic unit included in the central processing unit, for parallel addressing any memory location designa$ed by the received information, and for serially transferring the received information back to the arithmetic-logic unit. The other of these registers serves as a memory access register for serially receiving -12_ ~, . .
.
information from the arithmetic-logic unit, for writing in-formation in parallel into any addressed memory location, for reading information in parallel from any addressed memory location, and for serially transferring information to the arithmetic-logic unit. It also serves as a four-bit parallel shift register for transferring four bits of binary-coded-decimal information in parallel to the arithmetic-logic unit.
The central processing unit includes four recir-culating sixteen-bit serial shift registers, a four-bit serial shift register, the arithmetic logic unit, a programmable clock, and a microprocessor. Two of these sixteen-bit serial shift registers serve as accumulator registers for serially receiving information from and serially transferring in-formation to the arithmetic-logic unit. The accumulator re-gister employed is designated by a control flip-flop. One of the accumulator registers also serves as a four-bit paral-lel shift register for receiving four bits of binary-coded-decimal information in parallel from and transferring four bits of such information in parallel to the arithmetic-logic unit.
The two remaining sixteen-bit serial shift registers serve as a program counter register and a qualifier register, re-spectively. They are also employed for serially receiving information from and serially transferring information to the arithmetic-logic unit. The four-bit serial shift regi-ster serves as an extend register for serially receiving in-formation from either the memory access register or the arithmetic-logic unit and for serially transferring infor-mation to the arithmetic-logic unit.
The arithmetic-logic unit is employed for per-forming one-bit serial binary arithmetic, four-bit parallel ~,:
~058~7 binary-coded-decimal arithmetic, and logic operations. It may also be controlled by the microprocessor to perform bi-directional direct and indirect arithmetic between any of a plurality of the working registers and any of the storage - registers of the data storage section of the read-write memory.
The programmable clock is employed to supply a variable number of shift clock pulses to the arithmetic-logic unit and to the serial shift registers of the input-output, memory, and central processing units. It is also employed to supply clock control signals to the input-output control logic and to the microprocessor.
The microprocessor includes a read-only memory in which a plurality of microinstructions and codes are stored.
These microinstructions and codes are employed to perform the basic instructions of the calculator. They include a plurality of coded and non-coded microinstructions for trans-ferring control to the input-output control logic, for controlling the addressing and accessing of the memory unit, and for controlling the operation of the two ac-cumulator registers, the program counter register, the ex-tend register and the arithmetic-logic unit. They also include a plurality of clock codes for controlling the operation of the programmable clock, a plurality of qualifier selection codes for selecting qualifiers and serving as primary address codes for addressing the read-only memory of the micropro-cessor, and a plurality of secondary address codes for ad-dressing the read-only memory of the microprocessor. In re-sponse to a control signal from a power supply provided for the calculator, control signals for the programmable clock, and qualifier-control signals from the central-processing -14_ lOS8~7~;7 and input-output control units, the microprocessor issues the microinstructions and codes stored in the read-only memory of the microprocessor as required to process either binary or binary-coded-decimal information entered into or stored in the calculator.
In the manual operating mode, the calculator is controlled by keycodes sequentially entered into the cal-culator ~rom the keyboard input unit by the user. The solid state output display unit displays a numeric repre-sentation of the contents of three of the working registersand their associated display registers. These working re-gisters and their associated display registers may contain the last-entered numeric operand and two previously entered or calculated numeric operands or results or three previously entered or calculated numeric operands or results. The out-put printer unit may be controlled by the user to selectively print out a numeric representation of any numeric data entered into the calculator ~rom the keyboard input unit, a numeric representation of any result calculated by the cal-culator, and a mark distinguishing numeric data entries fromcalculated numeric results. If the alpha read-only memory module is plugged into the calculator, the output printer unit may also be controlled by the user to print out labels for inputs to and outputs ~rom the calculator and any other alphabetic in~ormation that may be desired.
When the calculator is in the manual operating mode, it may also be operated in a key-log alphameric printing mode.
The output printer unit then prints out a numeric representa-tion o~ each keycode as it is entered by the user. If the alpha read-only memory module is plugged into the calculator, , ~
' -- -- , .
~058~G~7 the output printer unit also prints out a mnemonic representa-tion of each such keycode.
In the automatic operating mode, the calculator is controlled by automatically obtaining keycodes stored as steps of a program in the program storage section of the read-write memory. ~uring automatic operation of the cal-culator, data may be obtained from the memory unit as de-signated by the program or may be entered from the keyboard input unit by the user while the operation of the calculator is stopped for data either by the program or by the user.
The solid state output display unit displays the ~inal con-tents of the three working registers and their associated display registers. This may include the final calculated numeric result and two previously entered or calculated numeric operands or results or three previously entered or calculated numeric operands or results. The output printer unit prints out calculated numeric results and other numeric information designated by the program. If the alpha read-only memory module is plugged into the calculator, the output printer unit also prints out any alphabetic information de-signated by the progra~.
When the calculator is in the automatic operating mode, the user may also employ a step program control key of the keyboard input unit to single step forward through the program being executed. This enables the user to check the execution of the program step by step in order to determine whether the program, as entered into the calculator, does in fact carry out the desired sequence of operations In the program entering mode, keycodes are sequen-tially entered by the user into the calculato~ from the ll)S~7~7 keyboard input unit and are stored as steps of a program in the program storage section of the read-write memory. The program may include sequences of program steps that will be intrepreted, when the program is executed, as alphabetic information to be printed out by the output printer unit if the alpha read-only memory module is plugged into the cal-culator This alphabetic information may include labels for inputs to and outputs from the calculator, alphabetic messages for facilitating the use of the program and the opera-tion of the calculator, or any other alphabetic informationthat may be desired. While the user is entering a program into the calculator in the program entering mode, the solid state output display unit displays a numeric representation of the last-entered program step and its associated address and the addresses of the next two program steps to be entered and the present contents of those addresses.
In the program entering mode, the user may also employ the step program control key and a back step control key of the keyboard input unit, to single step either ~or-ward or backward through any sequence of program steps storedin the program storage section of the read-write memoryO
While the user is single stepping forward or backward through a sequence of program steps, the solid state output display unit displays a numeric representation of the last-encountered program step, the program step presently encountered, the next program step to be encountered, and the addresses of these program steps. If the definable functions read-only memory module is plugged into the calculator, the user may also employ the insert and find keys described above by switching to the manual operating mode. These features ~()58767 greatly facilitate the editing of programs stored in the program storage section of the read-write memory.
When the calculator is in the program entering mode, it may also be operated in a key-log alphameric printing mode. The output printer unit then prints out a numeric representation of each program step and its associated ad-dress as it is entered into the calculator from the keyboard input unit by the user. If the alpha read-only memory module is plugged into the calculator, the output printer unit also prints out a mnemonic representation of each such program step.
When the calculator is in the program entering mode, it may also be operated in a list alphameric printing mode.
The output printer unit then prints out a numeric repre-sentation of every program step then stored in the program storage section o~ the read-write memory and a numeric re-presentation of the addresses of those program steps. If the alpha read-only memory module is plugged into the cal-culator, the output printer unit also prints out a mnemonic representation of each such program step.
In the magnetic card reading mode, the magnetic card reading and recording unit may be employed by the user to separately load either data or programs into the calculator from one or more external magnetic cards. Data and programs so loaded are separately stored in the data storage and pro-gram storage sections of the read-write memory.
In the magnetic card recording mode, the magnetic card reading and recording unit may be employed by the user to separately record either data or programs, separately stored in the data storage and program storage sections of the read-write memory, onto one or more external magnetic cards. Programs stored in the program storage section of the read-write memory may be coded by the user as being secure when they are recorded onto one or more external magnetic cards. The calculator detects such programs when they are reloaded into the calculator and prevents the user from re-recording them or obtaining any listing or other indication of the individual program steps.
Des_ription of the Drawings Figure 1 is a front perspective view of an adaptable programmable calculator according to the preferred embodiment of this invention.
Figure 2 is a rear perspective view of the adaptable programmable calculator of Figure 1.
Figures 3A-B are simplified block diagrams of the adaptable programmable calculator of Figures 1 and 2.
Figure 4 is a memory map of the memory unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 5 is a detailed memory map of the dedicated portion of the data storage section of the read-write memory employed in the memory unit of Figures 3A-B and 4.
Figure 6 is a detailed memory map of the dedicated portion of the program storage section of the read-write memory employed in the memory unit of Figures 3A-B and 4.
Figure 7 is a simplified operational logic flow chart illustrating the operation of the microprocessor employed in the central processing unit of Figures 3A-B.
Figure 8 is a plan view of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2 and 3A-B showing how the keyboard input unit may be redefined by lOS8'~7 :.
an alpha plug-in read-only ~emory modl.le that may also he employed in the adaptdble programrndble calc:ulator.
Figure 9 (sheet 7) is a plan view of the definable keys of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B and the overlay associated with a definable functions plug-in read-only memory module that may be employed in the adaptable pro-grammable calculator.
Figure 10 (sheet 7) is a plan view of the definable keys of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B and the overlay associated with a mathematics plug-in read-only memory module that may be employed in the adaptable programmable calculator.
Figure 11 (sheet 7) is a plan view of the definable keys of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B and the overlay associated with a statistics plug-in read-only memory module that may be employed in the adaptable programmable calculator.
Figure 12 (sheet 9) is a plan view of the kPyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B
showing how the keyboard input unit may be redefined by a typewriter plug-in read-only memory module that may also be employed in the adaptable programmable calculator.
Figure 13 is a simplified flow chart of the overall control sequence employed for keycode processing in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 14 is a flow chart of the cdisplay routine of Figure 13.
Figuresl5A-C are flow charts of the display list building routine of Figure 14.
Figure 16 is a map of the output bit assignment for ...
.': ' .
~OS8767 the seven-segment display employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 17 is a map of the display list built in the read-write memory of Figures 3A-B, 4, and 5.
Figure 18 is a map of the internal structure of the display list of Figure 17.
Figures l9A-B are flow charts of the monitor routine employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figures 20A-B are flow charts of the interpreter routine of Figure 13.
Figures 21A-D are flow charts of the program mode key, run mode key, floating-point display key, and fixed-point display key processing routines, respectively, of Figure 13.
Figure 22 is a map of the status word register of Figure 5 illustrating how it is employed by some of the routines of Figures 21A-D.
Figure 23 is a flow chart of the back step key processing routine of Figure 13.
Figure ~4 is a flow chart of the clear key processing routine selectable by the interpreter routine of Figure 13.
Figure 25 is a flow chart of the end key processing routine select-able by the interpreter routine of Figure 13.
Figure 26 is a flow chart of the stop key processing routine select-able by the interpreter routine of Figure 13.
Figure 27 (sheet 23) is a flow chart of the integer x key processing routine selectable by the interpreter routine of Figure 13.
Figure 28 (sheet 22) is a flow chart of the pi key processing ~ lOS~767 routine se}ectable by the interpreter routine o~ Figure 13.
Figure 29 ~sheet 22) is a flow chart o~ the clear x key processing routine selectable by the interpreter of Figure 13.
Figures 30A-B are simpli~ied flow charts o~ the number entry processing routine selectable by the interpreter o~ Figure 13.
Figures 31A-C are ~low charts o~ portions o~ the magnitude processing portions o~ the number entry,routine o~
Figures 30A-B.
Figures 32A-B are ~low charts o~ expone~t process~ng portions o~ the number entry routine o~ Figures 30A-B.
Figure 33 is a ~low chart o~ the change-s~gn pro-cessing portion o~ the number entry routine of Figures 30A-B.
Figure 34 ls a ~low chart o~ the termination portion o~ the number entry routine of F~gures 30A-~.
Figure 35 is a ~low chart o~ the up-key proces~i~g routine selectable by the interpreter of Figures 13.
Figure 36 is a ~low chart o~ the down-~ey processing routine se}ectable by the interpreter routi~e o~ Figure 13.
Figure 3~ is a ~low chart of the roll-up key.processing routine selectable by the interpreter routine o~ Figure 13.
Figures 38A-B are simpli~ied ~low charts o~ the re-gister trans~er and register arithmetic routlnes selec~able by the interpreter routin'e o~ Figure 13.
. . . . . .
. Figures 39A-B are ~lo~ charts o~ the register trans~er and automatic address termination routine employed in con-nection with the register trans~er arithmetic key processing routine of Figures 38A-B.
Figure 40 ~ 8 a flow chart o~ the indirect-key pro-cessing routine selectable by the interpreter routi~e o~ Figure 13.
,' . , .
lOS8'~f~7 Fi~ure 41 is a flow chart of the a- and b-register transfer key processing routines selectable by the interpreter routine o~ Figure 13.
Figure 42 is a ~low chart o~ the indirect address computation routine e~ployed in connection wlth the indirect-key processing routine of ~igure 40.
Figure 43 is a ~low chart of the decimal address ~ump and automatic address termination routine employed in con-nection with the go-to a~d if key processing routines selectab}e by the interpreter routine o~ Figure 13.
Figure 44 is a ~low chart of the label-key processing routine selectable by the interpreter routine of Figure 13.
Figure 45 is a ~low chart of the i~ ~ey processing rout~ne selectable by the interpreter routine o~ Figure 13.
Eigure 46 is a flow chart o~ the subroutine/return key processing rout~ne selectable by the interpreter routine ~o~ Figure 13.
Figures 47A-C are ~low charts of the floating point add and subtract key processing routines selectable by the interpreter rout~ne o~ Figure 13.
Figure 48 is a flow chart oi the floating point multi-ply key processing routine selectable by the interpreter rou~.ine o~ Figure 13.
Figures 49A-B are ~lo charts o~ the ~loatlng point di~ision key processing routine oY Figure 3.
Eigures 50A-C are ~lo~ charts o~ the ~loating point square root key processing routine select~ble by t~e inter-preter routine of Figure 13.
Figure 51 (sheet 48) is a flow chart of the store routine of Figure 13.
105~7~7 Figure 52 (sheet 47) is a flow chart of the rounding routine employed in connection with several of the routines selectable by the interpreter routine of Figure 13.
Figure 53 (sheet 47) is a flow chart of the x~squared key processing routine selectable by the interpreter routine of Figure 13.
Figure 54 (sheet 47) is a flow chart of the reciprocal-x key processing routine -~electable by the interpreter routine of Figure 13.
Figure 55A-B are flo~ charts o~ the basic format key processi~g routine selectable by the interpreter routine o~
Figure 13.
Figure 56 is a flow chart o~ a search routine that may be e~ployed in connec~ion with the basic ~ormat key processing routine of Figures 55A-B.
Figure 57 is a memory map illustrating the use o~ the search routi~e o~ Figure 56.
Figures 58A-B are flow charts of a plotter routine employed in connection with the basic ~ormat key processing routine of Figures 55A-B.
Figure 59 is a map of a memory register em~,loyed in connection w~th the plotter routine of Figures 58A-B.
Figure 60 is a ~low chart of the program-step re-cording portion o~ the record key processing routine of Figure 13.
~ Figure 61 ~s a flow chart of the program-step loading portion of the load key processing routine o~ Figure 13.
F~gure-~62 is a memory map o~ the program storage section of the read-write memory of Figures 3A-B and 4-6 illustrating how a secure pro~ram is destroyed by an unsecure program.
-24_ ~05~'7~7 Figuxe 63 is a flow ch~rt o~ the format recording portion o~ the record key proeessing routine of Figure 13.
Figure 64 is a ~lo~ chart o~ the data recording portion of the record key processing routine o~ Figure 13.
Figure 65 is a ~low chart of the data loading portion of the load key processing routine o~ Figure 13.
Figure 66 is a ~low chart showing how a plug-in read-only memory module employed in the adaptable programmable calculator o~ Figures 1, 2,and 3A-B can obtain keycordes from a program stored in the program storage section of the read-write memory of Figures 3A-B and 4.
Figureq 67.A-C show how the print routine accesses code ~n~ormation stored in tables in the data storage section oi the read-write memory of F~gures 3A-B and 4.
Figures 68A-B are memory maps of a directive table and a code table respectively, in an alpha plug-in --rea~-o~ me~or~ mo~ul~ that may be employed i~ the adaptable programmable calculator of Figures 1, 2,and 3A-B.
Fig~re 69 is a flow chart showing how the printer .code is accessed by an alpha plug-in read-ouly memory module employed in the adaptable programmable calculator of Figures 1, 2,and 3A-B.
Figures 70A-B are flow charts of the typewriter -~ormat routine employed in connection with the format key .psocessing-routine selectable by the interpreter. routine o~
Eigure 13.
E~gure 71 is a memory map o~ a type~riter mnemonic table in a typewriter plug.-in read-only memory module that may be e~ployed in the adaptable programmable calculator o~
Figures 1, 2,and 3A-B~
-25_ Figure 7~ is a ~low chart o~ a typewriter list routine that may be performed when the typewriter read- ( only memory module is plugged into the adaptable programmable calculator o~ Figurec 1, 2,and 3A-B.
Figure 73 is a ~low chart of a typewriter print routine that may be performed when the typewriter read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2,and 3A-B.
Figure 74 is a flow chart o~ a typewriter alpha rout~ne that may be per~ormed when the typewriter read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-8.
Figure 75 is a ~low chart o~ a de~inable keycode entry routine employed when the definable ~unctions read-only memory module is plugged into the calculator.
~igure 76 is a flow chart of a protect key processing routine that may be performed when the de~inable functions read-only memory module is plugged into the calculator.
Figure 77 is a flow chart o~ a memory -~earch routine that may be performed when the definable functions read-only memory module i~ plugged into the calculator.
Figures 78A-B are ~low charts o~ a de~inable ~unction calls routine that may be per~ormed when the de~inable unc-tions read-only memory module is plugged into the calculator.
Figure 79 is a d~recti~e table o~ the ~unction calls that may be per~ormed by tha deiinable ~unction calls routine o~ Figures 78A-B.
Eigure 80 ~s a ~low chart o~ a definable ~unction return routine employed with the de~inable function calls routine o~ Figures 78A-B.
lOS87f~7 Flgure 81 i~ a ~low chart of a turn-o~-the-functio~
light subroutine employed by the definable iunction return routine o~ Figure 80.
Figure 82 is a ~low chart oi a iunction stack - checking subrouti~e employed by the de~inable ~unction calls routine and the deiinable function return routine oi Figures 78A-B and 80, respectively.
Figure 83 is a ilow chart oi a delete-protect routine that may be performed when the de~inable iunct~ons read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2,and 3A-s.
Figure 84 is a ilow chart oi a turn-ofi-the-delete-light subroutine e~ployed by the delete-protect routine oi ~igure 83.
Figure 85 is a flow chart oi an empty-the-~unction-ctack subroutine employed by the delete-protect routine oi . Figure 83.
Figure 8~ is a ilow chart o~ a find routine that may be periormed when the deiinable functions read-only memory module is plugged into the adaptable progra~mable calculator o~ Figures 1, 2,and 3A-s.
Figure 8~ is a ~low chart oi a get-the-next-~ey sub-routine employed by the ~ind routine of Figure 86.
Figure 88 is a ~low c~art of a memory compactor routine that may be performed when the deiinable iu~ctions read-only memory module is plugged into the adaptable programmable calculator of Figures-l, 2, and 3A-B.
Eigure-89 is a memory map illustrating the use of the memory compactor subroutine oi Figure 88.
Figures 90A-C are flow charts o~ a delete routi~e that may be periormed when the deiinable ~unct~o~ read-c~ly - memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
.. :
10~767 :
- Figures 91A-B are.flow charts of an ~nser~ routine that may be performed when the definable functions read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 92 is a flow chart of an address calculating subroutine `` employed by the insert routine of Figures 91A-B.
Figures 93A-B are flow charts of a tangent x routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figures 94A-B are flow charts of an arctangent x routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figures 95A-B are flow charts of an e-to-the-x-power routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 96 is a flow chart of a natural logarithm x routine that may be performed when the mathematics read-only memory modu1e is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure g7 is a flow chart of a subroutine employed by the tangent x and the e-to-the-x-power routines of Figures 93A-B and 95A-B, respectively.
Figures98A-B are flow charts of a subroutine employed by the tangent x and arctangent x routines of Figures 93A-B and 94A-B, respectively.
Figures 99A-B are flow charts of a subroutine employed by the e-to-the-x-power and natural logarithm x routines of Figures ,. . ~ ~, 35A-R a~d 96, respectively.
Figure 100 is a flow chart of a subroutine employed by the arctangent x and ~atural logarithm ~ routines of Figures 94A-B and 95, respectively.
Figure 101 is a flow chart of sine and cosine routines that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator oi Figures 1, 2, and 3A-B.
Figure 102 is a ~low chart of a table f(x) routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 103 is a flow chart of an arc routine that may be performed when the mathematics read-only memory madule is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.-~igure 104 is a flow chart of an arcsine routine that may be performed when the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.
Figure 105 is a ~low chart o~ an arccosine routine that may be performed ~hen the mathematics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.
Figure 106-is a flo~ chart of a co~version to polar coordinates routine that may be performed when the mathe-ma~ics read-only memory module is plugged i~to the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
. . Figure 107 is a flow chart of a conversion to rec-tangular coordinates routine that may be performed when the .: ' . .
-29_ ~0S8~67 mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-s.
Figure 108 is a flow chart o~ a ten-to-the-x-power routine that may be performed when the mathematics read-: only memory module is plugged into the adaptable pro-grammable calculator of Figures 1, 2, and 3A-s.
Figure 109 is a flow chart o~ an absslute value y .routine that may be per~ormed when the mathematics read-only memory module is plugged ~nto the adaptable pro-grammable calculator o~ Figures 1, 2, and 3A-B.
Figure 110 is a ~low chart of an x-to-the-y-power routine that may be performed when the mathema~ics read-only memory module is plugged into the adaptable pro-grammable calculator of Figures 1, 2, and 3A-B.
Figure 111 is a ~low chart of a logarithm-to-the-base-ten routine t~at may be per~ormed when the mathematics . .~ad~on~y.memGry..module is glugged into the adaptable pro-grammable calculator o~ Eigures 1, 2, and 3A-B.
Figure 112 is a flow chart o~ a routine ~or converting degrees, minutes, and seconds to degrees that may be per~ormed whe~ the mathematics read-only memory module is plugged into the adapta~le programma~le calculator o~ Figures 1, 2, and 3A-B.
Figure 113 is a ~low chart o~ a routine ~or conYerting degrees to degrees, minutes, and.seco~ds that may be per~ormed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
Eigure 114 ~s a ~low chart of a subroutine employed by the routine.~o Pigure L3~or convert~ng de Fees to degrees, .
minutes,and seconds. s Figure 115 is a ~low chart o~ an x ~actorial routine 105~767 that may be employed when the mathematics read-only memoxy module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
; Figure 116 is a flow chart o~ a recall routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~
Figuresl, 2, and 3A-s.
- . . .
Figure 117 is a flow chart of an accumulate plus routi~e that may be employed when the mathematics read-only : 10 memory module is plugged into the adaptable programmable : calcuIator o~ Figures 1, 2, and 3A-s.
Figure 118 is a ~low chart o~ an accumulate minus routine that may be e~ployed when the mathemat~cs read-only memory module is plugged into the adaptable.programmable calculator o~ Figur~ 1, 2, and 3A-s.
Figures ll9A-B are ~low charts o~ a rounding routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figur~ 1, 2, and 3A-B.
Figure 120 is a flow chart o~ a scale routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~
Figures 1, 2, and 3A-B.
Figure 121 is a flow chart o~ a subroutine employed by the scale routine o~ Figure 120.
F~gure 122 is a flow chart o~ a clear routine that mar be employed ~hen the mathematics read-only memory module ls plugged intc~the adaptable programmable calculator of ~gures 1, 2, and 3A-B .
Figure 123 is a flow chart of a de~inable ~(x) .
-31- ..
.
- , ' ~ ~ ' -lOS8';~t;7 routine that may be employed when the mathematics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-s.
Figure 124 is a flow chart o~ a do-loop routine that may be employed when the mathematics read-only memory module ~s plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-s.
Figures 125A-B are flow charts of a summation routine that may be per~ormed when the statistics read-only memory module is plugged into the adaptable programmable calculator o~
Figures 1, 2, and 3A-3.
Figure 126 is a ~low chart o~ a correct routine that may be performed when the statistics read-only memory module is plugged into the adaptable programmable calculator o~
Figures 1, 2, and 3A-B.
Figure 127 i~ a flow chart of a t-pair routine that -may be per~ormed ~hen the statistics read-only memory module ~s plugged into the adaptable prog~ammable calculator o~
Figures 1, 2, and 3A-B.
F~gure 128 is a ~low ohart of an x sguared routine that may be per~ormed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 129 is a ~low chart o~ a mean value rout~ne.
that may be perrormed when the statis~ics read-only memory module is plugged into the adaptable programmable calculator .. ., . . _ . ... .. .
o~ Figures 1, 2, and 3A-s.
Figure i30.ls a flo~ chart o~ a maximu~/mlnimum routine that may be per~ormed when the statistic~ read-only memory module is plugged ln~o the adaptable programmable calCulator of Figures 1, 2, and 3A-B.
Figure 131 is a ~low chart o~ a Yariance routine that may be per~ormed when the statistics read-only memory module is plugged into the adaptable programmable calculator o~ Figures 1, 2, and 3A-B.
l~)S~7~7 - Figure 132 is a flow chart of an initialize routine that may beperformed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 133 is a flow chart of a regression routine that may be performed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 134 (sheet 113) is a flow chart of a variables routine that may be performed when the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 135 (sheet 112) is a flow chart of an r2-correlation routine that may be performed whcn the statistics read-only memory module is plugged into the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 136 is a block diagram of the microprocessor of Figures 3A-B.
Figures 137A-D are detailed schematic diagrams of the microprocessor of Figures 3A-B and 136.
Figure 137'is a figure map showing how the detailed schematic dia-grams of Figures 137A-D fit together.
Figures 138A-H are detailed flow charts illustrating the operation of the microprocessor of Figures 3A-B~ 136, and 137A-D.
Figure 138'is a figure map showing how the detailed flow charts of Figures 138A-D fit together.
Figure 138 " is a figure map showing how the detailed flow charts of Figures 138E-H fit together.
Figure 138I shows the macro-instruction coding table, the used data format, and the used address and constants for the micro-processor of Figures 3A-B and 136.
Figure 138J is an instruction table for the microprocessor of Figures 3A-B and 136.
Figure 139 is a block diagram of the programmable clock of Figures 3A-B.
Figures 140A-C (sheets 119 and 129-131) are detailed 105E~7~7 schematic diagrams of the programmable clock of Figure~ 3A-B
and 139 and of a portion o~ the input-output control unit o~
Figures 3A-B.
Figure 140' is a figure map showing how the detailed schematic diagr~ms of Figures 140A-c fit together.
Figure 141 is a waveform diagram illustrati~g the .
operation o~ the programmable clock of Figures 3A-B, 139, and 4oA-c.
. Figure~ 142A-D (3heet 119 and 133-136) are detailed -~chematic diagrams of the shift regi~ter and arithmetic-logic units of Figures 3A-B.
Figure 142' i3 a figure map shcwing how the detailed schematic diagrams of Figures 142A-D fit to~ether.
F gure 143 is a bloc~ diagram o~ the arithmetic-logic unit of Figure~ 3A-8.
Figure 144 is a table o~ the ~unction code assigmments o~ ~he arithmetic-logic unit o~ Figures 142A-D and 143.
Figure 145 is a table o~ integrated c~rcuits that ~ay be employed to construct the AL~ o~ Figures 142A-D and 143.
Figure 146 is a block diagram o~ the memory unit o~
Figures 3A-B.
~igure 147 is a table o~ mnemon~cs used in the memory unlt o~ Figures 3A-B.
Figure 1~8 is a sc~ematic diagram o~ the read-wrlte ~. . . . . .
memory of Figures 3A-B, 4, and 146.
Figure 149 is a schematic diagram o~ one o~ the add-on read-write memory modules o~ Fi~ure 146 that may be plugged into the calculator to increase the amou~t of program storage memory aYailable to the user.
Figure 150 is a schematic diagra~ o~ the other add-o~
read-write memory module of Figure 146 that ~ay be plugged into the calculator to ~urther increase ~he amount o~ program storage memory available to the user.
~ . ~
~Q587~7 Figure 151 is a schematic diagram of the read~only memory of Figures 3A-B, 4 and 146.
Figure 152 is a schematic diagram of the add-on read-only memory modules of Figure 146 that may be plugged into the calculator to increase the number of functions available to the user.
Figure 153 is a block diagram of one of the read-only memory chips of Figures 151-152.
Figures 154A-D (sheets 119 and 147-150) are schematic diagrams of one of the read-only memory chips of Figures 151-152.
Figure 154' is a figure map showing how the detailed schematic diagrams of Figure~ 154A-D fit together.
Figure 155 is a memory map of the memory unit of Figures 3A-B and 4 illustrating how it is partitioned into the read-only and read-write memory chips of Figures 148-153 and 154A-D.
Figure 156 i9 a flow chart illustrating how the row numbers of the lists stored in the read-only memory chips are computed.
Figure 157 i9 a table of bit numbers and actual bits used in connection with the flow chart of Figure 156.
Figures 158A-D are detailed schematic diagrams of the memory address register of Figures 3A-B and 146.
Figure 158' is a figure map showing now the detailed schematic diagrams of Figures 158A-D fit together.
Figures 159A-D are detailed schematic diagrams of the control circuitry of Figure 3 and 146.
Figure 159' is a ~igure map showing how the detailed Rchematic diagrams of Figures 159~-D fit together.
, . - ,,: , ": .
~o~8~ 7 Figure 160 is a waveform diagram illustrating the operation of the control circuitry of Figures 159A-D.
Figures 161A-D (sheets 157 and 163-166) are detailed schematic diagrams of the memory access register of Figures 3A-B and 146.
Figure 161' is a figure map showing how the detailed schematic diagrams of Figures 161A-D fit together.
Figures 162A-D (sheets 157 and 167-170) are detailed schematic diagram~ of the input-output register and gating control circuits employod in the input-output control unit of Figure 3.
Figure 162' is- a figure map showing how the detailed schematic diagrams of Figures 162A-D fit together.
Figure 163 is a schematic diagram of the source and relation~hip of the input-output party lines connected to the peripheral interface module receiving receptacles of Figure 2.
Figure 164 i9 a waveform diagram illustrating the operation of the control section of the input-output control unit of Figures 3A-B and 140A-C.
Figure 165 is a flow chart illustrating the operation of the control section of the input-output control unit of Figures 3A-B and 140A-C.
Pigure 166 is a schematic diagram of the address code decoding for the output selection portion of the interface modules employed with the input-output control unit of Figures 3A-B.
Figure 167 i9 a chart listing and defining all of the input-output lines of the input-output control unit of Figures 3A-B.
1~;)5~67 Figure 168 is a wa~eform diagram o~ some of the out-put signals employed by the inp~t-out~ut control unit and . associated interface modules of Figures 3A-B.
Figure 169 is a ~aYeform diagram of some o~ the input signals employed by the input-output control unit and associated inter~ace modules of Figures 3A-B.
Figure 170 is a waveform diagram illustrating the operation of the interrupt mode o~ operation o~ the input-output control unit of Figures 3A-B.
Figure 171 i8 a schematic diagram of logic that may be used to interface an output peripheral to the input-output control unit of Figures 3A-B.
Figure 172 is a schematic diagram o~ logic that may be used-to interface an input peripheral to the input-output control unit o~ Figures 3A-B.
Figure 173 iB a schematic diagram o~ logic t~at may beiused to int~erface an interrupting peripheral to the input-o~tput control unit o~ Figures 3A-B.
Figures 174A-D (sheets 157 and 178-1811 are detalled schematic diagram~ of the keyboard input unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 174' is a figure map showing how the detailed schematic diagrams of Figures 174A-D fit together.
Figure 175 (sheet 180) is a schematic diagram of one of the transformer pairY employed in the keyboard input u~it of Figure~ 174A-D.
Figure 17B is a pictorial view of a transformer employed i3 the keyboard i~put unit o~ Figures 3A-B.
Figure 177 is a schemat~c diagram of the transformer Of Figure 176.
Figure 178 is a schematic diagram o~ a portion o~ the .keyboard input u~it of Figures 174A-D.
..... , ~
..
~ .
1058'7f~7 figure 17~ ~sneet -l79) illustrates the required polarities for the drive and sense l.nes e~ployed i-n the-k~yboard input unit of Figures 3A-B and 176.
Figure 180 is a block diagram of the magnetic card reading and recording unit employed in the calculator of Figures 1, 2, and 3A-B.
Figures 181A-G are schematic diagrams of the magnetic card reading and recording unit of Figure 180.
Figure 181' is a figure map showing how the detailed schematic diagrams of Figures 181A-G fit together.
Figure 182 is a block diagram illustrating how the magnetic card reading and recording unit of Figures 180 and 181A-G interacts with the calculator of Figures 1, 2, and 3A-B.
Figure 183 is a block diagram of the output display unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
.Figures 184A-B are detailed schematic diagrams of the output display unit of Figure 183.
Figure 184' is a figure map showing how the detailed schematic diagram of Figures 184A-B fit together.
Figure 185 is a block diagram of the output printer unit employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 186 is a cross-sectional view taken along the line A-A in Figure 185.
Figures 187A-B (sheets 191, 197, and 198) are detailed schematic diagrams of the thermal printing head, isolation diodes, four group drivers, and one-of-ten decoder of Figure 185.
Figure 187' is a figure map showing how the detailed schematic diagrams of Figures 187A-B fit together.
Figure 188 is a partial plan view of the thermal printing head of Figure 185.
~ -38-~058767 - Figures 189A-D are detailed schematic diagrams of the twenty dot drivers, the internal ten-bit shift register, the moto, dri~ers, the motor drive control circuit, and the printer timing circuit of Figure 185.
Figure 190 is a figure map showing how the detailed schematic diagrams of Figures 189A-D fit together.
Figures l91A-B (sheets 191, 204,and 205) are detailed schematic diagrams of the motor drivers of Figure 185.
Figure 191' is a figure map showing how the detailed schematic diagrams of Figures l91A-B fit together.
Figure 192 illustrates how the output printer unit of Figures 185-131 prints out each character.
Figure 193 is a flow chart illustrating the printing operation of the output printer unit of Figures 185, 186, 187A-B, 188, 189A-D, and l91A-B.
Figure 194 is a block diagram of the power supply system employed in the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 195 is a detailed schematic of the five volt power supply of Figure 194.
Figure 196 is a detailed schematic diagram of the sixteen, twenty, and twenty-four volt power supplies of Figure 194.
Figures 197A-B are detailed schematic diagrams of the positive and negative twelve volt power supplies of Figure 194.
Figure 198 (sheet 206) is a schematic diagram of an alternative ripple signal circuit that may be employed in the power supply of Figure 195.
Figures l99A-B are block diagrams of an interface module that may be employed to interface a typewriter to the adaptable programmable calculator of Figures 1, 2, and 3A-B.
Figure 199' is a figure map showing how the block diagrams of Figures l99A-B fit together.
Figures 200A-C are schematic diagrams of the interface module of Figures l99A-B.
Figure 200' is a figure map showing how the schematic diagrams of Figures 200A-C fit together.
,, :-Description of the Pre~erred Embodiment GENERAL DESCRIPTION
Referring to Figures 1 and 2, there is shown an adaptable programmable calculator 10 including both a key-board input unit 12 for entering information into and controlling the operation of the calculator and a magnetic card reading and recording unit 14 for recording informa-tion stored within the calculator onto one or more ex-ternal magnetic cards 16 and for subsequently loading the information recorded on these and other similar magnetic cards back into the calculator. The calculator also includes a solid state output display unit 18 for displaying three lines of numeric information stored within the calculator and a group of indicator lights 19, serving as part of the keyboard input unit, for indicating the status of the calculator. It may also include an output printer unit 20 for pri~ting out alphameric information on a strip of thermal-sensitive recording paper 22. All of these input and output units are mounted within a single calculator housing 24 adjacent to a curved front panel 26 thereof.
As shown in Figure 2, a plurality of peripheral input and output units Z8 including, for example, a digi-tizer, a marked card reader, an X-Y plotter, and a type-writer may be connected to the calculator at the same time by simply inserting interface modules 30 associated with the selected peripheral units into any of four receptacles 32 provided therefor in a rear panel 34 of the calculator housing. As each interface module 30 is inserted into one of these receptacles, a spring-loaded door 38 at the en-trance of the receptacle swings down allowing passage of l~S8767 the interface module. Once thc interface module is fully inserted, a printed-circuit terminal board 40 contained within the interface module plugs into a mating edge connector mounted inside the calculator. If any of the selected peripheral units require AC line power, their power cords may be plugged into any of three AC power outlets 42 provided therefor at the rear panel of calculator housing 24.
Referring to the simplified block diagram shown in Figure 3, it may be seen that the calculator also includes an input-output control unit 44 (hereinafter referred to as the I/O control unit) for controlling the transfer of information to and from the input and output units, a memory unit 46 for storing and manipulating information entered into the calculator and for storing routines and subroutines of basic instructions performed by the calculator, and a central processing unit 48 (hereinafter referred to as the CPU) for controlling the execution of the routines and subroutines of basic instructions stored in the memory unit as required to process informa-tion entered into or stored within the calculator. The calculator also includes a bus system comprising an S-bus 50, a T-bus 52, and an R-bus 54 for transferring information from the memory and I/O control units to the CPU, from the CPU to the memory and I/O control units, and between different portions of the CPU. It further comprises a power supply for supplying DC
power to the calculator and peripheral units employed therewith and for issuing a control signal POP when power is supplied to the calculator.
The I/O control unit 44 includes an input-output .
~058'767 register 56 (hereinafter referred to as the I/0 register), associated I/0 gating control circuitry 58, and input-output control logic 60 (hereinafter referred to as the I/0 control), I/0 register 56 comprises a universal six-teen-bit shift register into which information may be transferred either bit-serially from CPU 48 via T-bus 52 or in parallel from keyboard input unit 12, magnetic card reading and recording unit 14, and peripheral input units 28 such as the marked card reader via twelve input party lines 62.
Information may also be transferred from I/0 register 56 either bit-serially to CPU 48 via S-bus 50 or in parallel to magnetic card reading and recording unit 14, solid state output display unit 18, indicator lights 19, output printer unit 20, and peripheral output units 28 such as the X-Y plotter or the typewriter via sixteen output party lines 64.
I/0 gating control circuitry 58 includes control circuits for controlling the transfer of information into and out of I/0 register 56 in response to selected I/0 qualifier control signals from CPU 48 and selected I/0 control instructions from I/0 control 60. It also includes an interrupt control circuit 65. a peripheral control circuit 66, a magnetic card control circuit 67, a printer control circuit 68, a display control circuit 69, and -an indicator control circuit 70 for variously controlling the input and output units and issuing control signals QFG and EBT to I/0 control 60 via two output lines 71 and 72. These last mentioned control circuits variously perform their control functions in response to control signal F~F from the power supply, I/0 qualifier control signals from CPU 48, I/0 control instructions from I/0 control 60, and control signals from keyboard input unit 12. Inter-rupt control circuit 65 10587~7 initiates the transfer of information into I/0 register 56 from keyboard input unit 12 or interrupting peripheral in-put units 28 such as the marked card reader and issues a qualifier control signal QNR to CPU 48 via output lines 73.
Peripheral control circuit 66 enables interface modules 30 plugged into the calculator to respond to information from I/0 register 56, control associated peripheral units 28, transfer information to and/or receive information from associated peripheral units 28, and in some cases initiate the transfer oi information to I/0 register 56 from the interface modules themselves. Magnetic card control circuit 67 enables magnetic card reading and recording unit 14 to respond to information in I/0 register 56 and either read information into I/0 register 56 ~rom a magnetic card 16 or record information onto a magnetic card 16 from I/0 register 56. Printer control circuit 68, display control circuit 69, and indicator control circuit 70 enable output display unit 18, output printer unit 20, and indicator lights 19, respectively, to respond to information from I/0 register 56.
When a basic I/0 instruction obtained from memory unit 46 is to be executed, CPU 48 transfers control to I/0 control 60 by issuing a pair o~ I/0 microinstructions PTR
and XTR thereto. In response to these I/0 microinstructions i'rom CPU 48, control signal F~F from the power supply, control signals QFG and EBT from I/0 gating control circuitry 58, and I/0 quali~ier and clock control signals from CPU 48, I/0 control 60 selectively issues one or more I/0 control in-structions to gating control circuitry 58 as required to e~ecute the basic I/0 instruction designated by CPU 48 and 105~767 issues control signals m, ~T~, QRD, and SCB to CPU 48 via output lines 74-77. The I/O qualifier control signals issued to I/O control 60 and gating control circuitry 58 by CPU 48 are derived from the basic I/O instruction to be executed. Those qualifier control signals issued to I/O
control 60 designate the specific I/O control instructions to be issued by I/O control 60, while those issued to gating control circuitry 58 designate selected control circuits to be employed in executing the basic I/O instruction Memory unit 46 includes a modular random-access read~write memory 78 (hereinaPter referred to as the RWM), a modular read-only memory 80 (hereinafter re~erred to as the RO~), a memory address register 82 (hereina~ter re-ferred to as the M-register), a memory access register 84 (hereinafter referred to as the T-register), and control circuitry 85 for these memories and registers. ~WM 78 and ROM 80 comprise MOS-type semiconductor memories. As shown in the memory map of Figure 4, they are organized into eight l,024-word pages. The basic RWM 78 contains a data storage section 86 of 512 sixteen-bit words extending from address 1000 to address 1777 on page O and a separate pro-gram storage section 88 of 512 six-bit words extending from address 12000 to address 12777 on page 5. All addresses on the memory map are represented in octal formO
Data storage section 86 contains 49 four-word storage registers available to the user (as user addresses 000-048) for manipulating and storing data, 60 additional four-word storage registers that may be made available to the user (as user addresses 049-108) for the same purpose, and 76 words dedicated ~or use by CPU 48. The 60 additional four-word storage registers may be made available to the ' ';
1051~7~7 user by altering a control routine in the R0~ section 80.
This is accomplished by removing a top panel 90 o~ the calculator housing shown in ~igure 1, removing a printed circuit board.containing the contro} routine to be altered, and substituting another printed circuit ~oard containing the altered control routine. Additional data storage modules made a~ailable to the user are automatically ac-commodated by the calculator.
As shown in the more detailed memory map o~ Figure 6, the dedicated portion o~ data storage section 86 includes 12 words (addresses 1750-1753, 1740-1743, and 1760-1763) employed as "~", "Y", and "Z" ~our-word worklng registers ava~lable to the user and 8 words (addresses 1764-1773) employed as "a" and "b" four-word storage registers available to the user. It also includes 8 words (addresses 1744-1747 and 1754-1757) employed as "ARl" and 'tAR2" ~our-word working registers for per~orming binary-coded-decimal arithmetic;
12 words (addresses 1664-1677) employed as three t"Tl"', "T2"', and "T3"') or more temporary storage registers in connection with a de~inable section 91 of keyboard input unit 12 (see Figure 1); 16 words (addresses }720-1737) employed as ~our ("Tl", "T2", "T3", a~d "T4") or more tem-porary storage registers in connection with the remaining sections o~ the ~eyboard input u~it; 7 words (addresses ln 1-1717) employed.as a variable-length "system subroutine stack" ~or storlng return addresses re~uired by programs stored in R0~ 80 and as temporary s-torage ~or housekeeping - n~ormation required by CP~ 48; one word (address 1777) em-.
ployed as a "syste~ stack pointer"; 5 words (addresses 1702-1706)-employed as a "user subrout~ne stac~" ~or storing 1058~
return addresses required by programs entered into program storage section 88 of RWM 78 by the user; 1 word (address 1710 employed as a "user stack pointer", 1 word (address 1701) employed as a "user program counter" for program steps entered into program storage section 88 by the user; 1 word (address 1707) employed as an "address of user 00~0" register for storing the first address available to the user in program storage section 88; 1 word (address 1700) employed as a "microprocessor store" register for storing housekeeping information required by CPU 48; 1 word (address 1774) employed as an "interrupt store" register for storing information displaced from CPU
48 by some keyboard entries; 1 word (address 1775) employed as an "input buffer" register for storing keyboard information awaiting entry into CPU
48, and 1 word (address 1776) employed as a "status word" register for storing information regarding the present.state of the calculator.
As shown in the memory map of Figure 4, program storage section 88 of RWM 78 contains 500 one-word program step registers available to the user (as user addresses 0000-0500) for storing programs and 12 words dedicated for use by CPU 48. An additional 1,536 one-word program-step registers may be made available to the user (as user addresses 0511-2036) in steps of 512 words (addresses 13000-13777) and 1iO24 words (addresses 14000 to 15777).
This is accomplished by removing top panel 90 of the calculator housing shown in Figure 1 and plugging additional program storage modules into the calculator. Added program storage modules are automatically accommodated by ~he calculator.
As shown in the more detailed memory map of Figure 6, the dedicated portion of program storage section 88 1058'~;7 includes 1 word (address 12013) employed as a "security word" register for storing a code designating a program stored in program storage section 88 as being secure. It also includes 1 word (address 12000) employed as an "exe-cution flag" register for storing information indicating whether CPU 48 is being controlled by a program stored in the program storage section or by the keyboard input unit;
2 words (addresses 12001-12002) employed as "normalize flag" and "print flag" registers for storing information about numeric data being processed by CPU 48; 3 words (addresses 12003-12005) employed as "temporary display" re-gisters for storing housekeeping information about the character position, decimal position, and register loca-tion of numeric information being displayed by the output display unit; 1 word (address 12006) employed as a "print code buffer" register for storing housekeeping information about alphameric information being printed out by the out-put printer unit; and 4 words (addresses 12007-12012) available for other uses.
As shown in the memory map of Figure 4, the basic ROM 80 contains 2,048 sixteen-bit words extending from address 0000 to address 0777 on page 0, from address 4000 to address 5777 on page 2, and from address 16000 to address 16777 on page 7. Routines and subroutines of basic in-structions for performing the basic functions of the cal-culator and constants employed by these routines and sub-routines are stored in these portions of ROM 80. An ad-ditional 3,072 sixteen-bit words of ROM may also be added on pages 1, 3, and 4 in steps of 512 and 1,024 words. This is accomplished by simply inserting plug-in ROM modules 92 lV58'76;7 into receptacles 94 provided therefor in top panel 90 of the calculator housing as illustrated in Figure 1 by the partially-inserted plug-in ROM
module on the left. As each plug-in ROM module 92 is inserted into one of these receptacles a spring-loaded door 95 at the entrance of the receptacle swings down allowing passage of the plug-in ROM module. Once the plug-in ROM module is fully inserted as illustrated by the plug-in ROM module on the right, a printed circuit terminal board 96 contained within the plug-in ROM module plugs into a mating edge connector mounted inside the calculator.
A handle 98 pivotally mounted at the top end of each plug-in ROM module 92 facilitates removal of the plug-in ROM module once it has been fully inserted into one of the receptacles 94.
Routines and subroutines of basic instructions (and any needed constants) for enabling the calculator to perform many additional functions are stored in each plug-in ROM module 92. The user himself may therefore quickly and simply adapt the calculator to perform many additional functions oriented toward his specific needs by simply plugging ROM modules of his own choosing into the calculator. Added plug-in ROM modules are automatically accommodated by the calculator and associated with definable section 91 of keyboard input unit 12 or employed to expand the functions performed by this and other sections of the keyboard input unit.
Referring again to Figure 3, M-register 82 of the memory unit com-prises a recirculatlng sixteen-bit serial shift register into which information may be transferred bit-serially from CPU 48 via T-bus 52 and out of which information may be transferred bit-serially to CPU 48 via S-bus 50. In-formation shifted into M-register 82 may be employed to address any word in RWM 78 or ROM 80 via fifteen output lines 106.
T-register 84 of the memory unit comprises a recirculating six-teen bit serial shift register into which information may be transferred either bit-serially from CPU 48 via T-bus 52 or in parallel from any ad-dressed word in RWM 78 and ROM 80 via sixteen parallel input lines 108.
Information may be transferred from T-register 104 either bit-serially to CPU 48 via S-bus 50 or in parallel to any addressed word in RWM 78 via sixteen parallel output lines 110. The four least significant bits of information con-tained in T-register 104 may comprise binary-coded-decimal information and may be transferred from the T-register in parallel to CPU 48 via three parallel output lines 112 taken with S-bus 50.
The control circuitry 85 of the memory unit controls these transfers of information into and out of M-register 82 and T-register 84, controls the addressing and accessing of RWM 78 and ROM 80, and refreshes RWM 78. It performs these functions in response to memory microinstructions, memory clock pulses, and shift clock pulses from CPU 48.
CPU 48 includes a register unit 114, an arithmetic-logic unit 116 (hereinafter referred to as the ALU), a programmable clock 118, and a micro-processor 120. Register unit 114 comprises four recirculating sixteen-bit shift registers 122, 124, 126, and 128 and one four-bit shift register 130.
Shift registers 122 and 124 serve as sixteen-bit lOS~767 serial accumulator registers (hereinafter referred to as the A-register and the B-register, respectively) into which information may be transferred bit-serially from ALU
116 via T-bus 52 and out of which information may be trans-ferred bit-serially to ALU 116 via ~-bus 54. The four least significant bit positions of A-register 122 also serve as a four-bit parallel accumulator register into which four bits of binary-coded-decimal information may be transferred in parallel from ALU 116 via four parallel input lines 132 and out of which four bits of binary-coded-decimal informa-tion may also be transferred in parallel to ALU 116 via three parallel output lines 134 taken with ~-bus 54.
Shift register 126 serves as a sixteen-bit system program counter (hereinafter referred to as the P-register) into which information may be transferred bit-serially from ALU 116 via T-bus 52 and out of which information may be transferred bit-serially to ALU 116 via ~-bus 54. In-formation contained in the least significant bit position of P-register 126 may also be transferred as a qualifier control signal QP0 to microprocessor 120 via output line 135.
Shift register 128 serves as a sixteen-bit qualifier register (hereinafter referred to as the Q-register) into which information may be transferred bit-serially from ALU
116 via T-bus 52 and out of which information may be trans-ferred bit-serially to ALU 116 via ~-bus 54. Information contained in the five least-significant bit positions of Q-register 128 is transferred to I/0 gating control circultry 58 as five one-bit I/0 qualifier control signals Q00-Q04 via five parallel output lines 136, and information contained in the six next-least-significant bit positions -49~
105~3767 of the Q-register is transferred to I/0 control 60 as six one-bit I/0 qualifier control signals Q05~Q10 via six parallel output lines 138. Similarly, information contained in the seven least-significant, the ninth and eleventh least-significant, and the most-significant bit positions of Q-register 128 and information derived from the thirteenth, fourteenth, and fifteenth bit positions of the Q-register may be transferred to microprocessor 120 as eleven one-bit microprocessor qualifier control signals Q00-Q06, Q08, Q10, Q15, and QMR via eleven output lines 140. Information contained in the twelfth through the fifteenth least-significant bit positions of Q-register 128 may be trans-ferred to microprocessor 120 as a four-bit primary address code via four parallel output lines 142.
Shift register 130 serves as a four-bit serial extend register (hereinafter referred to as the E-register) into which information may be transferred bit-serially either from ALU 116 via T-bus 52 or from the least-significant bit position of T-register 84 via input line 144. In-formation may also be transferred out of E-register 130 to ALU 116 via ~-bus 54.
Register unit 114 also includes control circuitry 146 for controlling the transfer of parallel binary-coded-decimal information into and out of A-register 122 and the transfer of serial binary information into and out of A-register 122, B-register 124, P-register 126, Q-register 128, and E-register 130. This is accomplished in response to register microinstructions from microprocessor 120, control signals 11~ and 2Tg from I/0 control 60, and shift clock control pulses from programmable clock 118.
1~)587~:;7 Control circuitry 146 includes a ~lip-flop 148 (hereinafter re~erred to as the A/B flip-flop) for enabling the transfer of information into and out of either the A-register 122 or the B-register 124 as dPtermined by the state of the A/B
flip-flop. The state of A/B flip-flop 148 is initially determined by information Qll transferred to the A/B ~lip-flop from the twelfth least-significant bit position of Q-register 128 but may be subsequently complemented one or more times by microinstruction CAB from microprocessor 120.
ALU 116 may perform either one-bit serial binary arithmetic on data received from T-register 84 or M
register 82 via ~-bus 50 and/or from any register of register unit 114 via ~-bus 54 or four-bit parallel binary-coded-decimal arithmetic on data received from T-register 84 via output lines 112 taken with ~-bus 50 and/or from A-register 122 via output lines 134 taken with ~-bus 54.
It may also perform logic operations on data received from memory unit ~6 and/or register unit 114 via any of these lines. The arithmetic and logic operations performed are designated by ALU microinstructions from microprocessor 120 and are carried out in response to these microinstructions, shift clock control pulses from programmable clock 118, and control signal SCB from I/0 control 60. Information is also transferred ~rom ALU 116 to A-register 122 ~ia output lines 132 or to I~0 register 56, M-register 82, T-register 84, or any register of register unit 114 via T-bus 52 in response to microinstructions and control signals applied to these registers. If a carry results while ALU 116 iS performing either one-bit serial binary arithmetic or four-bit parallel binary-coded-decimal arithmetic, the ALU issues a corresponding quali~ier control sl~nal QBC and QDC to microprocessor 120 via one of t~o output lines 152 and 154.
Programmable cloc~ 118 includes a crystal-co~trolled system cloc~ 156, a cloc~ decoder and generator 158, a~d - a control gate 160. System clock 156 issues regularly re-curring clock pulses to clock decoder and generator 158 ~ia output l~ne 162. In response to these regularly recurring cIock pulses ~rom system cloc~ 156 and to four-bit clock codes from microprocessor 120, clock decoder and generator 158 issues trains o~ n shi~t clock pulses to A~ 116, M-register 82, T-register 82, and all o$ the registers o~
register unit 114 via output line 164. These trai~s of n shi~t clock pulses are employed for shi~ting a corresponding number of bits o~ serial in~or~tatio~ into or out cf any o~
these registers or ~or shifting a carry bit in the AL~. The ~um~er ~ o~ pulses in eacn OT nese trains may vary from one to si~teen as determined by the n~mber o~ bits o~ serial ~n~ormation required during eac~ operation to be per~ormed.
In response to a control signal CC~ ~rom microprocessor 120, control gate i60 prevents any shi~t clock pulses ~rom being - appl~ed to the AL~ or any o~ these registers. ~pon comple~ion o~ each trai~ of n shi~t clGck pulses, cloc~ decoder and generator 158 issues a Ra~S clock pulse to microprocessor 120 via output line 166 and an I/0 clock pulse to.I/0 control 60 via output line 168. In response to the regularly re- -. . curring.cloc~ s~gna} ~rom system clock.56, clock decoder and generator 1~8 alsQ ~ssue~ correspo~dingly regularly recurring -.. . ........................... . .
me r~ clock puljses to memory un~t ~6 ~ia output.line 170.
. -. ~icroprocessor 120 selectively lssues two I/0 microinstruct~ons to I/0 control 60 ~ia two output li~es _52-lOS87~;~
172, six memory microinstructions to memory unit 46 via six output lines 174, thirteen register microinstructions to register unit 114 via thirteen output lines 176, and five ALU microinstructions to ALU 116 via five output lines 178. It also issues a four-bit clock code associated with each of these microinstructions to clock decoder 158 via four output lines 180. These microinstructions and associated clock codes are issued as determined by the control signal POP from the power supply, the eleven microprocessor quali-fier control signals from Q-register 128, the four-bit primary address codes from Q-register 128, and the five microprocessor qualifier control signals from I/O control 60, interrupt control 65, ALU 116, and P-register 126.
As shown in the simplified flow chart of Figure 7, microprocessor 120 executes a hardware diagnostic routine (stored within the microprocessor itself) in response to the control signal POP. Upon completion of this diagnostic routine, ALU 116 issues the qualifier control signal QBC in-dicating whether or not the diagnostic routine was suc-cessful, microprocessor 120 thereupon responds to this qualifier control signal by entering the basic machine operating loop and issuing microinstructions causing a six-teen-bit instruction stored in ROM 80 to be loaded into T-register 84 and transferred from there to Q-register 128.
Microprocessor 120 thereupon sequentially responds to one or more additional qualifier control signals by issuing microinstructions and associated clock codes for executing the instruction then contained in Q-register 128 and causing another sixteen-bit instruction stored in ROM 80 to be loaded into T-register 84 and transferred from there to the 1058~ 7 Q-register. When an instruction requiring multiple branching is contained in Q-register 128, microprocessor 120 issues a pair of microinstructions ~ and 2~ causing the micro-processor to respond to a four-bit primary address code from the Q-register by issuing additional microinstructions and associated clock codes for executing the instruction contained in the Q-register.
As illustrated by the basic machine operating loop shown in the flow chart of Figure 7, microprocessor 120 initially responds to the qualifier control signal QNR
either by issuing microinstructions and associated clock codes for interrupting the basic machine operating loop and executing an I/0 ser~ice routine or by issuing microinstruc-tions and associated clock codes for loading A/B flip-flop 148 with the information Qll contained in Q-register 1280 The manner in which microprocessor 120 responds is deter-mined by the condition of the qualifier control signal QNR, which in turn indicates whether or not the basic machine operating loop should be interrupted.
Assuming the basic machine operating loop is not to be interrupted, microprocessor 120 loads the information Qll into A/B flip-flop 148 and responds to the qualifier control signal QMR either by issuing microinstructions for transferring an address portion of the instruction contained in Q-register 128 ~rom T-register 84 into M-register 82 or by responding to another qualifier control signal Q15.
Again, the manner in which microprocessor 120 responds is determined by the condition of the qualifier control signal Q~R, which in turn indicates whether or not the instruction contained in Q-register 128 is a memory reference instruction.
;~
lOS8~7~;~
Assuming the instruction contained in Q-register 128 is a memory reference instruction, microprocessor 120 $ransfers the required address information into the ~-register 82 and responds to qualifier control signal Q10 either by issuing microinstructions and associated clock codes to select the base page of the memory (i.e. page 0) or by issuing microinstructions and associated clock codes to select the current page of the memory (i.e. the page irom which the instruction contained in Q-register 128 was obtained). In either case, the microprocessor then issues microinstructions as required to read data from the preset page of the memory at the addrsss designated by the address ~nformation last trans~erred into ~-register 82. Upon completion of this operation, microprocessor i20 responds to quali~ier control signal Q15 by issuing additio~al micro-instructions and associ ted clock codes to execute a~ in-direct memory access operation ii the condition of this quali~ier control signal indicates that the address informa-tio~ contained in ~-register 82 is lndirect.
~ssuming the address information contained in M-register 82 is direct (or upon completion of the indirect memory access operation), microprocess~r 120 issues micro-instructions and associated clock codes causing the micro-processor itself to respond to a four-bit primary address code from the Q-register. The microprocessor responds by issuing additionai microinstructions and associated cloc~ codes ~or executing whichever one of ten possible memory reference instructions is contained ~n Q-register 128 and designated by the four-~it primary address code.
.. . . . . . .
Following execution o~ the designated memory reference 1058'~7 instruction, microprocessor 120 issues microinstructions and associated clock codes causing another sixteen-bit instruction stored in ROM 80 to be loaded into T-register 84 and trans-ferred from there to Q-register 128 thereby beginning another cycle of the basic machine operating loop.
As illustrated by other possible paths of the basic machine operating loop shown in Figure 7, microprocessor 120 sequentially responds to other qualifier control signals when other types of instructions are contained in Q-register 128. For example, when an I/O instruction is contained in Q-register 128, microprocessor 120 sequentially responds to quallfier control signals QNR, QMR, Q15, Q10, and QRD by issuing microinstructions and associated clock codes to execute the I/O instruction. It should be noted that the microprocessor qualifier control signals not shown in the simplified flow chart of Figure 7 are variously contained within those flow chart blocks requiring decisions as will hereinafter become apparent. . -10587~7 KEY OPERATIONS
All operations performed by the calculator may be controlled or initiated by the keyboard input unit and/or by keycodes entered into the calculator ~rom the keyboard input unit, the magnetic card reading and recording unit, or peripheral input units such as the marked card reader and stored as program steps in the program storage section of the RWM. The calculator responds to keycodes in basically the same manner whether obtaining them from the keyboard input unit or from the program storage section o~ the RW~.
An operational description o~ the keyboard input unit is there~ore now given with speci~ic re~erence to Figures 1 and 8 e~cept as other~ise indicated.
Line Switch .
An on-off line switch 182, which may be considered as part of the keyboard input unit, controls the applica-tion of.power to the calculator and hence initiation of the control signal PoP ~rom the power supply. The ~ndicator l~ghts 19 serve as a pilot light since at least two Qf them are alwa~s turned on while power is applied to the cal-~ulator.
As shown in Figure 2, the calculator may be operated at 230, 200, 115, or 100 volts ~ 10% as determi~ed by a pair o~ line voltage selector switches mounted at rear panel 34 o~ the calculator housing and at a line frequency within the range o~ 48 to 66 Hertz. The calculator is provided with a 6-amp ~use and either a l-amp fuse for operat~o~ at a line voltage of 200 3r 230 volts i 10Z or a 2-amp ~use ~or opera-tion at a line voltage o~ 100 or 115 volts + 10%. It is also provided with a three-con~uctor power cable 184 which, 1058~
when plugged into an appropriate AC power outlet, grounds the calculator housing. The maximum power consumption o~
the calculator is 150 voltamps. No more than a total of 610 voltamps may be drawn from AC power outlets 42 pro-vided for peripheral units 28.
~ode Keys (RUN. PRGM KEY LOG) When the calculator is first turned on, it is automatically initialized and placed in a manual operating mode. If the calculator is switched to some other opera-ting mode, it may subsequently be placed in the manual operating mode again by simply depressing the RUN mode key.
In the manual operating modej operation of the calculator is manually controlled by the user from the keyboard input unit. During this mode the output display unit displays a decimal numeric representation of the contents of the x-, y-, and z-registers (or of associated memory registers in which the actual or intended contents of the x_, y-, and z-registers are temporarily stored and, ~or simplicity of description, are then considered to be the contents of the x-, y-, and z-registers). The contents of the x-, y-, and z-registers are displayed ad;acent to the corresponding register designators "keyboard x","accumulator y", and "temporary z", respectively, in the display window. De-pression of the RUN mode key also conditions the calculator for operation in an automatic operating mode, a first key-log printing mode, a program-list printing mode, a magnetic card reading mode, and a magnetic card recording mode as determined by other keys hereinafter explained. A run in-dicator light 19 positioned immediately below the RUN mode key is turned on when the calculator is operating in any .
.... .
. , .
- ~o5t~7~7 of the R~N modes.
The PRG~ mode key iq depressed to place the cal-culator in a program entering mode. In this mode keycodes seguentially entered by the user from the keyboard input unit are stored as program steps in successive program-step registers of the program storage section o~ the RWM as specified by the user program counter. As described above, 500 program-step registers (user addresses 0000-0499) are a~ailable, and 1536 additional program-step registers (user addresses (0500-2035) may be made available, to the user ~or this purpose. The program step register into which each program step is to be stored and from which each program step is to be obtained in any program-related operation is al~ays speci~ied by the user program counter. Thus, be~ore entering a program or subprogram into the calculator, the user program counter must be set to the address o~ the pro-- gram step register into ~hich it is desired to store the initial program step o~ the program or subprogr~m to be entered (this address is hereinafter re~erred to as the de-sired starting address nnnn of the program). This may be ac-complished, when the calculator is in a keyboard-controlled run mode, by depress~ng the GO TO ~ey followed by the decimal-digit keys 0-9 specifying the desired starting address nnnn of the program.~ -If the desired starting address is 0000, this may also be accompl~she~, when the calculator is in the manual operating mode by simply depressing the END
key Once the user program countex is set to the desired startin~ address nnnn, the user may proceed to enter the pro-gram or subprogram by sequentially performing basically the ., -.. . .
- . -lOS~767 same key operations that he would normally perform in the manual operating mode. Thus no special language need be learned to program the calculator. During the program entering mode the output display unit displays a decimal numeric representation of the last-entered program step and its associated address and the addresses o~ the next two program steps to be entered and the present contents o~
those addresses.
Depression of the PRGM mode key also conditions the calculator for operation in a second key-log printing mode and the program-list printing mode as determined by other keys hereina~ter explained. A program mode indicator light 19 positioned immediately below the PRGM mode key is turned on when the calculator is operating in any of the PRGM
modes.
The KEY LOG mode key is depressed, when the cal-culator is in the manual operating mode, to place the cal-culator in the first key-log printing modeO In this mode, the output printer unit prints out an octal numeric repre-sentation o~ each keyboard operation as it is per~ormed by the user. This provides a permanent record of all keyboard operations (including regular data print-out operations), as illustrated by the following example:
Keyboard entry Key log ~ 27
3 03 - -. "
~OS8767 Keyboard entry (Cont'd~ Key log (Cont'd)
~OS8767 Keyboard entry (Cont'd~ Key log (Cont'd)
4 04 + 33 . 35 PRINT
~PACE 45
~PACE 45
5.00000 If the alpha ROM module enabling the calculator to print out every alphabetic character and many symbols indivi-dually or in messages is plugged into the calculator, the output printer unit also prints out a mnemonic represen-tation of each keyboard operation as it is per~ormed by the user. This is illustrated by the following example:
_yboard entry Key log + + 33 . DIV 35 P~IXT PNT 45 5.00000 In the iirst key-log printing mode the output display unit displays the same iniormation as during the manual operating mode.
The KEY LOG mode key is depressed, when the cal-culator is in the program entering mode, to place the calculator in the second key-log printing mode. In this .
~()S~7~7 mode the output printer unit prints out an octal numeric representation of each keycode as it is entered into the calculator from the keyboard input unit and a decimal numeric representation o~ the address at which each such keycode is stored as a program step in $he program storage section of the RWM. This provides a permanent record of all keyboard-entered program steps, as illustrated by the following example:
Keyboard entry Key log ~ 0003 --------- 27 4 0005 --~ -- 04 + 0006 -~ -__ 33 x~y 0008 --------- 30 SFA~F 0009 ---______ 45 I~ the alpha RO~ module is plugged into the calculator, the output printer unit also prints out a mnemonic representa-tion of each keyboard-entered program step. This is illus-trated by the ~ollowing example:
Keyboard entry Key log 2 0002-- 2 --- 02 :~
~ 0003-- UP --- 27 .:
. ,. , ~ :.
Keyboard entry (Cont'd) Eey log (Cont'd) + 0006-- + ___ 33 x~y 0008--- XEY------30 -PXINT ~ 0009~- PNT --- 45 In the second key-log printing mode the output display unit displays the same in~ormation as during the program entering mode.
The KEY LO& mode key is a toggling on-of~ key (i.e.
repeated depressions of the key alternately switch the calculator in and out of either the first or the second key-log printing mode). A key-log indicator light 19 positioned immediately below the KEY LOG mode key is turned : on when the calculator is operating in either key-log printing mode.
Program Ke~_ (LIST, LOAD, RECORD) The LIST program key is depressed, when the cal-culator is in the manual operating mode, first key-log print-ing mode, second key-log printing mode, or program entering mode, to place the calculator in the program-list printing mode. In this mode, the output printer unit prints out an octal numeric representation o~ keycodes then stored as program steps in the program storage section of the RWM and a decimal numeric representation of the addresses of these program steps. These program steps and addresses are printed out in a list beginning with the address initially , , : , - - ~ .~' . ': . -.; , j . . .. .
-~0587~7 specified by the user program counter and ending with the address specified by the user program counter when an END
program step is encountered or the STOP key is depressed.
The user may select the starting address nnnn of the list by depressing the GO TO key followed by the decimal digit keys (0-9) designating the desired starting address nnnn, or simply by depressing the END key if the starting address is 0000. Similarily, the user may terminate the list at any time by depressing the STOP key. When the program-list operation is terminated either by an END program step or by depression of the STOP key, the calculator reverts to its original manual operating, first or second key-log printing, or program entering mode. If the program-list operation is terminated by an END program step, the user program counter specifies the address of the END program step. However, if the program-list operation is terminated by depression of the ~TOP key, the user program counter speci~ies the address of the next program step to have been encountered had the STOP key not been depressed.
The list printed out by the output printer unit serves as a permanent record of a sequence of program steps stored as a program, subprogram, or part thereof in the program storage section of the RWM and the address of these program steps. A typical list is illustrated by the right- and left-hand columns of numbers printed out on the strip of thermal-sensitive recording paper 22. If the alpha ROM module is plugg9d into the calculator, the output printer unit also prints out a mnemonic representation of each of these progr~m steps. This is illustrated by the central column of alpha- ;
meric characters printed out on the same strip of thermal-sensitive recording paper.
^-.: . . , . ,- : . ~ , . :
. ..... . ..
1051~767 The LOAD program key is depressed, when the.cal-culator is in the manual operating mode or the ~irst key-log printing mode> to place the calculator in the magnetic card reading mode. During this mode, progra~ steps re-corded on one or more external magnetic cards 16 are read by the magnetic card reading and recording unit and stored in the program storage section o~ the RWM. In order to properly accomplish this program loading operation:
1. The user program counter is set to the desired starting address nnnn of the program storage section to be loaded. This may be accomplished b~ depressing the ~0 TO
key followed by those decimal degit keys desig~ating the desired starting address nnn~ or simply by depressing the END key i~ the desired starting address is OOOO.
2. A recorded magnet~-c card 16 inserted into an input receptacle 186 o~ the magnetic card reading and re-cordi~g ~nit-with the first side 187 to be read placed in the operative reading and recording position as shown in Figure 1.
3. The LOAD key is depressed, thereby causing the magnetic card readlng and recording unit to begin reading the flrst recorded side of the magnetic card and turning on an INSERT CARD ~ndicator light 19 positioned immediately below and between the LOAD and RECORD program keys. This . program reading operation ~ill terminate and the INSERT
.
CARD ~ndicator light will turn off when an END (i.e. terminating~
program step is read The calculator will thereupon revert to the original manual operat~ng or ~irst key-log printing mode with the user program counter specifying the address o~ the END program step. In any case, the m2gnetic card f~
.,:
10587tj7 will be partially ejected at an output receptacle 188 of the magnetic card reading and recording unit after each reading pass has been completed.
4. If the INSERT CARD indicator light remains on and the magnetic card reading and recording unit continues to run, the partially ejected magnetic card is retrieved from output receptacle 188, turned around, and the same magnetic card (or another magnetic card, as appropriate) inserted into input receptacle 186 with the next side 189 to be read placed in the operative reading and recording position. The magnetic card reading and recording unit thereupon begins reading this next recorded side. This program reading operation is repeated, if necessary, until it is terminated by reading an END program step. If desired, program reading operation may also be terminated by depressing the STOP key. The calculator will thereupon also revert to the original manual operating or first key-log printing mode, but with the user program counter specifying the address of the next program step to have been read and loaded into the program storage section of the RWM had the program reading operation not been so termi-nated.
When the program reading operation is terminated by an END program step, the user program counter is left speci-fying the address of this END program step so that additional program steps, subprograms, and programs may be chain-loaded into the calculator without extra effort by simply repeating steps 2, 3, and 4 above. The first additional program step will over-write the last encountered END program step there-by leaving only a final END program step at the completion 105~7~7 of the composite program. Similarly, when the program reading operation is termina$ed by depressing the STOP key, the user program counter is also ~eft specifying the address of the next program step to have been read so that ad-ditional program steps, subprograms, and programs may also - be chain-loaded by simply repeating steps 2, 3, and 4 above.
The RECORD program key is depressed, when the calculator is in the manual operating mode or the first key-log printing mode, to place the calculator in the magnetic card recording mode. During this mode program steps stored in the program storage section of the RWM
are recorded on one or more external magnetic cards by the magnetic card reading and recording unit. In order to properly accomplish this program recording operation:
1. The user program counter is set to the starting address nnnn of the stored program to be recorded. This may be accomplished by depressing the GO TO key followed by the decimal digit keys designating the required address nnnn, or simply by depressing the END key if the starting address is 0000.
2. A magnetic card 16 is inserted into input re-ceptacle 186 of the magnetic card reading and recording unit with the first side 187 of the card to be recorded placed in the operative reading and recording position as shown.
3. The RECORD program key is depressed, thereby causing the magnetic card reading and recording unit to be-gin recording the ætored program onto the first side of the magnetic card and turning on the INSERT C M D indicator light 19. This program recording operation will terminate and the INSERT CARD indicator light turn off when an END
- ~ns~7~
program step is recorded. The calculator will thereupon revert to the original manual operating or first key-log printing mode with the user program counter specifying the address of the END program step. In any case, the magnetic card will be partially ejected at output receptacle 188 of the magnetic card reading and recording unit after each recording pass has been compléted.
4. I~ the INSERT CARD indicator light remains on and the ~agnetic card reading and recording unit continues to run, the partially e;ected card is retrieved from output receptacle 188, turned around, and the same magnetic card (or another magnetic card, as appropriate) inserted into input receptacle 186 with the next side 189 to be recorded placed in the operative reading and recording pos~tion.
The magnetic card reading and recording unit thereupon be-gins recordi~g on this next side. This program recording operation is repeated, if necessary, until it is terminated by recording an END program step. If no END program step is encountered, the calculator will continue to request 20- more magnetic card recording passes until 2,036 progra~
steps are recorded, regardless of the aotual a~ount of pro-gram storage memory installed in the calculator. If de-sired, the recording operation can`be terminated at any time by depressing the ~TO~ ~ey The calculator ~ill there-upon also revert to the original manual operattng or first key-log printing mode but with the user program counter left speci~ying the address of the next program step to have been recorded had the recordin~ operation not been so termi- -nated.
Once the progr~m is recorded on one or both sides 105~7ti7 of one or more magnetic cards 16, it may be protected against undesired erasures by punching out a perforated portion 190 at the leading edge of each side on which it is recorded.
If a protected (notched) magnetic card is inserted into input receptacle 186 of the magnetic card reading and re-cording unit and the RECORD key depressed, the STATUS
(error) indicator light 19 will turn on and will remain on while the magnetic card reading and recording unit drives the magnetic card to output receptacle 188, whereupon the STATUS light will be extinguished. Nothing will be recorded on the protected magnetic card during this recording pass nor will there be any impairment of the calculator itself or the information previously recorded on the protected magnetic card. The calculator and the magnetic card unit will simply continue to wait for a nonprotected magnetic card to be inserted into input rsceptacle 186 for the mag-netic card reading and recording unit.
Automatic Operating Mode Control Keys (CONTINUE, STOP~ END, PAUSE) The CONTINUE key is depressed, when the calculator is in the manual operating mode or the first key-log printing mode, to start the automatic execution of a program or sub-program stored within the program storage section of the RWM. Automatic execution begins at the address specified by the user program counter. Thus, in order to execute a desired program or subprogram stored within the program storage section of the RWM:
1. The user program counter is set to the starting address nnnn of the desired program or subprogram. This is accomplished by depressing the GO TO key followed by those decimal digit keys designating the starting address 76~
nnnn of the desired programO If the starting address is 0000, this may be accomplished by simply depressing the END keyO
2. The CONTINUE key is depressed, when the cal-culator is in the manual operating mode or the ~irst key-log printing mode, to place the calculator in the automatic operating mode and begin automatic execution of the stored program or subprogram at the address nnnn specified by tha user program counter. Automatic execution will continue until a STOP or END program step is encountered or a STOP
key is depressed as described below.
The STOP key is depressed, when the calculator is in the automatic operating mode, to halt the automatic execution o~ a stored program or subprogram immediately after completion of the program step then being executed.
Automatic execution of a stored pro~ram or subprogram is similarly halted when a STOP program step is encountered.
In either case the calculator will thereupon revert to -the original manual operating or first key-log printing mode with the program counter specifying the address of the ne~t program step to be encountered. The user may then operate the calculator in the manual operating mode to enter data required by the program being executed or to perform other calculations. So long as the user does not depress the GO TO or END key or perform some other opera-tion altering the last setting of the user program counter, he may resume automatic operation of the calculator at any time by simply depressing the CONTINUE key again.
As described above, the STOP key may also be de-pressed, when the calculator is in the program-list printing ~:: ~ . . .
1058~6~
mode, the magnetic card reading mode, or the magnetic card recording mode to halt the program-list printing operation, the magnetic card reading operation or the magnetic card recording operations, respectively. In each of these cases the calculator will revert to the mode it was in immediately prior to the halted operation with the user program counter specifying the address o~ the next program step to have been printed, read, or recorded had the STOP key not been depressed.
The END key is depressed, ~hen the calculator is in the manual operating mode, to set the user program counter to address 0000 in the program storage section of the RWM (this is equivalent to depressin~
the GO TO, O, O, O, and o keys). An END program step terminates the automatic execution of a stored program by the calculator and resets the user program cou~ter to the ~irst a~ailable address 0000 ii the program storage section oi the R~. The calculator thereupon reverts to the original manual operating or ~irst key-log printing mode, from which automatic operation was in~tiated. Auto-matic execution may then be resumed by depresstng the CONTINUE key, i~ the desired starting address is 0000 or by repeating steps 1 and 2 described above in connection with the CONTINUE key i~ the desired starting address is not 0000. An END program step also clears any subrouti~e return-address to which return has not by then been made.
As described above, it also termi~ates the program listing, magnetic card ~eading, and magnetic card record~ng opera-tions.
The PA~SE key is typically used only as a program ._ 10587~;7 s~ep. Automatic execut~ion of a stored program or sub-program is automatically halted ~or a 1/4 second pause interval whenever a PAUS~ program step is encountered or the PAUSE key is depressed. This enables partial results of a calculation to be displayed by the output display unit during automatic execution o~ the stored program or subprogram. Successive PAUSE program steps may be employed to increase the duration of the pause interval by 1/4 second increments. Automatic execution o~ the stored pro-gram or subprogram automatically resumes a~ter the pause interval.
~ PA~SE program step may also be used as a con-ditional stop pe~mitting the user to stop,the automatic operation of the calculator ~m~ediately after execution of any PA~SE program step. This is accomp}ished by simply depressing any key (other than STOP) during automatic e~ecu*ion o~ the program until the PAUSE program step has been executed. In other words/ a PAUSE progra~ step im-mediately followed by depression o~ any ~ey other than STOP
has the same effect as depressing STOP, with the advantage that automatic execution of a stored program or subprogram may thereby be precisely halted at one or more predetermined program steps if the user so desires. Automatic execution of the stored program may then be resumed by depressing the CONTINUE key.
Decimal Dis~lay Keys (FLOAT FIg t~ ) -These keys are employed to control th~ format of ~umbers displa~ed by the output display unit when the caI-culator is in the manual operating and ~irst key-log printing modes. Either a ~ixed or a ~loating decimal paint ~ormat ~05~'7~7 may be used A fixed point indicator light 19 positioned immediately below the FIX () key is turned on when the fixed decimal point format is being used. Similarly, a floating point indicator light positioned immediately below the FLOAT key is turned on when the floating decimal point format is being used.
In the fixed decimal point format, numbers appear in the form in which they are most commonly written. The decimal point is fixed in its correct position. In the ~loating decimal point format, numbers appear in a normalized form with the decimal point located immediately after the most significant non-zero digit of the normalized number.
Each normalized number is followed by an exponent comprising a positive or negative power of ten and representing the number of digit places that, and the direction in which, the decimal point must be moved to express the normalized number in the fixed decimal point format. The following examples illustrate the relationship between numbers ex-pressed in both the fixed and floating decimal point for-mats.
FIXED DECIMAL FLOATING DECIMAL
POINT FORMAT POINT FORMAT
1234.5 =1.2345 x 103 0.0012345 ~1.2345 x 10-3 -1.2345 =-1.2345 x 10 When the calculator is turned on and automatically initialized, the output display unit displays numbers in the floating decimal point format. If the output display is switched to the fixed decimal point format, it may subsequently be switched back to the floating decimal point format by simply depressing the FLOAT key. E~ery " "'`"'` :
iO5~
number displayed in the floating decimal point format in-cludes the sign (if negative) and ten most significant digits of the normalized number followed by the sign (if negative) of the exponent and two exponent digits This is illustrated by the following examples:
NUMBERS TOFLOATING DECIMAL
BE DISPLAYED POINT DISPLAY
1234.5 1.234500000 03 0.0012345 1.234500000 -03 -1.2345 -1.234500000 00 The output display may be changed to the fixed decimal point format by depressing the FIX () key followed by a decimal digit key designating the desired number n (0-9) of digits to be displayed to the right of the decimal point. Less significant digits are not displayed, and the least significant digit to be displayed is rounded up if the nondisplayed next least significant digit is five or greater.
This is illustrated by the following examples for different values of n:
BE DISPLAYED OF n POINT DISPLAY
. . . _ . .
123.456784 2 123.46
_yboard entry Key log + + 33 . DIV 35 P~IXT PNT 45 5.00000 In the iirst key-log printing mode the output display unit displays the same iniormation as during the manual operating mode.
The KEY LOG mode key is depressed, when the cal-culator is in the program entering mode, to place the calculator in the second key-log printing mode. In this .
~()S~7~7 mode the output printer unit prints out an octal numeric representation of each keycode as it is entered into the calculator from the keyboard input unit and a decimal numeric representation o~ the address at which each such keycode is stored as a program step in $he program storage section of the RWM. This provides a permanent record of all keyboard-entered program steps, as illustrated by the following example:
Keyboard entry Key log ~ 0003 --------- 27 4 0005 --~ -- 04 + 0006 -~ -__ 33 x~y 0008 --------- 30 SFA~F 0009 ---______ 45 I~ the alpha RO~ module is plugged into the calculator, the output printer unit also prints out a mnemonic representa-tion of each keyboard-entered program step. This is illus-trated by the ~ollowing example:
Keyboard entry Key log 2 0002-- 2 --- 02 :~
~ 0003-- UP --- 27 .:
. ,. , ~ :.
Keyboard entry (Cont'd) Eey log (Cont'd) + 0006-- + ___ 33 x~y 0008--- XEY------30 -PXINT ~ 0009~- PNT --- 45 In the second key-log printing mode the output display unit displays the same in~ormation as during the program entering mode.
The KEY LO& mode key is a toggling on-of~ key (i.e.
repeated depressions of the key alternately switch the calculator in and out of either the first or the second key-log printing mode). A key-log indicator light 19 positioned immediately below the KEY LOG mode key is turned : on when the calculator is operating in either key-log printing mode.
Program Ke~_ (LIST, LOAD, RECORD) The LIST program key is depressed, when the cal-culator is in the manual operating mode, first key-log print-ing mode, second key-log printing mode, or program entering mode, to place the calculator in the program-list printing mode. In this mode, the output printer unit prints out an octal numeric representation o~ keycodes then stored as program steps in the program storage section of the RWM and a decimal numeric representation of the addresses of these program steps. These program steps and addresses are printed out in a list beginning with the address initially , , : , - - ~ .~' . ': . -.; , j . . .. .
-~0587~7 specified by the user program counter and ending with the address specified by the user program counter when an END
program step is encountered or the STOP key is depressed.
The user may select the starting address nnnn of the list by depressing the GO TO key followed by the decimal digit keys (0-9) designating the desired starting address nnnn, or simply by depressing the END key if the starting address is 0000. Similarily, the user may terminate the list at any time by depressing the STOP key. When the program-list operation is terminated either by an END program step or by depression of the STOP key, the calculator reverts to its original manual operating, first or second key-log printing, or program entering mode. If the program-list operation is terminated by an END program step, the user program counter specifies the address of the END program step. However, if the program-list operation is terminated by depression of the ~TOP key, the user program counter speci~ies the address of the next program step to have been encountered had the STOP key not been depressed.
The list printed out by the output printer unit serves as a permanent record of a sequence of program steps stored as a program, subprogram, or part thereof in the program storage section of the RWM and the address of these program steps. A typical list is illustrated by the right- and left-hand columns of numbers printed out on the strip of thermal-sensitive recording paper 22. If the alpha ROM module is plugg9d into the calculator, the output printer unit also prints out a mnemonic representation of each of these progr~m steps. This is illustrated by the central column of alpha- ;
meric characters printed out on the same strip of thermal-sensitive recording paper.
^-.: . . , . ,- : . ~ , . :
. ..... . ..
1051~767 The LOAD program key is depressed, when the.cal-culator is in the manual operating mode or the ~irst key-log printing mode> to place the calculator in the magnetic card reading mode. During this mode, progra~ steps re-corded on one or more external magnetic cards 16 are read by the magnetic card reading and recording unit and stored in the program storage section o~ the RWM. In order to properly accomplish this program loading operation:
1. The user program counter is set to the desired starting address nnnn of the program storage section to be loaded. This may be accomplished b~ depressing the ~0 TO
key followed by those decimal degit keys desig~ating the desired starting address nnn~ or simply by depressing the END key i~ the desired starting address is OOOO.
2. A recorded magnet~-c card 16 inserted into an input receptacle 186 o~ the magnetic card reading and re-cordi~g ~nit-with the first side 187 to be read placed in the operative reading and recording position as shown in Figure 1.
3. The LOAD key is depressed, thereby causing the magnetic card readlng and recording unit to begin reading the flrst recorded side of the magnetic card and turning on an INSERT CARD ~ndicator light 19 positioned immediately below and between the LOAD and RECORD program keys. This . program reading operation ~ill terminate and the INSERT
.
CARD ~ndicator light will turn off when an END (i.e. terminating~
program step is read The calculator will thereupon revert to the original manual operat~ng or ~irst key-log printing mode with the user program counter specifying the address o~ the END program step. In any case, the m2gnetic card f~
.,:
10587tj7 will be partially ejected at an output receptacle 188 of the magnetic card reading and recording unit after each reading pass has been completed.
4. If the INSERT CARD indicator light remains on and the magnetic card reading and recording unit continues to run, the partially ejected magnetic card is retrieved from output receptacle 188, turned around, and the same magnetic card (or another magnetic card, as appropriate) inserted into input receptacle 186 with the next side 189 to be read placed in the operative reading and recording position. The magnetic card reading and recording unit thereupon begins reading this next recorded side. This program reading operation is repeated, if necessary, until it is terminated by reading an END program step. If desired, program reading operation may also be terminated by depressing the STOP key. The calculator will thereupon also revert to the original manual operating or first key-log printing mode, but with the user program counter specifying the address of the next program step to have been read and loaded into the program storage section of the RWM had the program reading operation not been so termi-nated.
When the program reading operation is terminated by an END program step, the user program counter is left speci-fying the address of this END program step so that additional program steps, subprograms, and programs may be chain-loaded into the calculator without extra effort by simply repeating steps 2, 3, and 4 above. The first additional program step will over-write the last encountered END program step there-by leaving only a final END program step at the completion 105~7~7 of the composite program. Similarly, when the program reading operation is termina$ed by depressing the STOP key, the user program counter is also ~eft specifying the address of the next program step to have been read so that ad-ditional program steps, subprograms, and programs may also - be chain-loaded by simply repeating steps 2, 3, and 4 above.
The RECORD program key is depressed, when the calculator is in the manual operating mode or the first key-log printing mode, to place the calculator in the magnetic card recording mode. During this mode program steps stored in the program storage section of the RWM
are recorded on one or more external magnetic cards by the magnetic card reading and recording unit. In order to properly accomplish this program recording operation:
1. The user program counter is set to the starting address nnnn of the stored program to be recorded. This may be accomplished by depressing the GO TO key followed by the decimal digit keys designating the required address nnnn, or simply by depressing the END key if the starting address is 0000.
2. A magnetic card 16 is inserted into input re-ceptacle 186 of the magnetic card reading and recording unit with the first side 187 of the card to be recorded placed in the operative reading and recording position as shown.
3. The RECORD program key is depressed, thereby causing the magnetic card reading and recording unit to be-gin recording the ætored program onto the first side of the magnetic card and turning on the INSERT C M D indicator light 19. This program recording operation will terminate and the INSERT CARD indicator light turn off when an END
- ~ns~7~
program step is recorded. The calculator will thereupon revert to the original manual operating or first key-log printing mode with the user program counter specifying the address of the END program step. In any case, the magnetic card will be partially ejected at output receptacle 188 of the magnetic card reading and recording unit after each recording pass has been compléted.
4. I~ the INSERT CARD indicator light remains on and the ~agnetic card reading and recording unit continues to run, the partially e;ected card is retrieved from output receptacle 188, turned around, and the same magnetic card (or another magnetic card, as appropriate) inserted into input receptacle 186 with the next side 189 to be recorded placed in the operative reading and recording pos~tion.
The magnetic card reading and recording unit thereupon be-gins recordi~g on this next side. This program recording operation is repeated, if necessary, until it is terminated by recording an END program step. If no END program step is encountered, the calculator will continue to request 20- more magnetic card recording passes until 2,036 progra~
steps are recorded, regardless of the aotual a~ount of pro-gram storage memory installed in the calculator. If de-sired, the recording operation can`be terminated at any time by depressing the ~TO~ ~ey The calculator ~ill there-upon also revert to the original manual operattng or first key-log printing mode but with the user program counter left speci~ying the address of the next program step to have been recorded had the recordin~ operation not been so termi- -nated.
Once the progr~m is recorded on one or both sides 105~7ti7 of one or more magnetic cards 16, it may be protected against undesired erasures by punching out a perforated portion 190 at the leading edge of each side on which it is recorded.
If a protected (notched) magnetic card is inserted into input receptacle 186 of the magnetic card reading and re-cording unit and the RECORD key depressed, the STATUS
(error) indicator light 19 will turn on and will remain on while the magnetic card reading and recording unit drives the magnetic card to output receptacle 188, whereupon the STATUS light will be extinguished. Nothing will be recorded on the protected magnetic card during this recording pass nor will there be any impairment of the calculator itself or the information previously recorded on the protected magnetic card. The calculator and the magnetic card unit will simply continue to wait for a nonprotected magnetic card to be inserted into input rsceptacle 186 for the mag-netic card reading and recording unit.
Automatic Operating Mode Control Keys (CONTINUE, STOP~ END, PAUSE) The CONTINUE key is depressed, when the calculator is in the manual operating mode or the first key-log printing mode, to start the automatic execution of a program or sub-program stored within the program storage section of the RWM. Automatic execution begins at the address specified by the user program counter. Thus, in order to execute a desired program or subprogram stored within the program storage section of the RWM:
1. The user program counter is set to the starting address nnnn of the desired program or subprogram. This is accomplished by depressing the GO TO key followed by those decimal digit keys designating the starting address 76~
nnnn of the desired programO If the starting address is 0000, this may be accomplished by simply depressing the END keyO
2. The CONTINUE key is depressed, when the cal-culator is in the manual operating mode or the ~irst key-log printing mode, to place the calculator in the automatic operating mode and begin automatic execution of the stored program or subprogram at the address nnnn specified by tha user program counter. Automatic execution will continue until a STOP or END program step is encountered or a STOP
key is depressed as described below.
The STOP key is depressed, when the calculator is in the automatic operating mode, to halt the automatic execution o~ a stored program or subprogram immediately after completion of the program step then being executed.
Automatic execution of a stored pro~ram or subprogram is similarly halted when a STOP program step is encountered.
In either case the calculator will thereupon revert to -the original manual operating or first key-log printing mode with the program counter specifying the address of the ne~t program step to be encountered. The user may then operate the calculator in the manual operating mode to enter data required by the program being executed or to perform other calculations. So long as the user does not depress the GO TO or END key or perform some other opera-tion altering the last setting of the user program counter, he may resume automatic operation of the calculator at any time by simply depressing the CONTINUE key again.
As described above, the STOP key may also be de-pressed, when the calculator is in the program-list printing ~:: ~ . . .
1058~6~
mode, the magnetic card reading mode, or the magnetic card recording mode to halt the program-list printing operation, the magnetic card reading operation or the magnetic card recording operations, respectively. In each of these cases the calculator will revert to the mode it was in immediately prior to the halted operation with the user program counter specifying the address o~ the next program step to have been printed, read, or recorded had the STOP key not been depressed.
The END key is depressed, ~hen the calculator is in the manual operating mode, to set the user program counter to address 0000 in the program storage section of the RWM (this is equivalent to depressin~
the GO TO, O, O, O, and o keys). An END program step terminates the automatic execution of a stored program by the calculator and resets the user program cou~ter to the ~irst a~ailable address 0000 ii the program storage section oi the R~. The calculator thereupon reverts to the original manual operating or ~irst key-log printing mode, from which automatic operation was in~tiated. Auto-matic execution may then be resumed by depresstng the CONTINUE key, i~ the desired starting address is 0000 or by repeating steps 1 and 2 described above in connection with the CONTINUE key i~ the desired starting address is not 0000. An END program step also clears any subrouti~e return-address to which return has not by then been made.
As described above, it also termi~ates the program listing, magnetic card ~eading, and magnetic card record~ng opera-tions.
The PA~SE key is typically used only as a program ._ 10587~;7 s~ep. Automatic execut~ion of a stored program or sub-program is automatically halted ~or a 1/4 second pause interval whenever a PAUS~ program step is encountered or the PAUSE key is depressed. This enables partial results of a calculation to be displayed by the output display unit during automatic execution o~ the stored program or subprogram. Successive PAUSE program steps may be employed to increase the duration of the pause interval by 1/4 second increments. Automatic execution o~ the stored pro-gram or subprogram automatically resumes a~ter the pause interval.
~ PA~SE program step may also be used as a con-ditional stop pe~mitting the user to stop,the automatic operation of the calculator ~m~ediately after execution of any PA~SE program step. This is accomp}ished by simply depressing any key (other than STOP) during automatic e~ecu*ion o~ the program until the PAUSE program step has been executed. In other words/ a PAUSE progra~ step im-mediately followed by depression o~ any ~ey other than STOP
has the same effect as depressing STOP, with the advantage that automatic execution of a stored program or subprogram may thereby be precisely halted at one or more predetermined program steps if the user so desires. Automatic execution of the stored program may then be resumed by depressing the CONTINUE key.
Decimal Dis~lay Keys (FLOAT FIg t~ ) -These keys are employed to control th~ format of ~umbers displa~ed by the output display unit when the caI-culator is in the manual operating and ~irst key-log printing modes. Either a ~ixed or a ~loating decimal paint ~ormat ~05~'7~7 may be used A fixed point indicator light 19 positioned immediately below the FIX () key is turned on when the fixed decimal point format is being used. Similarly, a floating point indicator light positioned immediately below the FLOAT key is turned on when the floating decimal point format is being used.
In the fixed decimal point format, numbers appear in the form in which they are most commonly written. The decimal point is fixed in its correct position. In the ~loating decimal point format, numbers appear in a normalized form with the decimal point located immediately after the most significant non-zero digit of the normalized number.
Each normalized number is followed by an exponent comprising a positive or negative power of ten and representing the number of digit places that, and the direction in which, the decimal point must be moved to express the normalized number in the fixed decimal point format. The following examples illustrate the relationship between numbers ex-pressed in both the fixed and floating decimal point for-mats.
FIXED DECIMAL FLOATING DECIMAL
POINT FORMAT POINT FORMAT
1234.5 =1.2345 x 103 0.0012345 ~1.2345 x 10-3 -1.2345 =-1.2345 x 10 When the calculator is turned on and automatically initialized, the output display unit displays numbers in the floating decimal point format. If the output display is switched to the fixed decimal point format, it may subsequently be switched back to the floating decimal point format by simply depressing the FLOAT key. E~ery " "'`"'` :
iO5~
number displayed in the floating decimal point format in-cludes the sign (if negative) and ten most significant digits of the normalized number followed by the sign (if negative) of the exponent and two exponent digits This is illustrated by the following examples:
NUMBERS TOFLOATING DECIMAL
BE DISPLAYED POINT DISPLAY
1234.5 1.234500000 03 0.0012345 1.234500000 -03 -1.2345 -1.234500000 00 The output display may be changed to the fixed decimal point format by depressing the FIX () key followed by a decimal digit key designating the desired number n (0-9) of digits to be displayed to the right of the decimal point. Less significant digits are not displayed, and the least significant digit to be displayed is rounded up if the nondisplayed next least significant digit is five or greater.
This is illustrated by the following examples for different values of n:
BE DISPLAYED OF n POINT DISPLAY
. . . _ . .
123.456784 2 123.46
-6.703256 2 -6.70 123.456784 5 123045678 -6.703256 5 -6.70326 123.456784 0 123.
-6.703256 0 -7.
If the FIX () key is depressed but not followed by a decimal digit key, the calculator will automatically treat the next key depressed as being the O key (i.e. n will thereupon equal O as in the last example).
1(~5~ 7 Numbers of up to (and including) ten significant digits and their signs (if negative) may be displayed in the fixed decimal point format. Thus, (10-n) digits may be displayed to the left of the decimal point. If a number to be displayed has more than (10-n) digits to the left of the decimal point (i.e. is too large for the selected value of n), the display of that number (not the whole display) overflows and thereupon reverts to the floating decimal point format. This is illustrated by the fixed decimal point display of Figure 1 wherein the numbers con-tained in the x and Y registers have overflowed and are therefore displayed in the floating decimal point format.
It is also illustrated by the following example:
NUMBER TO VALUE ACTUAL
BE DISPLAYED OF n NUMBER DISPLAYED
1234567.8g 5 1.23456789 06 If the first non-zero digit of a number to be displayed is more than n digits to the right of the decimal point (i.eO
is too small for the selected value of n), the display of that number (not the whole display) underflows. In this case only zeros will be displayed. This is illustrated by the following example:
NUMBER TO VALUE ACTUAL
BE DISPLAYED OF n NUMBER DISPLAYED
0.0000012 3 o.ooo Regardless of the way in which numbers are displayed, the calculator always stores all numbers and performs all calculations in the floating decimal point format. Further-more, regardless of the number of digits entered or displayed, each number is stored with twelve significant digits, their lOS8767 associated sign, a two-digit exponent, and its associated sign. Up to (and including) ten significant digits, their associated sign, the two-digit exponent, and its associated sign can be displayed (however, no sign is displayed for positive numbers or exponents). The remaining two digits (called guard digits) are not displayed. They are employed to maintain greater than ten-place accuracy during cal-culations and also to automatically round the tenth dis-played digit.
The calculator has a dynamic range o~ from ~10 98 to i9.999999999(99) x 1098~ Whenever this range is ex-ceeded during a calculation the STATUS indicator light 19 turns on.
Numeric Data Entry Keys (0-9), ., ENTER EXP, CHG SIGN, ~) The decimal digit keys 0-9 are depressed to enter numbers into the x-register. Numbers are entered serially, the last digit entered becoming the least significant digit.
For example, the number 1325 is entered by sequentially depressing the decimal digit keys l, 3, 2, and 5. A number entered into the x-register is terminated as soon as any non-data-entry key is depressed. Another number entered into the x-register will automatically replace a terminated number, but will become a part o~ any non-terminated number.
The decimal point (.) key is depressed to enter the decimal point into the x-register. For example, the number 1.234 is entered by sequentially depressing the 1, ., 2, 3, and 4 keys. ~egardless o~ the display format, it is not necessary to use the decimal point key when entering integers.
I~ the decimal point key is not used, the decimal point will be assumed to have ~ollowed the ~ast-entered digit. When 1~587f~i~
the fixed decimal point display format is used, the cal-culator automatically positions the decimal point. Simi-larly, when the floating decimal point display format is used the calculator automatically corrects the exponent according to the position of the decimal point.
The ENTER E~P key is depressed ~ollowed by one or two decimal digit keys to enter a one- or two-digit exponent (power of ten) into the x-register, the last digit entered becoming the least significant digit. I~ a third digit is entered, it will terminate entry of the exponent and begin a new numeric data entry. A non-terminated number in the x-register may be multiplied directly by successive powers of ten by simply entering successive e~-ponents. For example, the product of 8.3 x 102 x 1014 may be obtained by sequentially depressing the 8, ., 3, ~NTER
EXP, 2,ENTER EXP, 1, and 4 keys. I~ the ENTER EXP key is depressed as the ~irst key o~ a numeric data entry (i.e.
before any of the decimal digit keys ha~e been depressed or following a terminated number),the number 1 is entered into the x-register. ~or example, the number 1 g 1016 may be entered by depressing the ENTER E~P, 1, and 6 keys.
The C~G SIGN key is depressed to change the sign of any terminated or u~terminated number in the ~-register.
If the C~G SIGN key is depressed as the ~irst key o~ a numeric data entry, it changes the sign of the number then in the x-register (whate~er the sign may be) and, ance that number is replaced by the ~irst digit o~ the new data entry, it prefaces the ne~ data entry with a negative sig~.
This is illustrated by the following e~ample:
." ~ ,.
105l~7~;7 KEYS DEPRESSEDCONTENTS OF x-REGISTER
-123.45 6 -6.
-6.703256 0 -7.
If the FIX () key is depressed but not followed by a decimal digit key, the calculator will automatically treat the next key depressed as being the O key (i.e. n will thereupon equal O as in the last example).
1(~5~ 7 Numbers of up to (and including) ten significant digits and their signs (if negative) may be displayed in the fixed decimal point format. Thus, (10-n) digits may be displayed to the left of the decimal point. If a number to be displayed has more than (10-n) digits to the left of the decimal point (i.e. is too large for the selected value of n), the display of that number (not the whole display) overflows and thereupon reverts to the floating decimal point format. This is illustrated by the fixed decimal point display of Figure 1 wherein the numbers con-tained in the x and Y registers have overflowed and are therefore displayed in the floating decimal point format.
It is also illustrated by the following example:
NUMBER TO VALUE ACTUAL
BE DISPLAYED OF n NUMBER DISPLAYED
1234567.8g 5 1.23456789 06 If the first non-zero digit of a number to be displayed is more than n digits to the right of the decimal point (i.eO
is too small for the selected value of n), the display of that number (not the whole display) underflows. In this case only zeros will be displayed. This is illustrated by the following example:
NUMBER TO VALUE ACTUAL
BE DISPLAYED OF n NUMBER DISPLAYED
0.0000012 3 o.ooo Regardless of the way in which numbers are displayed, the calculator always stores all numbers and performs all calculations in the floating decimal point format. Further-more, regardless of the number of digits entered or displayed, each number is stored with twelve significant digits, their lOS8767 associated sign, a two-digit exponent, and its associated sign. Up to (and including) ten significant digits, their associated sign, the two-digit exponent, and its associated sign can be displayed (however, no sign is displayed for positive numbers or exponents). The remaining two digits (called guard digits) are not displayed. They are employed to maintain greater than ten-place accuracy during cal-culations and also to automatically round the tenth dis-played digit.
The calculator has a dynamic range o~ from ~10 98 to i9.999999999(99) x 1098~ Whenever this range is ex-ceeded during a calculation the STATUS indicator light 19 turns on.
Numeric Data Entry Keys (0-9), ., ENTER EXP, CHG SIGN, ~) The decimal digit keys 0-9 are depressed to enter numbers into the x-register. Numbers are entered serially, the last digit entered becoming the least significant digit.
For example, the number 1325 is entered by sequentially depressing the decimal digit keys l, 3, 2, and 5. A number entered into the x-register is terminated as soon as any non-data-entry key is depressed. Another number entered into the x-register will automatically replace a terminated number, but will become a part o~ any non-terminated number.
The decimal point (.) key is depressed to enter the decimal point into the x-register. For example, the number 1.234 is entered by sequentially depressing the 1, ., 2, 3, and 4 keys. ~egardless o~ the display format, it is not necessary to use the decimal point key when entering integers.
I~ the decimal point key is not used, the decimal point will be assumed to have ~ollowed the ~ast-entered digit. When 1~587f~i~
the fixed decimal point display format is used, the cal-culator automatically positions the decimal point. Simi-larly, when the floating decimal point display format is used the calculator automatically corrects the exponent according to the position of the decimal point.
The ENTER E~P key is depressed ~ollowed by one or two decimal digit keys to enter a one- or two-digit exponent (power of ten) into the x-register, the last digit entered becoming the least significant digit. I~ a third digit is entered, it will terminate entry of the exponent and begin a new numeric data entry. A non-terminated number in the x-register may be multiplied directly by successive powers of ten by simply entering successive e~-ponents. For example, the product of 8.3 x 102 x 1014 may be obtained by sequentially depressing the 8, ., 3, ~NTER
EXP, 2,ENTER EXP, 1, and 4 keys. I~ the ENTER EXP key is depressed as the ~irst key o~ a numeric data entry (i.e.
before any of the decimal digit keys ha~e been depressed or following a terminated number),the number 1 is entered into the x-register. ~or example, the number 1 g 1016 may be entered by depressing the ENTER E~P, 1, and 6 keys.
The C~G SIGN key is depressed to change the sign of any terminated or u~terminated number in the ~-register.
If the C~G SIGN key is depressed as the ~irst key o~ a numeric data entry, it changes the sign of the number then in the x-register (whate~er the sign may be) and, ance that number is replaced by the ~irst digit o~ the new data entry, it prefaces the ne~ data entry with a negative sig~.
This is illustrated by the following e~ample:
." ~ ,.
105l~7~;7 KEYS DEPRESSEDCONTENTS OF x-REGISTER
-123.45 6 -6.
7 -67.
The CHG SIGN key is also depressed immediately following the ENTER EXP key (or the last-entered digit of the exponent) to enter negative exponents into the x-register. For example, the number 8.3 x 10 2 x 104 x 10 1 may be entered by sequentially depressing the keys 8, ., 3, ENTER EXP, CHG SIGN, 2, ENTER EXP, 4, ENTER EXP, CHG
SIGN, 1, and 2 keys and the number 1 x 10 16 may be entered by depressing the ENTER EXP, 1, 6, and CHG SIGN
keys.
The ~ key is depressed to enter the value of (i.e. 3.14159265360) into the x-register.
~lear keys (CLEAR x CLEAR) The CLEAR x key clears (i.e. sets to zero) the x-register. It does not af~ect any other registers.
The CLEAR key clears the x-, y-, and z- (working) registers, clears the a- and b- (data storage) registers, and clears (or resets) the flag, which can be set by the SET FLAG key as hereinafter explained. It does not affect any other registers When the calculator is switched on, all o~ the working, program, and data storage registers of the RWM are automatically cleared. Any terminated numbers subsequently stored in them will automatically be cleared and replaced by any new data entry.
.
~058'7~;7 Working Register Control Keys (t, 1 ROLL t, x~y ) The working register control keys are used to re-position the contents of the x-, y-, and z-registers. They do not affect any other registers.
When the t key is depressed, the contents of the y-register shift to the z-register and the contents of the x-register appear in both the x- and y-registers. The contents of the z-register are lost.
When the ~ key is depressed, the contents of the y-register shift to the x-register and the contents of the z-register appear in both the y- and z-registers. Th0 contents of the x-register are lost.
When the ROLL t key is depressed, the contents of the x-register shift to the y-register, the contents of the y-register shift to the z-register, and the contents of the z-register shift to the x-register. No information is lost.
The x~y key is depressed to exchange the contents of the x- and y-registers. The contents of the z-register are unaffected by this operation.
Arithmetic Keys (+ - x, i) These four keys are used to perform working re-gister arithmetic operations in which the contents of the x- and y-registers are employed as operands. The results of these arithmetic operations are stored in the y-register and the contents of the x-register remain unchanged by the arithmetic operations performed These four keys do not affect any other registers.
The + key is depressed to add the number in the x-register to the number in the y-register, the sum appearing in the y-register.
" ,~
"
; ~
-1~5~7~7 The - key is depressed to subtract the number in the x-register from the number in the y-register, the dif-ference appearing in the y-register.
The x key is depressed to multiply the number in the y-register by the number in the x-register, the pro-duct appearing in the y-register.
The . key is depressed to divide the number in the y-register by the number in the x-register, the quotient appearing in the y-register.
The use of these keys and the working register control keys is illustrated by the following method of computing (3 x(48)-x-~--2-r8 69) = 1.1 :
CONTENTS OF CONTENTS OF CONTENTS OF
XEYS DEPRESSED x-REGISTER y-REGISTER z-REGISTER
~ , _ . . .
~ 3 3 0 20 ROLL ~ 0 4 12
The CHG SIGN key is also depressed immediately following the ENTER EXP key (or the last-entered digit of the exponent) to enter negative exponents into the x-register. For example, the number 8.3 x 10 2 x 104 x 10 1 may be entered by sequentially depressing the keys 8, ., 3, ENTER EXP, CHG SIGN, 2, ENTER EXP, 4, ENTER EXP, CHG
SIGN, 1, and 2 keys and the number 1 x 10 16 may be entered by depressing the ENTER EXP, 1, 6, and CHG SIGN
keys.
The ~ key is depressed to enter the value of (i.e. 3.14159265360) into the x-register.
~lear keys (CLEAR x CLEAR) The CLEAR x key clears (i.e. sets to zero) the x-register. It does not af~ect any other registers.
The CLEAR key clears the x-, y-, and z- (working) registers, clears the a- and b- (data storage) registers, and clears (or resets) the flag, which can be set by the SET FLAG key as hereinafter explained. It does not affect any other registers When the calculator is switched on, all o~ the working, program, and data storage registers of the RWM are automatically cleared. Any terminated numbers subsequently stored in them will automatically be cleared and replaced by any new data entry.
.
~058'7~;7 Working Register Control Keys (t, 1 ROLL t, x~y ) The working register control keys are used to re-position the contents of the x-, y-, and z-registers. They do not affect any other registers.
When the t key is depressed, the contents of the y-register shift to the z-register and the contents of the x-register appear in both the x- and y-registers. The contents of the z-register are lost.
When the ~ key is depressed, the contents of the y-register shift to the x-register and the contents of the z-register appear in both the y- and z-registers. Th0 contents of the x-register are lost.
When the ROLL t key is depressed, the contents of the x-register shift to the y-register, the contents of the y-register shift to the z-register, and the contents of the z-register shift to the x-register. No information is lost.
The x~y key is depressed to exchange the contents of the x- and y-registers. The contents of the z-register are unaffected by this operation.
Arithmetic Keys (+ - x, i) These four keys are used to perform working re-gister arithmetic operations in which the contents of the x- and y-registers are employed as operands. The results of these arithmetic operations are stored in the y-register and the contents of the x-register remain unchanged by the arithmetic operations performed These four keys do not affect any other registers.
The + key is depressed to add the number in the x-register to the number in the y-register, the sum appearing in the y-register.
" ,~
"
; ~
-1~5~7~7 The - key is depressed to subtract the number in the x-register from the number in the y-register, the dif-ference appearing in the y-register.
The x key is depressed to multiply the number in the y-register by the number in the x-register, the pro-duct appearing in the y-register.
The . key is depressed to divide the number in the y-register by the number in the x-register, the quotient appearing in the y-register.
The use of these keys and the working register control keys is illustrated by the following method of computing (3 x(48)-x-~--2-r8 69) = 1.1 :
CONTENTS OF CONTENTS OF CONTENTS OF
XEYS DEPRESSED x-REGISTER y-REGISTER z-REGISTER
~ , _ . . .
~ 3 3 0 20 ROLL ~ 0 4 12
8 8 4 12 x~y 4 8 12
9 9 8 12 ~ 9 -1 12 ~ -1 12 12 + -1 11 12 ROLL~ 12 -1 11 x~y -1 8 11 :
' ~OS~7~'7 (~omputing continued) 1~ 11 11 The answer, appearing in the y-register, is underlined.
Unary Function Keys ( ~
These five keys are used to perform unary functions in which the contents of the x-register are employed as the argument. The results of the unary functions performed are placed in the x-register. These five keys do not affect any other registers.
The ~ key is depressed to calculate the square root of the number in the x-register. If the number is negative, the square root of its absolute value is cal-culated and the STATUS indicator light 19 turned on. The STATUS indicator light remains on until the next key is depressed.
The x key is depressed to calculate the square of the number in the x-register. If the number is greater than ~~ x 10 , the number 9 99999999999 x 1098 is placed in the x-register and thè STATUS indicator light 19 turned on. The STATUS indicator light remains on until the next key is depressed.
The l/x key is depressed to calculate the reciprocal of the number in the x-register. For example, 1/9.8 may be calculated by sequentially depressing the 9, ., 8, and l/x keys.
The int x key is depressed to truncate the fractional ~O~i~7~7 part of the number in the x-register. It does not affect the sign of the integer part of the number. For example, if the number -5.9 is contained in the x-register when the int x key is depressed, the number -5.0 will remain.
The CHG SIGN key has already been described above in connection with the numeric data entry keys.
Data-Storage and Register-Transfer Keys (a, b, x)(), y~(), x~(), yf I ~ ~ INDIRECT) These keys are variously used to perform direct data storage and recall, direct storage-register arithmetic, in-direct data storage and recall, and indirect storage-register arithmetic operations. As illustrated below, the a and b keys are depressed following any of the remaining five keys of this group to specify the a- and b-registers, respectively.
The a and b keys may also be used to directly recall the contents of the a- and b-registers, respectively, to the -x-register without changing the contents of the a- and b-registers themselves. Either of these functions of the a and b keys may be performed in response to a single key-strcke thereof. For example, the contents of the b-register may be directly recalled to the x-register by simply de-pressing the b key alone. As noted above the contents of the b-register itself will remain unchanged by this recall operation.
The x~(), y~(), x~(), andyfo keys are used to control - the transfer of numeric data from the x- and y-registers to the a- and b-registers and 49 additional storage registers available to the user (at user addresses 000-048) in the data storage section o the RW~ and from these storage registers to the x- and y-registers. If the 60 optional storage re-gisters included in the data storage section of the RWM
- . -~ -:
105~'7~7 (at user addresses 049-108) are made available to the user, these same four keys may also be used to control the trans-fer of numeric data from the x- and y-registers to these optional storage registers and from them to the x- and y-registers.
The specific storage register to or from which numeric data is transferred by these four keys is specified by the key or keys depressed immediately following them.
Accordingly, the a key is used to specify the a-register, the b key to specify the b-register, and the decimal digit keys 0-9 to selectively specify any of the available storage registers at user addresses 000-108 of the data storage section of the RWM. For simplicity of description, the available storage registers at user addresses 000-108 will hereinafter be referred to by their addresses (i.e.
the storage register at any available address nnn will be referred to as register nnn). If a non-existant or non-available storage register is designated, the STATUS in-dicator light is turned on, no data transfer or arithmetic operation is performed, and the operation of the calculator halts. (If such a register is designated while the cal-culator is automatically executing a stored program, the program-counter specifies the program step immediately following the improper operation.) The x~() key is depressed followed by the a key, the b key, or decimal digit keys n, n, n to directly store the contents of the x-register in the a-register, the b-register, or register nnn respecti~ely. In any case, the contents of the x-register remain unchanged by this opera-tion. For example, ~ may be stored directly in the ~ : , ~0587~7 b register by sequentially depressing the ~, x~(), and b keys. Similarly, ~ may be stored directly in register 027, by sequentially depressing the ~, x~(3, 0, 2, and 7 keysO
; In each of these examples, ~ will also remain in the x-register.
The y~() key is depressed followed by the a key, the b key, or decimal digit keys n, n, n to directly store the contents oi the y-register in the a-register, the b-register, or register nn~ respectively. In any case, the contents of the y-register remain unchanged by this opera-tion. For example, a number contained in the y-register may be stored directly in register 000, without changing the contents of the y-register, by sequentially depressing the y~(), 0, 0, and 0 keys.
The x-() key is depressed ~ollowed by the a key, the b key, or decimal digit keys n, n, n, to directly re-call the contents of the a-register, the b-register, or register nnn, respectively, to the x-register In any case, the contents o~ the recalled register remain unchanged by this operation. For example, the contents o~ register 012 may be recalled to the x-register, without changing the contents of register 012, by sequentially depressing the x (), 0, 1, and 2 keys. Recall ~rom the a- or b-register to the x-register may be accomplished in the same manner as described above, by simply depressing the a or b key aloneO
The y~) key is depressed followed by the a key, the b key, or decimal digit keys n, n, n, to exchange the con-tents o~ the y-register with the contents o~ the a-register, the b-register, or register nnn, respectivelyO For example, a number in the y-register may be exchanged with a number , . .. . .
~058767 in register 048 by depressing the y~l), 0, 4, and 8 keys.
The direct storage and recall operations performed by the x~(), y>(), x (), and y~l) keys may be conveniently summarized by employing the following notation:
IY~()l ~ !
lX'()J ~nnnJ
In this notation each pair of braces implies that any one of the enclosed group of key operations or storage registers may be selected. The order of the successive pairs of braces from left to right specifies the key-sequence re-quired to perform the selected key operation with the selected storage register. Thus, any of the key operations enclosed in the left-hand pair of braces may be employed with any of the storage registers enclosed in the right-hand pair of braces by first depressing the key performing the selected key operation and then depressi~g the key or keys designating the selected storage register. The usefull-ness of these direct storage and recall operations is il-lustrated by the following method of multiplying a series of numbers nl, n2, etc. by a constant K, where nl = 3, n2 = 11.2, etc. and K = 1.684:
KEYS CONTENTS OF CONTENTS OF CONTENTS OF
DEPRESSED x-REGISTER y-REGISTER a-~EGISTER
. . ~
CLE M O O
1, O, 6, 8, 4, 1.684 0 0 y~, a 1.684 O 1.684 3 3 0 1,684 30 ~ 3 3 1,684 ~058767 (Illustration continued) a 1.684 3 1.684 X 1.684 5.0520 1.684 1, 1, ., Z 11.2 5 D 0520 1.684 11.2 11.2 1.684 a 1.684 11.2 1.684 X 1.684 18.8608 1.684 The answers, appearing in the y-register, are underlined~
The x~(), y)(), x (), and y,~l keys may also be em-ployed with the +, -, x, and : arithmetic keys to perform direct register-arithmetic operations in which the con-tents of the x-register or the y-register are employed as one operand and the contents of the a-register, the b-register, or register nnn are employed as the other operand.
These direct register-arithmetic operations may be sum-marized as follows by using the above-described notation:
~lT ~
Thus, the x)() key may be employed to directly per-form any of the arithmetic operations enclosed by the second pair of braces upon the contents of the x-register and the contents of any of the storage registers enclosed by the third pair of braces and store the result in the selected storage register without recalling the contents of the selected storage register and without changing the contents of the x-register. For example, the contents of the x-register may be subtracted from the contents of the b-register by sequentially depressing the x)(), -, and b keys.
~os~7~7 The difference is stored in the b-register, and the contents of the x-register remain unchanged by the operation. Simi-larly, the contents of register 042 may be divided by the contents of the x-register by sequentially depressing the x~(), s 0, 4, and 2 keys. The quotient is stored in re-gister 042, and the contents of the x-register itself re-main unchanged by the operation.
The y)() key may be similarly employed to directly perform any of the arithmetic operations enclosed by the second pair of braces upon the contents of the y-register and any of the storage registers enclosed by the third pair of braces and store the result in the selected storage re-gister without recalling the contents of the selected storage register and without changing the contents of the y-register. For example, the contents of the y-register may be added to the contents of the a-register by sequentially depressing the y~(), +, and a keys. The sum is stored in the a-register, and the contents of the y-register remain unchanged by the operation. Similarly, the contents of register 038 may be multiplied by the contents of the y-register by sequentially depressing the y~(), x, 0, 3, and 8 keys. The product is stored in register 038, and the contents of the y-register remain unchanged by the opera-tion.
The x () key may be employed to directly perform any of the arithmetic operations enclosed by the second pair of braces upon the contents of the x-register and the contents of any of the storage registers enclosed by the third pair of braces and store the result in the x-register without changing the contents of the selected storage register. For 1058~7 example, the contents of the a-register may be added to the contents of the x-register by sequentially depressing the x~(), +, and a keys~ The sum is stored in the x-register, and the contents of the a-register remain un-changed by the operation. Similarly, the contents of the x-register may be multiplied by the contents of register 022 by sequentially depressing the x (), x, 0, 2, and 2 keys. The product is stored in the x-register, and the contents of register 022 remain unchanged by the operationO
The y~l) key may be employed to directly perform any of the arithmetic operations enclosed by the second pair of braces upon the contents of the y-register and the contents of any of the storage registers enclosed by the third pair of braces and store the result in the y-register without changing the contents of the selected storage re-gister (i.e. the y~ may be used as though it were a yl() key in per~orming register-arithmetic operations).
For example, the contents of the b-register may be subtracted from the contents of the y-register by sequentially depressing the y~l~, -, and b keys. The dif-ference is stored in the y-register, and the contents of the b-register remain unchanged by the operation. Similarly, the contents of the y-register may be divided by the contents of regiters 039, by sequentially depressing the y~-, 2, O, 3, and 3 keys. The quotient is stored in the y-register, and the contents o~ register 039 remains unchanged by the operation.
The INDIRECT key is used with the above-described data-storage and register-tranæfer keys to perform indirect data-storage and recall and indirect register-arithmetic , 1058~7~j7 operations, in which the contents of a directly-addressed register (e.g. the a-register, the b-register or any of the registers nnn) are employed as the address of an indirectly-addressed storage register (e.g. any of the other storage registers nnn) to be used in these opera-tions. When indirectly addressing any of the storage re-gisters 000 through 048 or 108, care must be taken to in-sure that the directly-addressed register contains the proper address nnn of the indirectly addressed-register nnn. The indirect address used is the absolute value of the integer part of the contents of the directly addressed register. Thus, 1.732 will be treated as the address of register 001, -6.99 as the address of register 006, 0.999 as the address of register 000, and 106.75 as the address of register 106. Since the storage registers may only contain numeric data, the a- and b-registers may not be used as the indirectly-addressed registers in these opera-tions.
The indirect data storage and recall operations may be summarized as follows by again using the above-described notation without braces for the INDIRECT key:
Thus, the x~() and y)() keys may be employed with the INDIRECT
key to indirectly store the contents of the x- and y-registers, respectively in any storage register nnn designated by the contents of any of the other data storage registers. More-over, this may be accomplished without changing the contents -8~-.. ~ .
`` ~os~767 of the x- and y-registers or of the directly addressed storage register. For example, the contents of the x-register may be indirectly stored in the storage register designated by the contents of the a-register by sequentially depressing the x)(), INDIRECT, and a keys. The contents o~ the x-register and the a-register remain unchanged by this operation. Similarly, the contents of the y-register may be indirectly stored in the storage register designated by the contents of register 022 by sequentially depressing y~(), INDIRECT, 0, 2, and 2 keys. The contents of the y-register and register 022 remain unchanged by this operation.
The x-() key may be similarly employed with the INDIRECT key to indirectly recall to the x-register the contents of any storage register nnn designated by the contents of any of the other storage registers. This is accomplished without changing the contents of either the directly-or indirectly-addressed storage register. For example, the contents of the register nnn designated by the contents of the b-register may be indirectly recalled to the x-register by sequentially depressing the x (), INDIRECT, and b keys. The contents of the b-register and of the indirectly-addressed register remain unchanged by this operation.
The y~o key may be employed with the INDIRECT key to indirectly exchange the contents of the y-register with the contents of any storage register nnn designated by the contents of any of the other storage registers. This is accomplished without changing the contents of the directly-addressed storage register For example, the contents of the y-register may be indirectly exchanged with the contents 1058~7 of the register designated by register 041 by sequentially depressing the y~l), INDIRECT, 0~ 4, and 1 keys. The con-tents of register 041 remain unchanged by this operation.
The indirect register-arithmetic operations may be summarized as follows:
~ ~ INDI~ECT l ~ l b j In connection with the indirect register arithmetic opera-tions it should be noted that the INDIRECT key may also be depressed immediately after the selected arithmetic key. Thus, the indirect register-arithmetic operations may also be summarized as follows:
~ ~ J INDI~ECT ~ ~ }
Thus, any of the x)(), y)(), x (), and y~ keys may be employed with the INDIR$CT key and any of the arith-metic keys to indirectly perform register-arithmetic opera-tions employing the contents of either the x- or the y-register as one operand and the contents o~ any of the storage registers nnn designated by the contents of any of the other storage registers as the other operand. In the case of the x~() and y)() keys, the results of these operations are stored in the indirectly addressed storage register nnn, and the contents of the x- and y-registers apd the directly-addressed registers are not ~hanged.
Similarly, in the case of the x () and Y~ keys, the results 105~7~;7 of these operations are stored in the x- and y-registers, respectively, and the contents of the directly and in-directly addressed registers are not changed.
For example, the contents of the ~-register may be added to the contents of the register nnn designated by the contents of the a-register by sequentially depressing the x~(), INDIRECT, +, and a keys. The sum is stored in the indirectly-addressed register nnn, and the contents of the x-register and the a-register remain unchanged by this operation. Similarly, the contents of the storage register nnn designated by the contents of register 014 may be multiplied by the contents of the y-register by sequentially depressing the y~(), x, INDIRECT, 0, 1, and 4 keys. The product is stored in the indirectly-addressed storage register nnn, and the contents of the y-register and register 014 remain unchanged by the operation~ Simi-larly, the contents of the register nnn designated by the contents of the b-register may be subtracted from the con-tents of the x-register by sequentially depressing the x (), INDIRECT, -, and b keys. The difference is stored in the x-register, and the contents of the b-register and the indirectly-addressed register remain unchanged by the opera-tion. As a last example, the contents of the y-register may be divided by the contents of the register nnn designated by the contents of register 008 by sequentially depressing the y,l), INDIRECT, :, 0, 0, and 8 keys. The quotient is stored in the y-register, and the contents of register 008 and the indirectly-addressed register nnn remain unchanged by this operation.
- , - :
Multiple-level indirect addressing may be performed to any desired level in the above described indirect data storage and recall and indirect register arithmetic opera-tions by sequentially depressing the INDIRECT key once for each desired level. Multiple-level indirect data storage and recall may be summarized as follows:
INDIRECT .,., INDIIIECT b ¦
Thus, for example, the contents of the x-register may be indirectly stored in the contents of register 017 designated by the contents of register 003 in turn designated by the contents of the a-register by sequentially depressing the x~(), INDIRECT, INDIRECT, and a keys. The contents of the x-register, the a-register, and register 003 remain un-changed by this operation. Similarly, the contents of re-gister 046 designated by the contents of register 031 in turn designated by the contents of register 000 in turn designated by the contents of register 025 may be exchanged with the contents of the y-register by sequentially depressing the y~,, INDIRECT, INDIRECT, INDIRECT, 0, 2, and 5 keys.
The contents of registers 025, 000 and 031, remain un-changed by this operation.
Multiple level indirect register-arithmetic may be similarly summarized as follows:
INDIBECT .. INDIRIICT j I O
, . . . . .
-. . , ~)58767 OR
~ ¦ J l~DI~ECT ... INDIRECT {
Thus, assuming, for example, that the 60 optional storage registers 049-108 are available to the user, the contents of the y-register may be subtracted from the contents of register 108 designated by the contents of register 082, in turn designated by the contents of register 049 by sequentially depressing the y)(), INDIRECT, INDIRECT, -, O, 4, and 9 keys. The difference is stored in register 108 and the contents of the y-register, register 049, and register 082 remain unchanged by this operation. Simi-larly, the contents o~ the x-register may be divided by the contents of register 106 designated by the contents of register 056 in turn designated by the contents of the b-register by sequentially depressing the x~(), ., INDIRECT, INDIRECT, INDIRECT, and b keys The results are stored in the x-register, and the contents of the b-register and registers 003, 056, and 106 remain unchanged by this opera-tion.
Numeric Address Termination As described above, each of the available numerically-addressed storage registers 000 through 048 or 108 employed in the ~oregoing data-storage and register-trans~er opera-tions is properly addressed by selectively depressing the decimal digit keys to specify its three-digit address. Upon entry of the third digit, the numeric address is automati-cally terminated. Any immediately ~ollowing digit entries :. .
, .. . .
los~767 are therefore not intrepreted as part o~ the numeric ad-dress, but rather as the beginning of a new data entry.
Thus, for example, if the x~(), 1, 0, 3, 2, and 5 keys are sequentially depressed, the contents of the x-register are stored in register 103, and the number 25 is entered into the x-register. Similarly, if the y~(), +, 0, 0, 2, 1, and + keys are sequentially depressed, the contents of the y-register are added to the contents of register 002, and the number 1 is entered into the x-register and there-upon added to the contents of the y-register.
A numeric address may also be terminated, without entering leading zeros o~ the address, by depressing any non-numeric key except the STEP PRGM key or, if the cal-culator is in the manual operating or first key-log printing mode, the CONTINUE key. However, most of the terminating key entries that may be used will also be executed. For example, if the x)(), 2, and ~ keys are sequentially depressed, the contents of the x-register are stored in storage register 002 and also added to the con-tents of the y-register. Similarly, if the y-)(), +, 3, 8, and a keys are sequentially depressed, the contents of the y-register are added to the contents of register 038, and the contents of the a-register are recalled to the x-register.
When the calculator is in the manual operating or first key-log printing mode, the STOP key may be used to terminate a numeric address i~ a no-operation address-terminating key entry is desired. For example, by simply ;
depressing the x~(), 3, and STOP keys the contents of the x-register may be stored in register 003 without performing any other operation. Similarly, when formulating or ': ~
105~'7~'7 enterin~ a program by which the calculator is to be con-trolled in the automatic operating mode, a CONTINUE pro-gram step may be employed to terminate a numeric address if a no-operation address-terminating program step is desired. For example, i~ the program steps y)(), x, 2, 9, CONTINUE, and 3 are sequentially encountered when the calculator is in the automatic operating mode, the contents of register 29 are multiplied by the contents of the y-register, and the product is stored in register 2g. No operation is per~ormed by the CONTINUE program step, and the next program step 3 is stored in the x-register as the beginning o~ a new data entry.
Si~ce every numeric storage register except optional registers100-108 may be uniquely speci~ied by less than three digits, these abbreviated address-termination features permit signi~1cant reductions in the number o~
key-operations and program steps required to perform many calculations. Moreover, these same address termination features may be used in connection with the four-digit numeric addresses of the program storage section of the RWM to achieve still ~urther reductions in the number o~
key-operations and program-steps required to per~orm many calculations.
Program-Control ~eys (GO TO, IF x<y, IF x~y, IF x~y, IF FLAG, - S~T FLAG, T.~REL, RETUE~ ~
- All o~ the previously-described keys except the ELOAT, FI~(), R ~, PRG~, KEY LOG, LIST, LOAD, and RECORD
keys may be employed both ~or controlling the operation of the calculator during the manu~l operating and first key-log ~()S~'7~7 printing modes and for entering program steps into the calculator during the program entering and second key-log printing modes. When the calculator is in the manual operating mode, the user may continuously observe the output display of the contents of the x-, y-, and z-registers and, in accordance with his observations, make his own decisions about what to do next at any stage of the cal-culation. However, this is not possible when the calculator is executing a stored program at high speed in the auto-matic operating mode. The above eight program-control keys have therefore been provided to permit the calculator itself to test calculated quantities and make decisions based on those tests during the automatic execution of an internally-stored program. These eight keys may be used to permit unconditional branching (or transfers), condi-tional branching (or transfers), symbolic or labelled branching, storage of "yes-no" information in a flag and conditional branching based on that "yes-no" information at a later stage in the execution of a program, and un-conditional or conditional branches to pre-defined program routines with return to the main program sequence upon com-pletion.
Branching instructions in a program cause the user program counter to specify an address other than the next sequential address in the program storage section of the RWM~ whereupon execution of the program continues sequen-tially from the new address. If a branch is conditional, the calculator makes a decision, based upon a specified condition, whether or not to branch. However, if the branch is unconditional, the calculator has no option, and must branch to the address specified in the program (e.g.
by a GO TO program step followed by a numeric address nnnn).
The GO T0 key is depressed followed by decimal digit keys specifying a selected four-digit address nnnn in the program storage section of the RWM to set the user program counter to the selected address nnnn. When this sequence of keycodes is encountered as a sequence of pro-gram steps, an unconditional branch is made to the address indicated and the program step stored at that address is executed. Execution of the program then automatically con-tinues to run from that address.
For simplicity of description the terms "keys" and "program steps" will hereinafter be used synonomously since the remaining keys of this group are used almost exclusively to enter keycodes into the calculator as program steps during the program entering mode of the calculator. All of the program steps so entered are automatically executed during the automatic operating mode of the calculatorO
The four IF keys are used for conditional branching.
The IF x<y, IF x=y, and IF x>y keys compare the numeric values contained in the x- and y-registers to determine if the number in x is less than the number in y, equal to the number in y, or greater than the number in y respectively.
The IF FLAG key tests the condition ("yes-no") of the flag, which is controlled by the SET FLAG key hereinafter ex-plained. There can be only two possible results to each test made by each of these four keys. The condition tested is either "met" (YES) or ~not met" (N0).
When the condition tested is met (YES), the next program step following the 'IIF" is automatically executed.
1()587~7 However, when the condition tested is not met (N0), the calculator automatically skips (ignores) the next four program steps and continues execution at the fifth program step following the "IF".
If the program steps immediately following the "IF"
constitute a numeric address nnnn and the condition tested is met (YES), an automatic branch is made to that address nnnn. The program step stored at address nnnn is thereupon executed, and automatic execution of the program continued from there. If the program steps immediately following the "IF" constitute operations (e.g. +, t, etc.) then no branch occurs and the operations are executed.
When an IF program step (other than IF FLAG) is encountered, the two nu~bers in the x- and y-registers are automatically rounded before the test is made. In each register, the tenth digit of the number is rounded according to the value of the guard digits; the guard digits are then set equal to zeroO Thus the numbers to be tested actually have the same values as would appear in a floating point display with all ten significant digits displayed. After the test has been made, the numbers in the x- and y-registers retain their rounded values. This means that the actual values of the number in the x- and y-registers may be dif-ferent after the test than before. If the resulting slight loss in accuracy is undesireable, the numbers in the x- and y-registers can be stored in the data-storage section of the RW~ before the "IF" test is made and can be recalled and substituted for the rounded numbers after the "IF" test is completed.
The use of the IF x>y and IF x<y keys is illustrated _gg_ ~5i~ ~;7 by employing the following sequence of program.steps be-ginning with an IF x>y program step and including a three-step conditional routine for taking the absolute value of the contents of the y-register:
IF x>y conditional ~ x~y ~ 4-step conditional routine for ¦Y¦ ~CHG SIGN ~ sequence ~y CONTINUE J
If the contents of the x-register are greater in value than the contents of the y-register (i.e. condition met), then every program step in this sequence is executed and the ab-solute value of the contents of the y-register is calculatedO
As described above CONTINUE is a no-operation program step.
It is used in this and the following examples to fill in the fourth program step to be skipped if the test condition is not met. If the contents of the x-register are e~ual to or greater in value than the contents of the y-register (i.e.
the condition is not met), then the four program steps im-mediately following the IF x>y program step are skipped and execution continues beginning with the t program step. In this case the absolute value of the contents of the y-register is not calculated.
The use of the IF x-y key is illustrated by employing the following sequence of program steps:
IF x=y 3 4-step conditional sequence CONTINUE
CONTINUE
~OS8'7~i7 If the contents of the x-register equal the contents of the y-register in value (i.e. condition met), then every program step in this sequence is executed. This results in an auto-matic branch to execute the program step stored at user address 0023. However, if the contents of the x-register do not equal the contents of the y-register in value ~i.e.
condition not met), the four program steps immediately fol-lowing the IF x=y program step are skipped and execution con-tinues beginning with the + program step.
The use of the IF FLAG key is illustrated by the following sequence of program steps:
IF FLAG
,;
4-step conditional se~uence CONTINUE I
CONTINUE J
SET FLAG
If the flag controlled by the SET FLAG key has been set (i.e. condition met), then every program step in this se-~uence is executed. This results in an automatic branch to execute the program step stored at user address 0041. How-ever, if the flag controlled by the SET FLAG key has not been set (i.e. condition not met), then the four program steps immediately following the IF FLAG program step are skipped and execution continues beginning at the SET FLAG
program step by setting the flag.
The SET FLAG key establishes the condition to be tested by the IF FLAG key. The "YES" condition is established when a SET FLAG keycode is encountered either as a program step or as a keyboard entry. The "NO" condition is established ~, . . .
105~7~7 by clearing the ~lag. This occurs automatically whenever the calculator is switched on or whenever a CLEAR or IF FLAG key-code is encountered either as a program step or as a keyboard entry. If the flag condition must be retained ~or use later, the program must include a S~T FLAG program step in the se-quence o~ program steps executed following the ~lag-clearing program step. The flag enables the user to select the con-ditions which will determine whether a conditional branch (or operation) is to be made.
The T~REL key allows relocatable symbolic addresses to be used within a program. A LABEL key immediately fol-lo~ed by any other programmable key (e.g. LABEL, ~) except the END key serves as a symbolic address that may be in-s~rted in a program immediately before any program step a user may wish to relocate independently of its absolute (numeric) address. This symbolic address is relocated by a search command comprising a GO TO key immediately ~ollowed by the symbolic address itself (e.g. GO T0, T-~REL, ~) . In response to this search command, the user program counter is reset to the ~irst user available address 0000 in the program storage section of the R~M and is sequentially incremented in a search operation until the symbolic address ~e.g. T.ABEL, ~) is ~ound. -The user program counter the~ speci~ies the next address which i5 the program step designated by the symbolic address.
If the search command came from t~e keyboard~ the calculator waits ~or the next key to be depressed. ~owever, i~ the search co~mmand came ~rom the program, then execution automatlcally continues at the program ctep designated by the sy~bolic address. The keys o~ the symbolic address itself 1058~7 serve as no-operation codes and are ignored during execution of the program. This may be illustrated by the following sequence of program steps.
PROG~AM
ADDRESS _STEP
0101 ~
0102 etc.
. ' 0362 ___ 0366 etc.
The search for the symbolic address "LABEL, -!' is initiated immediately after address 0101 is designated by the user pro-gram counter and starts at address 0000. When the symbolic ad-dress is found, program execution continues with the t program step at address 0365. The ~ program,steps 0101 and 0364, serving as part of the symbolic address are not executed.
A specific symbolic address cannot be used to specify more than one location at any one time. If it is, only the i'irst (lowest order numeric address) specified will be valid (i.e. the point of transfer). Any number of different labels can be used at one time, limited to the number of keys available to follow the LABEL key.
Ii' transi'er to an undei'ined symbolic address occurs, the calculator will search all of program memory, and if the ... . . .
. ~ ' ` ` ~
" ~058~7 symbolic addrPss is not found, will stop with the STATUS
indicator light on. The program-counter will speci~y the next following program steps.
Branching to a symbolic address of~ers considerable advantages over branching to an absolute address. Programs ~ith symbolic addresses can be stored anywhere in the pro-gram storage section of the RWM and can be easily moved and relocated because there are no absolute addresses to be changed.
Also, any time a program is to be corrected ti.e. program steps changed, added or deleted), any absolute addresses must be checked in case they themselves must now be changed as a result of the corrections. This may entail substantial bookkeeping by the user. If symbolic addresses are used instead o~ absolute addresses, the corrections will not af-fect the symbolic addresses.
The main disadvantage of using symbolio addresses is that a se~rch takes co~siderably more time (depending upon the location of the label in memory) than does a branch to an absolute address. Usually, this will have no signif icance because, in this case, "time" constitutes only a few thousandths of a second. Even if time is a signif icant ~actor, the user may st~ll take advantage of symbolic addresses by writing his original program w~th symbolic addresses and once the program has been completely debugged, changing the symbolic addresses to the appropriate absolute addresses~
The gBTD~ key is used to transfer to (i.e. call) a subroutine (subprogr~m) and return from the subroutine to the point in the calling program where the trans~er was ini-tiated. Subroutines ma~ be nested up to a depth of five. An attempt to nest to a depth of more than fi~e is an error, 105~ 7 stopping execution of the program and turning on the STATUS
indicator light. Both the automatic initialization occuring at turn-on and the END key (given either as a program step or a keyboard entry) automatically reset the nesting to a depth of zero so that all five depths are then availableO
A GO TO key followed by a RSTuRN key and either an absolute numeric or symbolic labelled address may be used in the calling program to (unconditionally) call a subroutine. The address used specifies the starting address o~ the subroutine.
If a symbolic address is used, the ~irst two program steps o~
the subroutine must also be the same symbolic address. An IF key ~ollowed by GO TO and RSUBuRN ke~ and either an absolute numeric or symbolic labelled starting address may also be used in the calling program to conditionally call a subroutine. Execu-tion of the steps of the subroutine starts automatically as soon as the subroutine is called. A RETURN key must be in-cluded as the last step to be executed in the subroutine. The R~TURN causes a branch to the "return-address" in the calling program. The return address is always the address immediately following the last step used to call the subroutine. Exe-cution of the calling program then continues automatically, starting at the return address.
Any number of subroutines may be called individually during a program. However, it is also possible to use more than one subroutine at one time. One subroutine can call a second subroutine which, in turn, can call a third subroutine, and so on. This multiple-calling is known as "nesting". The calculator can remember (store) from one to ~ive return-addresses at a time so that the subroutines may be nested up to a depth o~ ~ive. Returns are made on a "last-in, first-out"
: .
:.
; ~
basis, the return always being made to the last return-address stored. As soon as the return is made, that return-address is forgotten (erased from storage) so that the pre-vious address now becomes the "last" one. Thus the returning order is always the opposite of the calling order.
A program written as a subroutine may also be used as a "stand-alone" program. This is accomplished by depressing the END key to erase any return-addresses currently stored in the calculator and by not using the -ETI~ key when addressing the memory before the program is run.
Special Function Keys (FMT, ~FI, PAPER) -The FMT (format) key is used to initiate special operations not otherwise defined and implemented by the other basic keys of the calculator. It is always used with other keys and, in effect, serves to re-define these other keys to implement the desired special operations. Several of these special operations associated with the EMT key are defined as part of the basic calculator. Others have been defined as part of associated plug-in ROM modules and are available only when the associated ROM modules are plugged into the calculator.
The command-sequences FMT, t and FMT, l are used to operate the X-Y plotter peripheral unit. They are part of the basic calculator. The X-Y plotter-input commands are PEN t, PE~ ~, and x and y coordinates to which the pen-carriage is to be moved. The x and y coordinates are specified by decimal numbers in the range 0000 to 9999. The corresponding actual pen range of physical movement is determined by adjustments on the plotter itself. The FMT, t command-sequence causes the pen to be raised and the contents of the x- and y-registers to be fed to the plotter as the x and y coordinates to which lOSt~7~i7 the pen is to be moved. The FMT, ~ command-sequence lowers the pen and transmits the x-y coordinates. Note that for both commands the pen is raised or lowered first and the pen car-riage is then moved The x-y coordinates in the x- and y-registers must be pre-scaled by the user in the range 0000 to 9999. If these limits are violated, the following events occur:
1. If the contents of the x- and/or y-registers are less than 0000 (i.e. negative), 0000 is sent to the plotter, the pen is raised, moved, and lowered.
2. If the contents of the x- and/or y-registers are greater than 9999, 9999 is sent to the plotter, the pen is raised, moved, and lowered.
The result is to plot a series of dots along the boundary of the plot. The raising and lowering of the pen is a visual and audible warning to the user that he is plotting out-of-bounds.
The basic calculator includes provision ~or recording a user-program in the program storage section of the RWM as a secure program. This provision is completely distinct from a protected recording obtained by physically notching the magnetic card. A secure program is, by definition a program which can be executed only. It cannot be listed, recorded, looked-at in the program mode, edited, or changed in any way. It is a program which can only be executed in the automatic operating mode at high speed by using the CONTINUE key (or step-by-step using the STEP PRGM key hereinafter explained).
Any program entered by the user from the keyboard input unit into the program storage section of the RWM, or any non-secure program loaded from a magnetic card, can be :
lOS87~;7 recorded as a secure program. This is accomplished in the same manner as described above in connection with the RECORD
key except that the keys FMT and RECORD are sequentially de-pressed in the named order to initiate the recording operation.
The program thereupon recorded on the magnetic card or cards is a secure program~ The original program also remains in the program storage section of the RWM as a non-secure pro-gram, and can be recorded again, either as a secure or non-secure program It should be noted that once recording of a secure program has begun, it must be completed by continuing to insert cards until recording is terminated by an END pro-gram step. If the recording process is interrupted by de-pression of the STOP key, the recording will be terminated but the original program stored in the program storage sec-tion of the RWM then becomes a secure program and can only be executed - no further recordings can be made.
If a program stored in the program storage section of the RWM is a secure program (either by loading a program re-corded as a secure program or by the STOP default outlined above) the following conditions prevail:
1. If the PRGM key is depressed, the entire program memory is cleared.
2. If LIST or RECORD are depressed, they are ignored, so that no listing or recording of the program can be made. These actions do not destroy the program - they are just ignored.
3. Since the program is destroyed by switching to the PRGM mode, the program cannot be changed or edited in any way.
Loading of a secure program is no different than ~o~
loading a non-secure program - the same procedure holdsO
Several secure programs may ~e chain-loaded. If a non-secure program is loaded into the calculator when a secure program is already stored therein, the program storage section o~ the RWM is cleared of the secure program in all areas not loaded by the non-secure program so that no trace of the secure pro-gram remains after loading the non-secure program. Thus, a non-secure program may not be chain-loaded after a secure pro-gram. However, the reverse can be done - a secure program can be chain-loaded to a non-secure program but the composite program is then secure.
The command sequence FMT, GO TO is used to implement automatic or program-controlled loading of magnetic program cards. The effect of FMT GO TO is the same as the following sequence: GO TO, 0, LOAD, GO TO, 0, and CONTINUE. This may be used to load a program from the keyboard, with automatic initiation of execution, or it may be used in a program to "link" programs. If the magnetic card reading and recording unit is not loaded with a magnetic card, the INSERT C M D in-dicator light will come on indicating to the user that a mag-netic card should be inserted. The LOAD routine operates in the same manner as described above in connection with the LOAD
key and is terminated by an END program step on the magnetic card.
The command se~uence FMT, x-) causes the contents of the available numeric-addressed data-registers in the data storage section of the RWM to be recorded on a magnetic card.
The INSERT C M D indicator light comes on, and the recording continues, pass-after-pass, card-after-card until all registers are recorded, at which time the magnetic card reading and .
~lOS876'~ :
recording unit stops and the INSERT CARD indicator light goes out. If the FMT, x~ command sequence was executed from a stored-program, the program will return to execution at the keycode im~ediately following the x> command. Recording may be terminated after any card by depressing the STOP key if the FMT x> command sequence came from a stored program, execu-tion may then be resumed by depressing the CONTINUE key.
The command sequence FMT xl causes the loading of the available numeric-addressed data registers in the data storage section of the RWM from one or more magnetic data cards.
These registers are loaded card-after-card until all the registers are loaded. The INSERT C M D light remains on, and the card unit continues to run until all are loadedO The loading may be terminated by a STOP key. If the F~T, x com-mand sequence is executed from a stored program, execution re-sumes after a completed data load.
The ~ key causes the contents o~ the x-register to be printed in the same format as it is displayed (i. e.
FIX (), n, or FLOAT). If additional ~ commands follow im-mediately, they will cause the printer to space (print a blank line). I~ the ~F~E command follows immediately after a numeric entry to x (from the keyboard or from a sequence of digit-keys in a program) the numeric printout is followed by an * (asterisk) indicating that this was a data entry and not a computed result.
The PAPER key is depressed to space the strip of thermal-sensitive paper used by the output printer unit. It continues to drive the paper upward until it is releasedO
Program Checking and Editing Keys (~ TE~) The STEP PRGM key is not programmable and is used, ~rom , , ~
the keyboard only, to single-step programs. When the cal-culator is in the manual operating mode the STEP PRGM key single-steps program execution. Each time STEP PRGM is de-pressed the program counter is incremented by one so that one program step is executed. When the calculator is in the program mode the STEP PRGM key enables the program steps stored in the program storage section of the RWM to be viewed. Each time the STEP PRGM key is depressed, the program counter is incremented by one, so that the address and program step displayed in the y-register shifts to the z-register, those in the x-register shift to the y-register and the next higher address and program step appears in the x-register.
The BACK STEP key is not programmable and is used to decrement the user program counter by one each time it is pressed. This backs up the output display (iOe. does just the opposite of the STEP PRGM key). It should only be used in the program mode. If the STEP PRGM and BACK STEP keys are de-pressed alternately, the same program step will be executed repeatedly. This key is extremely useful in editing and checking programs and when used with the PRGM STEP key per-mits the user to advance either forward or backward through a stored program one step at a time.
Definable and Redefinable Keys The half keys A-O comprising the group o~ definable keys 91 enable the calculator to be tailored to the special needs of the user. Operation of these keys is defined by the various plug-in ROM modules 92 that may be used with the cal-culator. Without these ROM modules the definable keys 91 serve no function and accidently depressing them, or encounter-ing them in the execution of a stored program, will result in a completely non-destructive no-operation.
,, . ., . .. - . . .
~05~7 The plug~in ROM modules 92 include the alpha ROM
module mentioned above, a de~inable functions ROM module, a mathematics ROM module, a statistics ROM module, and a typewriter ROlU module. Both the alpha ROM module and the typewriter ROM module redefine nearly all o~ the keys of the keyboard as well as de~ining the definable key~ 91 themselves. The de~inable ~unctions ROM module, the mathe-matics ROM module, and the statistics ROM module each uniquely de~ine the de~inable keys alone and may each be used at the same time as the alpha ROM module or the typewriter ROM
module.
A di~erent overlay 192 ~s associated with each of the definable functions, mathematics, and statistics ROM
modules and is employed with the de~inable keys 91 to identify the functio~s performed therby when its associated RO~ module is plugged into the calculator. Each of these overlays 192 comprises a thin metal template that fits over the de~inable ~eys 91 and latches into a recess arou~d them. The graphics on these templates visually complete the key shapes and in-dicate the key ~unction A small tab positioned just above the nameplate releases each template, which then pops up enough to grasp. Three holes lg6 near the top edge o~ each template allow direct viewing of three light-emitting diode indicator lights used to indicate various operating condi-tions associated with the routines implemented by the ROM
module. ~hen the overla~ and its associated RO~I module are not i~ use they may be secured together by a pair o~ tabs 198 provided o~ the ROM module.
A description o~ the additional key operations that may be provided by the plug-in ROM modules will now be given.
1058'~'~7 Alpha ROM Module The Alpha ROM modu~e redefines the keyboard input unit as indicated by the letters printed on the tops o~ the definable keys 91 and the letters and symbols printed on the ~ront sides of most of the other keys to provide an ~'alpha keyboard" (see Figure 8) containing 54 character-entry keys, 5 operational keys, and 16 "non-essential" keys (these non-essential keys are either inoperative or duplicate other keys during the alpha mode). During the alpha mode, the key-log ieature is deactivated (thus, any keys pressed are not logged).
The 54 character-entry keys include all of the English alphabetic characters A-Z, all of the decimal numbers 0-9, and all of the ~ollowing symbols ~, ~ / (printed by the . ~ key), x, -, +, ~, ~, " ., =, $, ?, (, ), %, ", and #.
Depressing any of these keys during the alpha mode, will cause the alphameric character or symbol indicated thereby to be printed out in line-printer fashion. The output printer unit operates as a line printer in that each character is not im-mediately printed out, but rather an entire line (16 characters) is first stored and then printed out. The print-out occurs as the 16th character is entered.
The 5 operational keys include the FMT key, the STOP
key, a SPACE key (normally the CONTINUE key), a RCLETA~R~ key (normally the CLEAR key), and a PAPER key.
During the alpha mode, the ~ollowing operational keys are depressed to perform various printing operations. De-pressing the FMT key twice rede~ines the keyboard to the alpha mode, after which character keys may be depressed. A~ter the last character is entered, depressing the FMT key causes a line print, a line ~eed, and returns the keyboard to normal ;,i. -: . .
105~37t;7 operation. (The output display is blanked during the alpha mode, although the contents of the x-~ y-, and z-registers remain unchanged.) For example, the alphabet may be printed by sequenti~lly depressing the RUN, STOP, F~T, FMT, A through Z, and FMT keys.
Depress~ing the SPACE key inserts a blank space in the pri~ted line (similar in operation to the space bar on the typewriter) Depressing the R~LEAuRN key causes a line print and advances the pr~nter to the next line (i.e. like a typewriter carriage-return and line ~eed operation). The alpha mode remains set a~ter this instruction. Successive CLEAR instruc-tions will cause the printer to advance, without printing, one line ~or each instruction.
Depressing the STOP key terminates the alpha mode without a line print or line feed. Any characters entered but ~ot printed will be erased when STOP is pressed. This i~-struction is ~ot programmable and should not be used while programming alpha messages.
The PAPER key is a manual paper advancs control. This operation is not programmable.
The 16 "non-essential" keys include the ~, x~y, t, P~I~T S~B , E~D, SATC~, PREGP, FLOAT, FIX (~, RUN, PRGM, EEY
LOG, LIST, LOAD, and RECORD keys. These keys are not essentia7 for alpha printing operations. The non-essential keys ~hich are programmable duplicate the SPACE key, while most of the non-pro Fammable keys are "locked-outl' (i.e. not operational) during alpha printing operations. Pressing BACE STEP or ST~P
~RG~ ~ill c~use I or O, respectively, to be printed.
105~7~
Definable Functions ROM Module When the definable functions ROM module is plugged into the calculator, the user may employ the definable keys 91 to perform the rede~ined functions identified by the associated overlay shown in Eigure 9. These functions in-clude:
a De~ining special subroutines that can be called by a single key;
b. Protecting such subroutines against acc~dental erasure;
c. Deleting one, or more, o~ such subroutines when desired; and d. Deleting, inserting, or searching for keycodes in any stored program.
a. De~ining a Eunction A user de~inable function can be any sPquence of pro-gram steps, beginning with the keys DEFINE F(i), where F(i) represents one o~ the keys Fl thru F9. The execut~on o~ such sequence o~ program steps must be terminated uith the F-~ET
key in the same manner as the SUB/RET key in the case of sub-routines.
xample:
The ~ollowing is a function which puts ~ in x, y, and z.
Progrzm Step Key 0000 .DEFI~E
- .0001 Fl 0003 t 0004 t . . - ~
-lOS8767 The above function is identified by the key Fl. To execute this function simply press the Fl key in RUN mode or insert Fl in a program at the place you want it executed, Example:
The following is a call on Fl from another program (the program here happens to be another function F2).
Program Step Key 3 Fl Notice that we have assigned the same program step numbers to both the functions Fl and F2. Every function definition is assumed to start at program step 0000. All GO T0 commands when present in a function are coded accordingly. This al-lows the user to define functions and delete them in a way independent of where they actually reside in the calculator memory. The key DEFINE in both of the above functions serves to mark the start of the definition of a function in the cal-culator memory. This key is treated as an error if it is pressed during RUN mode. The key DEFINE is also treated as an error if the user attempts to execute it in a program.
Example:
Program Step Key ooO0 DEFINE
0003 DEFINE ~-The DEFINE at program step 0003 will be treated as an error when encountered during the execution of F3~ The user here forgot to terminate the execution of F3 with F-RETo This error will cause the calculator to stop execution and turn on the STATUS light.
b. Protecting User Defined Functions The protection feature allows the user to designate areas of memory to be a part of the calculator's executive system.
i. Protecting A Single Function Assume that you have just entered the definition of the function Fl in memory (the same Fl discussed earlier). After entering the last keystroke in the definition, namely F-RET, the program counter (y display) will point to program step 0006. Location 0005 which contains F-RET will be displayed in the z-register. Switch to the RUN mode. Press PROTECT.
The light on the top of the PROTECT key (option 2 light) .~................ will come on. The de-finition of Fl is now protected up to and including the F-RET key. If you switch back to PROGRAM mode, whatever was in program step 0006 before will appear now to be at program step 0000. All the program steps used in defining Fl became "invisible". For all purposes these program steps are now a part of the calculator system. You can still execute Fl by pressing the corresponding key in RUN mode, or by calling on it from another stored program or function.
ii. Protecting Several User Defined Functions Assume now that both the functions Fl and F2, de-scribed earlier, are to be protected. After protecting ~0587~;7 Fl switch to the PROGRAM mode and enter the de-finition of F2, namely:
Program Step Key 0003 Fl After entering the definition of F2 switch to the RUN mode. Press DELETE PROTECT. The protect light indicator (option 2) will go off. Press PROTECT.
Both the definitions of Fl and F2 are protected.
iii. Effect of Protection on User Memory When protecting a certain number o~ keystrokes the calculator subtracts that number from the total number of program steps available in user memory.
The user can compute the number of program steps available at any time as follows. In RUN mode, press END, DELETE, PROTECT, switch to the PROGRAM
mode and read the program step number in the y display, assume this number is p. The number of program steps available to the user are given by the simple formula:
Available Program Steps = n - p The variable n in the above formula is 500, 1012 or 2036 according to the amount of user memory pur-chased.
After finding the value of p, as illustrated above, you can switch back to the RUN mode and press PROT~CT
again to re-establish the protection.
1~5~t7~ 7 c. Deleting User Defined Functions To delete a given function simply press the DELETE key ~ollowed by the name of the ~unctio~ to be deleted. The DETETE key o~ly applies to the unprotected area o~ user me-mory. This prevents accidental erasure of protected ~unc-tions. Pressing the D~LETE key causes the Insert/Delete light to come on (option 1) indicating that a memory modi-ficatlon operation is to be per~ormed. I~ a~t~r pressing the DELETE key you ~ind that you did not want to delete a~ter all, you can press the CLEAR key to abort the delete option. Pressing the CLEAR ~ey at this time will cause the Insert/Delete light to go o~ the function to be de-leted does not exist the error light will come on and the delete operation will be aborted. The DELETE key must be pressed while the calculator is in RUN mode. The D~LETE
key may be ~ollowed by ~ function name (Fl thru F9), CLEAR, or a digit. Other keys following the DELETE ~ey will turn on the error light and abort the delete operation. I~ en-countered during the execution of a stored program the DELETE
key will cause the calculator to stop execution and turn on the error indicator.
DELETIN_ THE LAST F~NCTION } ME~ORY
The delete operation is designed to delete a portion o~
user memory ~h~ch starts ~ith the DEFINE o~ the ~unction to be deleted and ending ~ith the keystroke prior to the DEFINE
o~ the ne~t ~unction in memory, or END. To illustrate, co~-sider the following memory ~ap~ -.
Program Step e _ 0001 Fl :
~058767 (Memory Map Continued) 0009 IF X~Y
0010 F-RET "
0017 ...
When pressing DELETE Fl the calculator will delete the memory portion delimited by the two arrows in the memory map.
After deletion the DEFINE at program step 0004 will move to program step 0000. The following keystrokes will move ac-cordingly. Since the last function in a user memory is not likely to be followed by another DEFINE it is advisable to terminate that function with the keystroke END as shown in the memory map (program step 0016). If the last function in memory is not terminated with END then by deleting that func-tion the user will also delete that portion of memory which follows that function and terminates with an END. When de-leting the last function in memory, the delete operation does not delete the END key. Thus deleting F2 from the memory map ,~
shown earlier will result in the following memory map.
Program Step Key 0001 Fl The keystroke END becomes now the terminator to the defini-tion of Fl.
d, General Editing Capabilities In addition to deleting functions the user of the de-finable function block is offered the capability of deleting, inserting, and searching for individual keystrokes in memory.
This feature is discussed next.
io Deleting Individual Keystrokes If the DELETE key is followed by a 4 digit address*
the calculator will delete the keystroke contained in that address and move all the following key-strokes accordingly.
Example:
Consider the memory map:
Program Step Key 0006 . o .
*See next paragraph on Automatic Address Termination for further details on address length.
. . ~ . -~
l~s8767 To delete the keystroke at program step 0002 press the DELETE ~ey in RUN mode, (Insert/Delete light will come on), ~ollowed by the keys O O 0 2, The resulting me-mory map will be:
gra ~ Rey 000~ GO
0005 ...
Notice that the keystroke previously at 0003 is now at program step 000~. All the keystro~es ~ollo~ing the deleted key up to the last keystroke in memory have been mo~ed accordingly.
~TO~AT~_ADDRESS TERMINATION AND ABORTING A DELETE:
I~ the abo~e example we used a 4 digit address to speci~y the keystroke to be deleted. The user can use a 3, 2~ or o~e digit address i~ such an address is term~nated ~y a no~-~umeric key other than C~EA~. The follow~ng delete commands are equi-~alent to that given in the last example: .
DELETE 02 .. STOP
DELE TE 002 ' STOP
To abort a delete command be~ore it is executed prese the CLEAR k~y. The Insert/Delete light (option }) will go o~ and .. . . . . .. . . . .. .. ... . ..
the delete command will be cancelled. The CLEAR key can be pressed immediately a~ter the DELETE key or during the entry o~ the address digits. Notice that the 4th digit in an address -122- .
.
1~5~76i7 terminates that address. This digit signals to the calculator that the delete operation is to be performed. A CLEAR key following the 4th digit of an address will have no effect on a delete operation. After performing a delete operation the calculator switches off the Insert/Delete light. If the de-lete address is bigger than 2035 the status light will come on and the delete operation will be aborted. This number re-presents the maximum available program steps in the cal-culator.
ii. Inserting Individual Keystrokes The definable function block also offers the user the capability of inserting key codes at any arbit-rary program step.
Example:
Consider the following memory map:
Program Step Key 0004 ...
To insert a keystroke before the key at program step 0002, press INSERT in RUN M~DE, (the Insert~
Delete light will come on), followed by 0 0 0 2, Switch to PROGRAM mode. The y display will point to program step 0002. At this location you will find that a CONTINUE (Code 47) has been inserted.
The keystroke originally at 0002 has now been moved to step 0003. All the keystrokes which ~ollow this keystroke have been moved accordingly.
lOS1~7~;7 To put a new keystroke at 0~02, simply press the new key while you are still in PROGRAM mode.
The key pressed will replace the CONTINU~ in-serted earlier by the calculator. Without re-placing the CONTINUE at step 0002 the new memory map is as shown below:
Program Step Key 00~1 GO TO
0005 ...
The address in an INSERT command may . . . . . . .
be automatically terminated in the same manner described earlier in connection with DELETE. The insert operation can also be aborted in the same fashionO
Notice that the insert operation effects the con-tent of all the program steps following the one designated in that operation.
iii. Searching for a Given Keystroke in Memory:
The ability to search ~or a given keystroke in me-mory is provided by the FIND key. By pressing the FIND key, in RUN mode, followed by any other key on the keyboard the user commands the calculator to search for that key in memory starting at the cur-rent program counter value. If the key asked for - is not found, the status light will come on. How-ever if the key is found: the calculator will ~058767 automatically switch to PROGRAM mode, and the Z
register will contain Lhe program step at which the key was foundO
Example-.
Consider protecting a function definition area inmemory. This area is terminated with the key END~
Reset the program counter to 0000 by pressing GO
TO O or END, in RUN mode. Now press FIND END, the z-register will now contain the terminating END
in the function area. Press RUN PROTECT. The function area is now protected up to and including that terminating END.
PROGRAMMING HINTS:
The definable functions can be nested 5 levels deep, irrespective of regular subroutine nestingO A higher nesting value will cause the calculator to stop execution and turn on the status light.
The light on top of the F-RET key (option 3) when lit in-dicates that the user is executing a sequence oi' keystrokes in a function definition. I~ you press STOP while this light is on you may stop the calculator in the middle of a function.
To reinitialize program execution press DELETE, F-RET in RUN
mode, the F-RET light will go off and the program counter ad-justed to the value it had when the function area of memory was called.
Calling on a non-existant function from a stored program will cause the calculator to stop execution and turn on the status light. The program counter at this time will point to the program step which contains the name of the function called.
-125_ 105l~'7bi7 Mathematics ROM Module When the mathematics ROM module is plugged into the calculator at the left-hand receptacle 94, the user may em-ploy the de~inable keys 91 to perform the additional ~unc-tions indicated by the mathematics overlay shown in ~igure
' ~OS~7~'7 (~omputing continued) 1~ 11 11 The answer, appearing in the y-register, is underlined.
Unary Function Keys ( ~
These five keys are used to perform unary functions in which the contents of the x-register are employed as the argument. The results of the unary functions performed are placed in the x-register. These five keys do not affect any other registers.
The ~ key is depressed to calculate the square root of the number in the x-register. If the number is negative, the square root of its absolute value is cal-culated and the STATUS indicator light 19 turned on. The STATUS indicator light remains on until the next key is depressed.
The x key is depressed to calculate the square of the number in the x-register. If the number is greater than ~~ x 10 , the number 9 99999999999 x 1098 is placed in the x-register and thè STATUS indicator light 19 turned on. The STATUS indicator light remains on until the next key is depressed.
The l/x key is depressed to calculate the reciprocal of the number in the x-register. For example, 1/9.8 may be calculated by sequentially depressing the 9, ., 8, and l/x keys.
The int x key is depressed to truncate the fractional ~O~i~7~7 part of the number in the x-register. It does not affect the sign of the integer part of the number. For example, if the number -5.9 is contained in the x-register when the int x key is depressed, the number -5.0 will remain.
The CHG SIGN key has already been described above in connection with the numeric data entry keys.
Data-Storage and Register-Transfer Keys (a, b, x)(), y~(), x~(), yf I ~ ~ INDIRECT) These keys are variously used to perform direct data storage and recall, direct storage-register arithmetic, in-direct data storage and recall, and indirect storage-register arithmetic operations. As illustrated below, the a and b keys are depressed following any of the remaining five keys of this group to specify the a- and b-registers, respectively.
The a and b keys may also be used to directly recall the contents of the a- and b-registers, respectively, to the -x-register without changing the contents of the a- and b-registers themselves. Either of these functions of the a and b keys may be performed in response to a single key-strcke thereof. For example, the contents of the b-register may be directly recalled to the x-register by simply de-pressing the b key alone. As noted above the contents of the b-register itself will remain unchanged by this recall operation.
The x~(), y~(), x~(), andyfo keys are used to control - the transfer of numeric data from the x- and y-registers to the a- and b-registers and 49 additional storage registers available to the user (at user addresses 000-048) in the data storage section o the RW~ and from these storage registers to the x- and y-registers. If the 60 optional storage re-gisters included in the data storage section of the RWM
- . -~ -:
105~'7~7 (at user addresses 049-108) are made available to the user, these same four keys may also be used to control the trans-fer of numeric data from the x- and y-registers to these optional storage registers and from them to the x- and y-registers.
The specific storage register to or from which numeric data is transferred by these four keys is specified by the key or keys depressed immediately following them.
Accordingly, the a key is used to specify the a-register, the b key to specify the b-register, and the decimal digit keys 0-9 to selectively specify any of the available storage registers at user addresses 000-108 of the data storage section of the RWM. For simplicity of description, the available storage registers at user addresses 000-108 will hereinafter be referred to by their addresses (i.e.
the storage register at any available address nnn will be referred to as register nnn). If a non-existant or non-available storage register is designated, the STATUS in-dicator light is turned on, no data transfer or arithmetic operation is performed, and the operation of the calculator halts. (If such a register is designated while the cal-culator is automatically executing a stored program, the program-counter specifies the program step immediately following the improper operation.) The x~() key is depressed followed by the a key, the b key, or decimal digit keys n, n, n to directly store the contents of the x-register in the a-register, the b-register, or register nnn respecti~ely. In any case, the contents of the x-register remain unchanged by this opera-tion. For example, ~ may be stored directly in the ~ : , ~0587~7 b register by sequentially depressing the ~, x~(), and b keys. Similarly, ~ may be stored directly in register 027, by sequentially depressing the ~, x~(3, 0, 2, and 7 keysO
; In each of these examples, ~ will also remain in the x-register.
The y~() key is depressed followed by the a key, the b key, or decimal digit keys n, n, n to directly store the contents oi the y-register in the a-register, the b-register, or register nn~ respectively. In any case, the contents of the y-register remain unchanged by this opera-tion. For example, a number contained in the y-register may be stored directly in register 000, without changing the contents of the y-register, by sequentially depressing the y~(), 0, 0, and 0 keys.
The x-() key is depressed ~ollowed by the a key, the b key, or decimal digit keys n, n, n, to directly re-call the contents of the a-register, the b-register, or register nnn, respectively, to the x-register In any case, the contents o~ the recalled register remain unchanged by this operation. For example, the contents o~ register 012 may be recalled to the x-register, without changing the contents of register 012, by sequentially depressing the x (), 0, 1, and 2 keys. Recall ~rom the a- or b-register to the x-register may be accomplished in the same manner as described above, by simply depressing the a or b key aloneO
The y~) key is depressed followed by the a key, the b key, or decimal digit keys n, n, n, to exchange the con-tents o~ the y-register with the contents o~ the a-register, the b-register, or register nnn, respectivelyO For example, a number in the y-register may be exchanged with a number , . .. . .
~058767 in register 048 by depressing the y~l), 0, 4, and 8 keys.
The direct storage and recall operations performed by the x~(), y>(), x (), and y~l) keys may be conveniently summarized by employing the following notation:
IY~()l ~ !
lX'()J ~nnnJ
In this notation each pair of braces implies that any one of the enclosed group of key operations or storage registers may be selected. The order of the successive pairs of braces from left to right specifies the key-sequence re-quired to perform the selected key operation with the selected storage register. Thus, any of the key operations enclosed in the left-hand pair of braces may be employed with any of the storage registers enclosed in the right-hand pair of braces by first depressing the key performing the selected key operation and then depressi~g the key or keys designating the selected storage register. The usefull-ness of these direct storage and recall operations is il-lustrated by the following method of multiplying a series of numbers nl, n2, etc. by a constant K, where nl = 3, n2 = 11.2, etc. and K = 1.684:
KEYS CONTENTS OF CONTENTS OF CONTENTS OF
DEPRESSED x-REGISTER y-REGISTER a-~EGISTER
. . ~
CLE M O O
1, O, 6, 8, 4, 1.684 0 0 y~, a 1.684 O 1.684 3 3 0 1,684 30 ~ 3 3 1,684 ~058767 (Illustration continued) a 1.684 3 1.684 X 1.684 5.0520 1.684 1, 1, ., Z 11.2 5 D 0520 1.684 11.2 11.2 1.684 a 1.684 11.2 1.684 X 1.684 18.8608 1.684 The answers, appearing in the y-register, are underlined~
The x~(), y)(), x (), and y,~l keys may also be em-ployed with the +, -, x, and : arithmetic keys to perform direct register-arithmetic operations in which the con-tents of the x-register or the y-register are employed as one operand and the contents of the a-register, the b-register, or register nnn are employed as the other operand.
These direct register-arithmetic operations may be sum-marized as follows by using the above-described notation:
~lT ~
Thus, the x)() key may be employed to directly per-form any of the arithmetic operations enclosed by the second pair of braces upon the contents of the x-register and the contents of any of the storage registers enclosed by the third pair of braces and store the result in the selected storage register without recalling the contents of the selected storage register and without changing the contents of the x-register. For example, the contents of the x-register may be subtracted from the contents of the b-register by sequentially depressing the x)(), -, and b keys.
~os~7~7 The difference is stored in the b-register, and the contents of the x-register remain unchanged by the operation. Simi-larly, the contents of register 042 may be divided by the contents of the x-register by sequentially depressing the x~(), s 0, 4, and 2 keys. The quotient is stored in re-gister 042, and the contents of the x-register itself re-main unchanged by the operation.
The y)() key may be similarly employed to directly perform any of the arithmetic operations enclosed by the second pair of braces upon the contents of the y-register and any of the storage registers enclosed by the third pair of braces and store the result in the selected storage re-gister without recalling the contents of the selected storage register and without changing the contents of the y-register. For example, the contents of the y-register may be added to the contents of the a-register by sequentially depressing the y~(), +, and a keys. The sum is stored in the a-register, and the contents of the y-register remain unchanged by the operation. Similarly, the contents of register 038 may be multiplied by the contents of the y-register by sequentially depressing the y~(), x, 0, 3, and 8 keys. The product is stored in register 038, and the contents of the y-register remain unchanged by the opera-tion.
The x () key may be employed to directly perform any of the arithmetic operations enclosed by the second pair of braces upon the contents of the x-register and the contents of any of the storage registers enclosed by the third pair of braces and store the result in the x-register without changing the contents of the selected storage register. For 1058~7 example, the contents of the a-register may be added to the contents of the x-register by sequentially depressing the x~(), +, and a keys~ The sum is stored in the x-register, and the contents of the a-register remain un-changed by the operation. Similarly, the contents of the x-register may be multiplied by the contents of register 022 by sequentially depressing the x (), x, 0, 2, and 2 keys. The product is stored in the x-register, and the contents of register 022 remain unchanged by the operationO
The y~l) key may be employed to directly perform any of the arithmetic operations enclosed by the second pair of braces upon the contents of the y-register and the contents of any of the storage registers enclosed by the third pair of braces and store the result in the y-register without changing the contents of the selected storage re-gister (i.e. the y~ may be used as though it were a yl() key in per~orming register-arithmetic operations).
For example, the contents of the b-register may be subtracted from the contents of the y-register by sequentially depressing the y~l~, -, and b keys. The dif-ference is stored in the y-register, and the contents of the b-register remain unchanged by the operation. Similarly, the contents of the y-register may be divided by the contents of regiters 039, by sequentially depressing the y~-, 2, O, 3, and 3 keys. The quotient is stored in the y-register, and the contents o~ register 039 remains unchanged by the operation.
The INDIRECT key is used with the above-described data-storage and register-tranæfer keys to perform indirect data-storage and recall and indirect register-arithmetic , 1058~7~j7 operations, in which the contents of a directly-addressed register (e.g. the a-register, the b-register or any of the registers nnn) are employed as the address of an indirectly-addressed storage register (e.g. any of the other storage registers nnn) to be used in these opera-tions. When indirectly addressing any of the storage re-gisters 000 through 048 or 108, care must be taken to in-sure that the directly-addressed register contains the proper address nnn of the indirectly addressed-register nnn. The indirect address used is the absolute value of the integer part of the contents of the directly addressed register. Thus, 1.732 will be treated as the address of register 001, -6.99 as the address of register 006, 0.999 as the address of register 000, and 106.75 as the address of register 106. Since the storage registers may only contain numeric data, the a- and b-registers may not be used as the indirectly-addressed registers in these opera-tions.
The indirect data storage and recall operations may be summarized as follows by again using the above-described notation without braces for the INDIRECT key:
Thus, the x~() and y)() keys may be employed with the INDIRECT
key to indirectly store the contents of the x- and y-registers, respectively in any storage register nnn designated by the contents of any of the other data storage registers. More-over, this may be accomplished without changing the contents -8~-.. ~ .
`` ~os~767 of the x- and y-registers or of the directly addressed storage register. For example, the contents of the x-register may be indirectly stored in the storage register designated by the contents of the a-register by sequentially depressing the x)(), INDIRECT, and a keys. The contents o~ the x-register and the a-register remain unchanged by this operation. Similarly, the contents of the y-register may be indirectly stored in the storage register designated by the contents of register 022 by sequentially depressing y~(), INDIRECT, 0, 2, and 2 keys. The contents of the y-register and register 022 remain unchanged by this operation.
The x-() key may be similarly employed with the INDIRECT key to indirectly recall to the x-register the contents of any storage register nnn designated by the contents of any of the other storage registers. This is accomplished without changing the contents of either the directly-or indirectly-addressed storage register. For example, the contents of the register nnn designated by the contents of the b-register may be indirectly recalled to the x-register by sequentially depressing the x (), INDIRECT, and b keys. The contents of the b-register and of the indirectly-addressed register remain unchanged by this operation.
The y~o key may be employed with the INDIRECT key to indirectly exchange the contents of the y-register with the contents of any storage register nnn designated by the contents of any of the other storage registers. This is accomplished without changing the contents of the directly-addressed storage register For example, the contents of the y-register may be indirectly exchanged with the contents 1058~7 of the register designated by register 041 by sequentially depressing the y~l), INDIRECT, 0~ 4, and 1 keys. The con-tents of register 041 remain unchanged by this operation.
The indirect register-arithmetic operations may be summarized as follows:
~ ~ INDI~ECT l ~ l b j In connection with the indirect register arithmetic opera-tions it should be noted that the INDIRECT key may also be depressed immediately after the selected arithmetic key. Thus, the indirect register-arithmetic operations may also be summarized as follows:
~ ~ J INDI~ECT ~ ~ }
Thus, any of the x)(), y)(), x (), and y~ keys may be employed with the INDIR$CT key and any of the arith-metic keys to indirectly perform register-arithmetic opera-tions employing the contents of either the x- or the y-register as one operand and the contents o~ any of the storage registers nnn designated by the contents of any of the other storage registers as the other operand. In the case of the x~() and y)() keys, the results of these operations are stored in the indirectly addressed storage register nnn, and the contents of the x- and y-registers apd the directly-addressed registers are not ~hanged.
Similarly, in the case of the x () and Y~ keys, the results 105~7~;7 of these operations are stored in the x- and y-registers, respectively, and the contents of the directly and in-directly addressed registers are not changed.
For example, the contents of the ~-register may be added to the contents of the register nnn designated by the contents of the a-register by sequentially depressing the x~(), INDIRECT, +, and a keys. The sum is stored in the indirectly-addressed register nnn, and the contents of the x-register and the a-register remain unchanged by this operation. Similarly, the contents of the storage register nnn designated by the contents of register 014 may be multiplied by the contents of the y-register by sequentially depressing the y~(), x, INDIRECT, 0, 1, and 4 keys. The product is stored in the indirectly-addressed storage register nnn, and the contents of the y-register and register 014 remain unchanged by the operation~ Simi-larly, the contents of the register nnn designated by the contents of the b-register may be subtracted from the con-tents of the x-register by sequentially depressing the x (), INDIRECT, -, and b keys. The difference is stored in the x-register, and the contents of the b-register and the indirectly-addressed register remain unchanged by the opera-tion. As a last example, the contents of the y-register may be divided by the contents of the register nnn designated by the contents of register 008 by sequentially depressing the y,l), INDIRECT, :, 0, 0, and 8 keys. The quotient is stored in the y-register, and the contents of register 008 and the indirectly-addressed register nnn remain unchanged by this operation.
- , - :
Multiple-level indirect addressing may be performed to any desired level in the above described indirect data storage and recall and indirect register arithmetic opera-tions by sequentially depressing the INDIRECT key once for each desired level. Multiple-level indirect data storage and recall may be summarized as follows:
INDIRECT .,., INDIIIECT b ¦
Thus, for example, the contents of the x-register may be indirectly stored in the contents of register 017 designated by the contents of register 003 in turn designated by the contents of the a-register by sequentially depressing the x~(), INDIRECT, INDIRECT, and a keys. The contents of the x-register, the a-register, and register 003 remain un-changed by this operation. Similarly, the contents of re-gister 046 designated by the contents of register 031 in turn designated by the contents of register 000 in turn designated by the contents of register 025 may be exchanged with the contents of the y-register by sequentially depressing the y~,, INDIRECT, INDIRECT, INDIRECT, 0, 2, and 5 keys.
The contents of registers 025, 000 and 031, remain un-changed by this operation.
Multiple level indirect register-arithmetic may be similarly summarized as follows:
INDIBECT .. INDIRIICT j I O
, . . . . .
-. . , ~)58767 OR
~ ¦ J l~DI~ECT ... INDIRECT {
Thus, assuming, for example, that the 60 optional storage registers 049-108 are available to the user, the contents of the y-register may be subtracted from the contents of register 108 designated by the contents of register 082, in turn designated by the contents of register 049 by sequentially depressing the y)(), INDIRECT, INDIRECT, -, O, 4, and 9 keys. The difference is stored in register 108 and the contents of the y-register, register 049, and register 082 remain unchanged by this operation. Simi-larly, the contents o~ the x-register may be divided by the contents of register 106 designated by the contents of register 056 in turn designated by the contents of the b-register by sequentially depressing the x~(), ., INDIRECT, INDIRECT, INDIRECT, and b keys The results are stored in the x-register, and the contents of the b-register and registers 003, 056, and 106 remain unchanged by this opera-tion.
Numeric Address Termination As described above, each of the available numerically-addressed storage registers 000 through 048 or 108 employed in the ~oregoing data-storage and register-trans~er opera-tions is properly addressed by selectively depressing the decimal digit keys to specify its three-digit address. Upon entry of the third digit, the numeric address is automati-cally terminated. Any immediately ~ollowing digit entries :. .
, .. . .
los~767 are therefore not intrepreted as part o~ the numeric ad-dress, but rather as the beginning of a new data entry.
Thus, for example, if the x~(), 1, 0, 3, 2, and 5 keys are sequentially depressed, the contents of the x-register are stored in register 103, and the number 25 is entered into the x-register. Similarly, if the y~(), +, 0, 0, 2, 1, and + keys are sequentially depressed, the contents of the y-register are added to the contents of register 002, and the number 1 is entered into the x-register and there-upon added to the contents of the y-register.
A numeric address may also be terminated, without entering leading zeros o~ the address, by depressing any non-numeric key except the STEP PRGM key or, if the cal-culator is in the manual operating or first key-log printing mode, the CONTINUE key. However, most of the terminating key entries that may be used will also be executed. For example, if the x)(), 2, and ~ keys are sequentially depressed, the contents of the x-register are stored in storage register 002 and also added to the con-tents of the y-register. Similarly, if the y-)(), +, 3, 8, and a keys are sequentially depressed, the contents of the y-register are added to the contents of register 038, and the contents of the a-register are recalled to the x-register.
When the calculator is in the manual operating or first key-log printing mode, the STOP key may be used to terminate a numeric address i~ a no-operation address-terminating key entry is desired. For example, by simply ;
depressing the x~(), 3, and STOP keys the contents of the x-register may be stored in register 003 without performing any other operation. Similarly, when formulating or ': ~
105~'7~'7 enterin~ a program by which the calculator is to be con-trolled in the automatic operating mode, a CONTINUE pro-gram step may be employed to terminate a numeric address if a no-operation address-terminating program step is desired. For example, i~ the program steps y)(), x, 2, 9, CONTINUE, and 3 are sequentially encountered when the calculator is in the automatic operating mode, the contents of register 29 are multiplied by the contents of the y-register, and the product is stored in register 2g. No operation is per~ormed by the CONTINUE program step, and the next program step 3 is stored in the x-register as the beginning o~ a new data entry.
Si~ce every numeric storage register except optional registers100-108 may be uniquely speci~ied by less than three digits, these abbreviated address-termination features permit signi~1cant reductions in the number o~
key-operations and program steps required to perform many calculations. Moreover, these same address termination features may be used in connection with the four-digit numeric addresses of the program storage section of the RWM to achieve still ~urther reductions in the number o~
key-operations and program-steps required to per~orm many calculations.
Program-Control ~eys (GO TO, IF x<y, IF x~y, IF x~y, IF FLAG, - S~T FLAG, T.~REL, RETUE~ ~
- All o~ the previously-described keys except the ELOAT, FI~(), R ~, PRG~, KEY LOG, LIST, LOAD, and RECORD
keys may be employed both ~or controlling the operation of the calculator during the manu~l operating and first key-log ~()S~'7~7 printing modes and for entering program steps into the calculator during the program entering and second key-log printing modes. When the calculator is in the manual operating mode, the user may continuously observe the output display of the contents of the x-, y-, and z-registers and, in accordance with his observations, make his own decisions about what to do next at any stage of the cal-culation. However, this is not possible when the calculator is executing a stored program at high speed in the auto-matic operating mode. The above eight program-control keys have therefore been provided to permit the calculator itself to test calculated quantities and make decisions based on those tests during the automatic execution of an internally-stored program. These eight keys may be used to permit unconditional branching (or transfers), condi-tional branching (or transfers), symbolic or labelled branching, storage of "yes-no" information in a flag and conditional branching based on that "yes-no" information at a later stage in the execution of a program, and un-conditional or conditional branches to pre-defined program routines with return to the main program sequence upon com-pletion.
Branching instructions in a program cause the user program counter to specify an address other than the next sequential address in the program storage section of the RWM~ whereupon execution of the program continues sequen-tially from the new address. If a branch is conditional, the calculator makes a decision, based upon a specified condition, whether or not to branch. However, if the branch is unconditional, the calculator has no option, and must branch to the address specified in the program (e.g.
by a GO TO program step followed by a numeric address nnnn).
The GO T0 key is depressed followed by decimal digit keys specifying a selected four-digit address nnnn in the program storage section of the RWM to set the user program counter to the selected address nnnn. When this sequence of keycodes is encountered as a sequence of pro-gram steps, an unconditional branch is made to the address indicated and the program step stored at that address is executed. Execution of the program then automatically con-tinues to run from that address.
For simplicity of description the terms "keys" and "program steps" will hereinafter be used synonomously since the remaining keys of this group are used almost exclusively to enter keycodes into the calculator as program steps during the program entering mode of the calculator. All of the program steps so entered are automatically executed during the automatic operating mode of the calculatorO
The four IF keys are used for conditional branching.
The IF x<y, IF x=y, and IF x>y keys compare the numeric values contained in the x- and y-registers to determine if the number in x is less than the number in y, equal to the number in y, or greater than the number in y respectively.
The IF FLAG key tests the condition ("yes-no") of the flag, which is controlled by the SET FLAG key hereinafter ex-plained. There can be only two possible results to each test made by each of these four keys. The condition tested is either "met" (YES) or ~not met" (N0).
When the condition tested is met (YES), the next program step following the 'IIF" is automatically executed.
1()587~7 However, when the condition tested is not met (N0), the calculator automatically skips (ignores) the next four program steps and continues execution at the fifth program step following the "IF".
If the program steps immediately following the "IF"
constitute a numeric address nnnn and the condition tested is met (YES), an automatic branch is made to that address nnnn. The program step stored at address nnnn is thereupon executed, and automatic execution of the program continued from there. If the program steps immediately following the "IF" constitute operations (e.g. +, t, etc.) then no branch occurs and the operations are executed.
When an IF program step (other than IF FLAG) is encountered, the two nu~bers in the x- and y-registers are automatically rounded before the test is made. In each register, the tenth digit of the number is rounded according to the value of the guard digits; the guard digits are then set equal to zeroO Thus the numbers to be tested actually have the same values as would appear in a floating point display with all ten significant digits displayed. After the test has been made, the numbers in the x- and y-registers retain their rounded values. This means that the actual values of the number in the x- and y-registers may be dif-ferent after the test than before. If the resulting slight loss in accuracy is undesireable, the numbers in the x- and y-registers can be stored in the data-storage section of the RW~ before the "IF" test is made and can be recalled and substituted for the rounded numbers after the "IF" test is completed.
The use of the IF x>y and IF x<y keys is illustrated _gg_ ~5i~ ~;7 by employing the following sequence of program.steps be-ginning with an IF x>y program step and including a three-step conditional routine for taking the absolute value of the contents of the y-register:
IF x>y conditional ~ x~y ~ 4-step conditional routine for ¦Y¦ ~CHG SIGN ~ sequence ~y CONTINUE J
If the contents of the x-register are greater in value than the contents of the y-register (i.e. condition met), then every program step in this sequence is executed and the ab-solute value of the contents of the y-register is calculatedO
As described above CONTINUE is a no-operation program step.
It is used in this and the following examples to fill in the fourth program step to be skipped if the test condition is not met. If the contents of the x-register are e~ual to or greater in value than the contents of the y-register (i.e.
the condition is not met), then the four program steps im-mediately following the IF x>y program step are skipped and execution continues beginning with the t program step. In this case the absolute value of the contents of the y-register is not calculated.
The use of the IF x-y key is illustrated by employing the following sequence of program steps:
IF x=y 3 4-step conditional sequence CONTINUE
CONTINUE
~OS8'7~i7 If the contents of the x-register equal the contents of the y-register in value (i.e. condition met), then every program step in this sequence is executed. This results in an auto-matic branch to execute the program step stored at user address 0023. However, if the contents of the x-register do not equal the contents of the y-register in value ~i.e.
condition not met), the four program steps immediately fol-lowing the IF x=y program step are skipped and execution con-tinues beginning with the + program step.
The use of the IF FLAG key is illustrated by the following sequence of program steps:
IF FLAG
,;
4-step conditional se~uence CONTINUE I
CONTINUE J
SET FLAG
If the flag controlled by the SET FLAG key has been set (i.e. condition met), then every program step in this se-~uence is executed. This results in an automatic branch to execute the program step stored at user address 0041. How-ever, if the flag controlled by the SET FLAG key has not been set (i.e. condition not met), then the four program steps immediately following the IF FLAG program step are skipped and execution continues beginning at the SET FLAG
program step by setting the flag.
The SET FLAG key establishes the condition to be tested by the IF FLAG key. The "YES" condition is established when a SET FLAG keycode is encountered either as a program step or as a keyboard entry. The "NO" condition is established ~, . . .
105~7~7 by clearing the ~lag. This occurs automatically whenever the calculator is switched on or whenever a CLEAR or IF FLAG key-code is encountered either as a program step or as a keyboard entry. If the flag condition must be retained ~or use later, the program must include a S~T FLAG program step in the se-quence o~ program steps executed following the ~lag-clearing program step. The flag enables the user to select the con-ditions which will determine whether a conditional branch (or operation) is to be made.
The T~REL key allows relocatable symbolic addresses to be used within a program. A LABEL key immediately fol-lo~ed by any other programmable key (e.g. LABEL, ~) except the END key serves as a symbolic address that may be in-s~rted in a program immediately before any program step a user may wish to relocate independently of its absolute (numeric) address. This symbolic address is relocated by a search command comprising a GO TO key immediately ~ollowed by the symbolic address itself (e.g. GO T0, T-~REL, ~) . In response to this search command, the user program counter is reset to the ~irst user available address 0000 in the program storage section of the R~M and is sequentially incremented in a search operation until the symbolic address ~e.g. T.ABEL, ~) is ~ound. -The user program counter the~ speci~ies the next address which i5 the program step designated by the symbolic address.
If the search command came from t~e keyboard~ the calculator waits ~or the next key to be depressed. ~owever, i~ the search co~mmand came ~rom the program, then execution automatlcally continues at the program ctep designated by the sy~bolic address. The keys o~ the symbolic address itself 1058~7 serve as no-operation codes and are ignored during execution of the program. This may be illustrated by the following sequence of program steps.
PROG~AM
ADDRESS _STEP
0101 ~
0102 etc.
. ' 0362 ___ 0366 etc.
The search for the symbolic address "LABEL, -!' is initiated immediately after address 0101 is designated by the user pro-gram counter and starts at address 0000. When the symbolic ad-dress is found, program execution continues with the t program step at address 0365. The ~ program,steps 0101 and 0364, serving as part of the symbolic address are not executed.
A specific symbolic address cannot be used to specify more than one location at any one time. If it is, only the i'irst (lowest order numeric address) specified will be valid (i.e. the point of transfer). Any number of different labels can be used at one time, limited to the number of keys available to follow the LABEL key.
Ii' transi'er to an undei'ined symbolic address occurs, the calculator will search all of program memory, and if the ... . . .
. ~ ' ` ` ~
" ~058~7 symbolic addrPss is not found, will stop with the STATUS
indicator light on. The program-counter will speci~y the next following program steps.
Branching to a symbolic address of~ers considerable advantages over branching to an absolute address. Programs ~ith symbolic addresses can be stored anywhere in the pro-gram storage section of the RWM and can be easily moved and relocated because there are no absolute addresses to be changed.
Also, any time a program is to be corrected ti.e. program steps changed, added or deleted), any absolute addresses must be checked in case they themselves must now be changed as a result of the corrections. This may entail substantial bookkeeping by the user. If symbolic addresses are used instead o~ absolute addresses, the corrections will not af-fect the symbolic addresses.
The main disadvantage of using symbolio addresses is that a se~rch takes co~siderably more time (depending upon the location of the label in memory) than does a branch to an absolute address. Usually, this will have no signif icance because, in this case, "time" constitutes only a few thousandths of a second. Even if time is a signif icant ~actor, the user may st~ll take advantage of symbolic addresses by writing his original program w~th symbolic addresses and once the program has been completely debugged, changing the symbolic addresses to the appropriate absolute addresses~
The gBTD~ key is used to transfer to (i.e. call) a subroutine (subprogr~m) and return from the subroutine to the point in the calling program where the trans~er was ini-tiated. Subroutines ma~ be nested up to a depth of five. An attempt to nest to a depth of more than fi~e is an error, 105~ 7 stopping execution of the program and turning on the STATUS
indicator light. Both the automatic initialization occuring at turn-on and the END key (given either as a program step or a keyboard entry) automatically reset the nesting to a depth of zero so that all five depths are then availableO
A GO TO key followed by a RSTuRN key and either an absolute numeric or symbolic labelled address may be used in the calling program to (unconditionally) call a subroutine. The address used specifies the starting address o~ the subroutine.
If a symbolic address is used, the ~irst two program steps o~
the subroutine must also be the same symbolic address. An IF key ~ollowed by GO TO and RSUBuRN ke~ and either an absolute numeric or symbolic labelled starting address may also be used in the calling program to conditionally call a subroutine. Execu-tion of the steps of the subroutine starts automatically as soon as the subroutine is called. A RETURN key must be in-cluded as the last step to be executed in the subroutine. The R~TURN causes a branch to the "return-address" in the calling program. The return address is always the address immediately following the last step used to call the subroutine. Exe-cution of the calling program then continues automatically, starting at the return address.
Any number of subroutines may be called individually during a program. However, it is also possible to use more than one subroutine at one time. One subroutine can call a second subroutine which, in turn, can call a third subroutine, and so on. This multiple-calling is known as "nesting". The calculator can remember (store) from one to ~ive return-addresses at a time so that the subroutines may be nested up to a depth o~ ~ive. Returns are made on a "last-in, first-out"
: .
:.
; ~
basis, the return always being made to the last return-address stored. As soon as the return is made, that return-address is forgotten (erased from storage) so that the pre-vious address now becomes the "last" one. Thus the returning order is always the opposite of the calling order.
A program written as a subroutine may also be used as a "stand-alone" program. This is accomplished by depressing the END key to erase any return-addresses currently stored in the calculator and by not using the -ETI~ key when addressing the memory before the program is run.
Special Function Keys (FMT, ~FI, PAPER) -The FMT (format) key is used to initiate special operations not otherwise defined and implemented by the other basic keys of the calculator. It is always used with other keys and, in effect, serves to re-define these other keys to implement the desired special operations. Several of these special operations associated with the EMT key are defined as part of the basic calculator. Others have been defined as part of associated plug-in ROM modules and are available only when the associated ROM modules are plugged into the calculator.
The command-sequences FMT, t and FMT, l are used to operate the X-Y plotter peripheral unit. They are part of the basic calculator. The X-Y plotter-input commands are PEN t, PE~ ~, and x and y coordinates to which the pen-carriage is to be moved. The x and y coordinates are specified by decimal numbers in the range 0000 to 9999. The corresponding actual pen range of physical movement is determined by adjustments on the plotter itself. The FMT, t command-sequence causes the pen to be raised and the contents of the x- and y-registers to be fed to the plotter as the x and y coordinates to which lOSt~7~i7 the pen is to be moved. The FMT, ~ command-sequence lowers the pen and transmits the x-y coordinates. Note that for both commands the pen is raised or lowered first and the pen car-riage is then moved The x-y coordinates in the x- and y-registers must be pre-scaled by the user in the range 0000 to 9999. If these limits are violated, the following events occur:
1. If the contents of the x- and/or y-registers are less than 0000 (i.e. negative), 0000 is sent to the plotter, the pen is raised, moved, and lowered.
2. If the contents of the x- and/or y-registers are greater than 9999, 9999 is sent to the plotter, the pen is raised, moved, and lowered.
The result is to plot a series of dots along the boundary of the plot. The raising and lowering of the pen is a visual and audible warning to the user that he is plotting out-of-bounds.
The basic calculator includes provision ~or recording a user-program in the program storage section of the RWM as a secure program. This provision is completely distinct from a protected recording obtained by physically notching the magnetic card. A secure program is, by definition a program which can be executed only. It cannot be listed, recorded, looked-at in the program mode, edited, or changed in any way. It is a program which can only be executed in the automatic operating mode at high speed by using the CONTINUE key (or step-by-step using the STEP PRGM key hereinafter explained).
Any program entered by the user from the keyboard input unit into the program storage section of the RWM, or any non-secure program loaded from a magnetic card, can be :
lOS87~;7 recorded as a secure program. This is accomplished in the same manner as described above in connection with the RECORD
key except that the keys FMT and RECORD are sequentially de-pressed in the named order to initiate the recording operation.
The program thereupon recorded on the magnetic card or cards is a secure program~ The original program also remains in the program storage section of the RWM as a non-secure pro-gram, and can be recorded again, either as a secure or non-secure program It should be noted that once recording of a secure program has begun, it must be completed by continuing to insert cards until recording is terminated by an END pro-gram step. If the recording process is interrupted by de-pression of the STOP key, the recording will be terminated but the original program stored in the program storage sec-tion of the RWM then becomes a secure program and can only be executed - no further recordings can be made.
If a program stored in the program storage section of the RWM is a secure program (either by loading a program re-corded as a secure program or by the STOP default outlined above) the following conditions prevail:
1. If the PRGM key is depressed, the entire program memory is cleared.
2. If LIST or RECORD are depressed, they are ignored, so that no listing or recording of the program can be made. These actions do not destroy the program - they are just ignored.
3. Since the program is destroyed by switching to the PRGM mode, the program cannot be changed or edited in any way.
Loading of a secure program is no different than ~o~
loading a non-secure program - the same procedure holdsO
Several secure programs may ~e chain-loaded. If a non-secure program is loaded into the calculator when a secure program is already stored therein, the program storage section o~ the RWM is cleared of the secure program in all areas not loaded by the non-secure program so that no trace of the secure pro-gram remains after loading the non-secure program. Thus, a non-secure program may not be chain-loaded after a secure pro-gram. However, the reverse can be done - a secure program can be chain-loaded to a non-secure program but the composite program is then secure.
The command sequence FMT, GO TO is used to implement automatic or program-controlled loading of magnetic program cards. The effect of FMT GO TO is the same as the following sequence: GO TO, 0, LOAD, GO TO, 0, and CONTINUE. This may be used to load a program from the keyboard, with automatic initiation of execution, or it may be used in a program to "link" programs. If the magnetic card reading and recording unit is not loaded with a magnetic card, the INSERT C M D in-dicator light will come on indicating to the user that a mag-netic card should be inserted. The LOAD routine operates in the same manner as described above in connection with the LOAD
key and is terminated by an END program step on the magnetic card.
The command se~uence FMT, x-) causes the contents of the available numeric-addressed data-registers in the data storage section of the RWM to be recorded on a magnetic card.
The INSERT C M D indicator light comes on, and the recording continues, pass-after-pass, card-after-card until all registers are recorded, at which time the magnetic card reading and .
~lOS876'~ :
recording unit stops and the INSERT CARD indicator light goes out. If the FMT, x~ command sequence was executed from a stored-program, the program will return to execution at the keycode im~ediately following the x> command. Recording may be terminated after any card by depressing the STOP key if the FMT x> command sequence came from a stored program, execu-tion may then be resumed by depressing the CONTINUE key.
The command sequence FMT xl causes the loading of the available numeric-addressed data registers in the data storage section of the RWM from one or more magnetic data cards.
These registers are loaded card-after-card until all the registers are loaded. The INSERT C M D light remains on, and the card unit continues to run until all are loadedO The loading may be terminated by a STOP key. If the F~T, x com-mand sequence is executed from a stored program, execution re-sumes after a completed data load.
The ~ key causes the contents o~ the x-register to be printed in the same format as it is displayed (i. e.
FIX (), n, or FLOAT). If additional ~ commands follow im-mediately, they will cause the printer to space (print a blank line). I~ the ~F~E command follows immediately after a numeric entry to x (from the keyboard or from a sequence of digit-keys in a program) the numeric printout is followed by an * (asterisk) indicating that this was a data entry and not a computed result.
The PAPER key is depressed to space the strip of thermal-sensitive paper used by the output printer unit. It continues to drive the paper upward until it is releasedO
Program Checking and Editing Keys (~ TE~) The STEP PRGM key is not programmable and is used, ~rom , , ~
the keyboard only, to single-step programs. When the cal-culator is in the manual operating mode the STEP PRGM key single-steps program execution. Each time STEP PRGM is de-pressed the program counter is incremented by one so that one program step is executed. When the calculator is in the program mode the STEP PRGM key enables the program steps stored in the program storage section of the RWM to be viewed. Each time the STEP PRGM key is depressed, the program counter is incremented by one, so that the address and program step displayed in the y-register shifts to the z-register, those in the x-register shift to the y-register and the next higher address and program step appears in the x-register.
The BACK STEP key is not programmable and is used to decrement the user program counter by one each time it is pressed. This backs up the output display (iOe. does just the opposite of the STEP PRGM key). It should only be used in the program mode. If the STEP PRGM and BACK STEP keys are de-pressed alternately, the same program step will be executed repeatedly. This key is extremely useful in editing and checking programs and when used with the PRGM STEP key per-mits the user to advance either forward or backward through a stored program one step at a time.
Definable and Redefinable Keys The half keys A-O comprising the group o~ definable keys 91 enable the calculator to be tailored to the special needs of the user. Operation of these keys is defined by the various plug-in ROM modules 92 that may be used with the cal-culator. Without these ROM modules the definable keys 91 serve no function and accidently depressing them, or encounter-ing them in the execution of a stored program, will result in a completely non-destructive no-operation.
,, . ., . .. - . . .
~05~7 The plug~in ROM modules 92 include the alpha ROM
module mentioned above, a de~inable functions ROM module, a mathematics ROM module, a statistics ROM module, and a typewriter ROlU module. Both the alpha ROM module and the typewriter ROM module redefine nearly all o~ the keys of the keyboard as well as de~ining the definable key~ 91 themselves. The de~inable ~unctions ROM module, the mathe-matics ROM module, and the statistics ROM module each uniquely de~ine the de~inable keys alone and may each be used at the same time as the alpha ROM module or the typewriter ROM
module.
A di~erent overlay 192 ~s associated with each of the definable functions, mathematics, and statistics ROM
modules and is employed with the de~inable keys 91 to identify the functio~s performed therby when its associated RO~ module is plugged into the calculator. Each of these overlays 192 comprises a thin metal template that fits over the de~inable ~eys 91 and latches into a recess arou~d them. The graphics on these templates visually complete the key shapes and in-dicate the key ~unction A small tab positioned just above the nameplate releases each template, which then pops up enough to grasp. Three holes lg6 near the top edge o~ each template allow direct viewing of three light-emitting diode indicator lights used to indicate various operating condi-tions associated with the routines implemented by the ROM
module. ~hen the overla~ and its associated RO~I module are not i~ use they may be secured together by a pair o~ tabs 198 provided o~ the ROM module.
A description o~ the additional key operations that may be provided by the plug-in ROM modules will now be given.
1058'~'~7 Alpha ROM Module The Alpha ROM modu~e redefines the keyboard input unit as indicated by the letters printed on the tops o~ the definable keys 91 and the letters and symbols printed on the ~ront sides of most of the other keys to provide an ~'alpha keyboard" (see Figure 8) containing 54 character-entry keys, 5 operational keys, and 16 "non-essential" keys (these non-essential keys are either inoperative or duplicate other keys during the alpha mode). During the alpha mode, the key-log ieature is deactivated (thus, any keys pressed are not logged).
The 54 character-entry keys include all of the English alphabetic characters A-Z, all of the decimal numbers 0-9, and all of the ~ollowing symbols ~, ~ / (printed by the . ~ key), x, -, +, ~, ~, " ., =, $, ?, (, ), %, ", and #.
Depressing any of these keys during the alpha mode, will cause the alphameric character or symbol indicated thereby to be printed out in line-printer fashion. The output printer unit operates as a line printer in that each character is not im-mediately printed out, but rather an entire line (16 characters) is first stored and then printed out. The print-out occurs as the 16th character is entered.
The 5 operational keys include the FMT key, the STOP
key, a SPACE key (normally the CONTINUE key), a RCLETA~R~ key (normally the CLEAR key), and a PAPER key.
During the alpha mode, the ~ollowing operational keys are depressed to perform various printing operations. De-pressing the FMT key twice rede~ines the keyboard to the alpha mode, after which character keys may be depressed. A~ter the last character is entered, depressing the FMT key causes a line print, a line ~eed, and returns the keyboard to normal ;,i. -: . .
105~37t;7 operation. (The output display is blanked during the alpha mode, although the contents of the x-~ y-, and z-registers remain unchanged.) For example, the alphabet may be printed by sequenti~lly depressing the RUN, STOP, F~T, FMT, A through Z, and FMT keys.
Depress~ing the SPACE key inserts a blank space in the pri~ted line (similar in operation to the space bar on the typewriter) Depressing the R~LEAuRN key causes a line print and advances the pr~nter to the next line (i.e. like a typewriter carriage-return and line ~eed operation). The alpha mode remains set a~ter this instruction. Successive CLEAR instruc-tions will cause the printer to advance, without printing, one line ~or each instruction.
Depressing the STOP key terminates the alpha mode without a line print or line feed. Any characters entered but ~ot printed will be erased when STOP is pressed. This i~-struction is ~ot programmable and should not be used while programming alpha messages.
The PAPER key is a manual paper advancs control. This operation is not programmable.
The 16 "non-essential" keys include the ~, x~y, t, P~I~T S~B , E~D, SATC~, PREGP, FLOAT, FIX (~, RUN, PRGM, EEY
LOG, LIST, LOAD, and RECORD keys. These keys are not essentia7 for alpha printing operations. The non-essential keys ~hich are programmable duplicate the SPACE key, while most of the non-pro Fammable keys are "locked-outl' (i.e. not operational) during alpha printing operations. Pressing BACE STEP or ST~P
~RG~ ~ill c~use I or O, respectively, to be printed.
105~7~
Definable Functions ROM Module When the definable functions ROM module is plugged into the calculator, the user may employ the definable keys 91 to perform the rede~ined functions identified by the associated overlay shown in Eigure 9. These functions in-clude:
a De~ining special subroutines that can be called by a single key;
b. Protecting such subroutines against acc~dental erasure;
c. Deleting one, or more, o~ such subroutines when desired; and d. Deleting, inserting, or searching for keycodes in any stored program.
a. De~ining a Eunction A user de~inable function can be any sPquence of pro-gram steps, beginning with the keys DEFINE F(i), where F(i) represents one o~ the keys Fl thru F9. The execut~on o~ such sequence o~ program steps must be terminated uith the F-~ET
key in the same manner as the SUB/RET key in the case of sub-routines.
xample:
The ~ollowing is a function which puts ~ in x, y, and z.
Progrzm Step Key 0000 .DEFI~E
- .0001 Fl 0003 t 0004 t . . - ~
-lOS8767 The above function is identified by the key Fl. To execute this function simply press the Fl key in RUN mode or insert Fl in a program at the place you want it executed, Example:
The following is a call on Fl from another program (the program here happens to be another function F2).
Program Step Key 3 Fl Notice that we have assigned the same program step numbers to both the functions Fl and F2. Every function definition is assumed to start at program step 0000. All GO T0 commands when present in a function are coded accordingly. This al-lows the user to define functions and delete them in a way independent of where they actually reside in the calculator memory. The key DEFINE in both of the above functions serves to mark the start of the definition of a function in the cal-culator memory. This key is treated as an error if it is pressed during RUN mode. The key DEFINE is also treated as an error if the user attempts to execute it in a program.
Example:
Program Step Key ooO0 DEFINE
0003 DEFINE ~-The DEFINE at program step 0003 will be treated as an error when encountered during the execution of F3~ The user here forgot to terminate the execution of F3 with F-RETo This error will cause the calculator to stop execution and turn on the STATUS light.
b. Protecting User Defined Functions The protection feature allows the user to designate areas of memory to be a part of the calculator's executive system.
i. Protecting A Single Function Assume that you have just entered the definition of the function Fl in memory (the same Fl discussed earlier). After entering the last keystroke in the definition, namely F-RET, the program counter (y display) will point to program step 0006. Location 0005 which contains F-RET will be displayed in the z-register. Switch to the RUN mode. Press PROTECT.
The light on the top of the PROTECT key (option 2 light) .~................ will come on. The de-finition of Fl is now protected up to and including the F-RET key. If you switch back to PROGRAM mode, whatever was in program step 0006 before will appear now to be at program step 0000. All the program steps used in defining Fl became "invisible". For all purposes these program steps are now a part of the calculator system. You can still execute Fl by pressing the corresponding key in RUN mode, or by calling on it from another stored program or function.
ii. Protecting Several User Defined Functions Assume now that both the functions Fl and F2, de-scribed earlier, are to be protected. After protecting ~0587~;7 Fl switch to the PROGRAM mode and enter the de-finition of F2, namely:
Program Step Key 0003 Fl After entering the definition of F2 switch to the RUN mode. Press DELETE PROTECT. The protect light indicator (option 2) will go off. Press PROTECT.
Both the definitions of Fl and F2 are protected.
iii. Effect of Protection on User Memory When protecting a certain number o~ keystrokes the calculator subtracts that number from the total number of program steps available in user memory.
The user can compute the number of program steps available at any time as follows. In RUN mode, press END, DELETE, PROTECT, switch to the PROGRAM
mode and read the program step number in the y display, assume this number is p. The number of program steps available to the user are given by the simple formula:
Available Program Steps = n - p The variable n in the above formula is 500, 1012 or 2036 according to the amount of user memory pur-chased.
After finding the value of p, as illustrated above, you can switch back to the RUN mode and press PROT~CT
again to re-establish the protection.
1~5~t7~ 7 c. Deleting User Defined Functions To delete a given function simply press the DELETE key ~ollowed by the name of the ~unctio~ to be deleted. The DETETE key o~ly applies to the unprotected area o~ user me-mory. This prevents accidental erasure of protected ~unc-tions. Pressing the D~LETE key causes the Insert/Delete light to come on (option 1) indicating that a memory modi-ficatlon operation is to be per~ormed. I~ a~t~r pressing the DELETE key you ~ind that you did not want to delete a~ter all, you can press the CLEAR key to abort the delete option. Pressing the CLEAR ~ey at this time will cause the Insert/Delete light to go o~ the function to be de-leted does not exist the error light will come on and the delete operation will be aborted. The DELETE key must be pressed while the calculator is in RUN mode. The D~LETE
key may be ~ollowed by ~ function name (Fl thru F9), CLEAR, or a digit. Other keys following the DELETE ~ey will turn on the error light and abort the delete operation. I~ en-countered during the execution of a stored program the DELETE
key will cause the calculator to stop execution and turn on the error indicator.
DELETIN_ THE LAST F~NCTION } ME~ORY
The delete operation is designed to delete a portion o~
user memory ~h~ch starts ~ith the DEFINE o~ the ~unction to be deleted and ending ~ith the keystroke prior to the DEFINE
o~ the ne~t ~unction in memory, or END. To illustrate, co~-sider the following memory ~ap~ -.
Program Step e _ 0001 Fl :
~058767 (Memory Map Continued) 0009 IF X~Y
0010 F-RET "
0017 ...
When pressing DELETE Fl the calculator will delete the memory portion delimited by the two arrows in the memory map.
After deletion the DEFINE at program step 0004 will move to program step 0000. The following keystrokes will move ac-cordingly. Since the last function in a user memory is not likely to be followed by another DEFINE it is advisable to terminate that function with the keystroke END as shown in the memory map (program step 0016). If the last function in memory is not terminated with END then by deleting that func-tion the user will also delete that portion of memory which follows that function and terminates with an END. When de-leting the last function in memory, the delete operation does not delete the END key. Thus deleting F2 from the memory map ,~
shown earlier will result in the following memory map.
Program Step Key 0001 Fl The keystroke END becomes now the terminator to the defini-tion of Fl.
d, General Editing Capabilities In addition to deleting functions the user of the de-finable function block is offered the capability of deleting, inserting, and searching for individual keystrokes in memory.
This feature is discussed next.
io Deleting Individual Keystrokes If the DELETE key is followed by a 4 digit address*
the calculator will delete the keystroke contained in that address and move all the following key-strokes accordingly.
Example:
Consider the memory map:
Program Step Key 0006 . o .
*See next paragraph on Automatic Address Termination for further details on address length.
. . ~ . -~
l~s8767 To delete the keystroke at program step 0002 press the DELETE ~ey in RUN mode, (Insert/Delete light will come on), ~ollowed by the keys O O 0 2, The resulting me-mory map will be:
gra ~ Rey 000~ GO
0005 ...
Notice that the keystroke previously at 0003 is now at program step 000~. All the keystro~es ~ollo~ing the deleted key up to the last keystroke in memory have been mo~ed accordingly.
~TO~AT~_ADDRESS TERMINATION AND ABORTING A DELETE:
I~ the abo~e example we used a 4 digit address to speci~y the keystroke to be deleted. The user can use a 3, 2~ or o~e digit address i~ such an address is term~nated ~y a no~-~umeric key other than C~EA~. The follow~ng delete commands are equi-~alent to that given in the last example: .
DELETE 02 .. STOP
DELE TE 002 ' STOP
To abort a delete command be~ore it is executed prese the CLEAR k~y. The Insert/Delete light (option }) will go o~ and .. . . . . .. . . . .. .. ... . ..
the delete command will be cancelled. The CLEAR key can be pressed immediately a~ter the DELETE key or during the entry o~ the address digits. Notice that the 4th digit in an address -122- .
.
1~5~76i7 terminates that address. This digit signals to the calculator that the delete operation is to be performed. A CLEAR key following the 4th digit of an address will have no effect on a delete operation. After performing a delete operation the calculator switches off the Insert/Delete light. If the de-lete address is bigger than 2035 the status light will come on and the delete operation will be aborted. This number re-presents the maximum available program steps in the cal-culator.
ii. Inserting Individual Keystrokes The definable function block also offers the user the capability of inserting key codes at any arbit-rary program step.
Example:
Consider the following memory map:
Program Step Key 0004 ...
To insert a keystroke before the key at program step 0002, press INSERT in RUN M~DE, (the Insert~
Delete light will come on), followed by 0 0 0 2, Switch to PROGRAM mode. The y display will point to program step 0002. At this location you will find that a CONTINUE (Code 47) has been inserted.
The keystroke originally at 0002 has now been moved to step 0003. All the keystrokes which ~ollow this keystroke have been moved accordingly.
lOS1~7~;7 To put a new keystroke at 0~02, simply press the new key while you are still in PROGRAM mode.
The key pressed will replace the CONTINU~ in-serted earlier by the calculator. Without re-placing the CONTINUE at step 0002 the new memory map is as shown below:
Program Step Key 00~1 GO TO
0005 ...
The address in an INSERT command may . . . . . . .
be automatically terminated in the same manner described earlier in connection with DELETE. The insert operation can also be aborted in the same fashionO
Notice that the insert operation effects the con-tent of all the program steps following the one designated in that operation.
iii. Searching for a Given Keystroke in Memory:
The ability to search ~or a given keystroke in me-mory is provided by the FIND key. By pressing the FIND key, in RUN mode, followed by any other key on the keyboard the user commands the calculator to search for that key in memory starting at the cur-rent program counter value. If the key asked for - is not found, the status light will come on. How-ever if the key is found: the calculator will ~058767 automatically switch to PROGRAM mode, and the Z
register will contain Lhe program step at which the key was foundO
Example-.
Consider protecting a function definition area inmemory. This area is terminated with the key END~
Reset the program counter to 0000 by pressing GO
TO O or END, in RUN mode. Now press FIND END, the z-register will now contain the terminating END
in the function area. Press RUN PROTECT. The function area is now protected up to and including that terminating END.
PROGRAMMING HINTS:
The definable functions can be nested 5 levels deep, irrespective of regular subroutine nestingO A higher nesting value will cause the calculator to stop execution and turn on the status light.
The light on top of the F-RET key (option 3) when lit in-dicates that the user is executing a sequence oi' keystrokes in a function definition. I~ you press STOP while this light is on you may stop the calculator in the middle of a function.
To reinitialize program execution press DELETE, F-RET in RUN
mode, the F-RET light will go off and the program counter ad-justed to the value it had when the function area of memory was called.
Calling on a non-existant function from a stored program will cause the calculator to stop execution and turn on the status light. The program counter at this time will point to the program step which contains the name of the function called.
-125_ 105l~'7bi7 Mathematics ROM Module When the mathematics ROM module is plugged into the calculator at the left-hand receptacle 94, the user may em-ploy the de~inable keys 91 to perform the additional ~unc-tions indicated by the mathematics overlay shown in ~igure
10. All o~ the5e additional ~unctions are programmable. Any mathematically illegal functions performed either ~rom the key~oard i~put unit or a stored program will turn on the STATUS light.
The unlts to be used in problems involving trigono-metric ~unctions or vector arithmetic are selected according to the procedure listed in Table A. The units specified by the appropriate indicator light above the de~inable key block.
Table A. Speci~yi~g Units To Speci~y: Press: Indication:
~ _ . ....... .
D~GRE~S TABLE N 1Deg Rad Grad RADIANS TABLE ~ 2 O
GRADS TABLE N 3Deg Rad Grad It should be ~oted that the setting o~ degrees, radians, and grads (360 degrees ~ 400 grads) is programmable.
Trigonometric ~unctions o~ angles ~rom 0 up to 5760 can be calculated at ~ull accuracy; however, inverse trigono-metric ~unctions are calculated only ~or the ~rincipal values o~ the ~unctions:
sin~l x; -90 < ~ < + 90 ~ - cos l x; ~ < ~ ~ ~ 180 ~ _ tan~l x; .-so < ~} ~ + 90 For ~nstance: cos 150 ~ cos 210 ~ cos 510 - (etc.) ~ -.866 But: cos ~ .866 150 The sin x key is depressed to calculate the Sine o~
the contents o~ the x-register and insert the result in the x-register.
. .
~OS87~7 The cos x key is depressed to calculate the Cosine o~ the contents of the x-register and insert the result in the æ-register.
The tan x key is depressed to calculate the Tangent o~ the contents of the x-register and insert the result in `
the x-register.
The arc key is depressed ~ollowed by a trigonometric key to calculate the inverse trigonometric ~unction o~ the contents o~ the x-register and insert the result in the x-register.
For example, the sin 1 0.5 may be calculated by sequentially depressing the TABLE N, 1, ., 5, arc, and sin keys. Depression o~ the TABLE N and 1 keys selected the units (degrees) per Table A above.
The ~ollo~ing logarithmic and exponential ~unctions may all be ~er~ormed by employing one or two keystroke opera-tions.
The TABLE N and 4 keys are sequent~ally depressed in the order named to calculate the logarithm (to base 10) of the contents of the ~-register and display the result in the x-register.
The T~BLE N and 5 keys are sequentially depressed in the order named to raise 10 to the power ~ndicated by the contents o~ the x-register and display the result in the x-register (i.e. lOX)~ For example~ the number 0.69897 may be - raised to the power indicated by the contents o~ the x-register by sequentially depressing the ~, 6, 9J 8, 9, 7~ TABLE Nf and 5 keys.~
The ln x key is depressed to calculate the logarithm (to base e, i.e. natural logarithm) o~ the contents o~ the -127_ iO587~7 x-register and display the result in the x-register (i.e.
ln x). For example, the 5~ may be calculated by sequen-tially depressing the 2, 3, ln x, t, 5, ~, S, and e keys.
The ex key is depressed to raise e (i.e. 2.718....) to the power indicated by the contents of the x-register and display the result in the x-register (i.e. eX).
The xY key is depressed to raise the contents of the x-register to the power indicated by the contents o~ the y-register. The result is displayed in the x-register, and the contents of the y-register remain unchanged.
The ~ollowing keys provide capability ~or performing complex and vector arithmetic with a single keystroke opera-tion.
The TO POLAR key is depressed to convert rectangular coordinates (consisting of x and y components in the x- and y-registers, respectively~ to polar coordinates (4 - tan 1 _, R ~ ~ ). When converting ~rom rectangular (cartesian) to polar coordinates, the calc~lated angle ~ will be within the range cf -180C 4 <180. The final displày is:
temporary z ------accumulator y (Angle 4) keyboard x (Radius R) For example, the coordinates 4, 3 (x, ~) may be con~erted to polar ~orm by seguentially depressing the T9BLE N, 1 (these keys select the units, i.e. degrees), 3, t, 4, and T0 POL M
keys.
The T0 RECTANGULAR key is depressed to con~ert polar coordinates, when the radius tR) a~d the angle (~) are i~ the x- and y-registers, respecti~ely, to rectangular coordinates (y ~ ~ Sin 4, x - R Cos ~).
-1~8-~058767 The final display is:
temporary z ------accumulator y (y component) keyboard x (x component) For example, the polar coordinates R = 8, ~ 5 120 (or -240) may be converted to rectangular form by sequentially de-pressing the TABLE N, 1, 1, 2, 0, t, 8, and TO RECTANuULAR keys.
The final display is:
temporary z accumulator y 6.928 keyboard x _4.000 The ACCUMULATE +, ACCUMULATE -, and RECALL keys are storage and recall keys associated with the a- and b-data storage registers. These keys provide complete capabilities for vector addition and subtraction.
The ACCUMULATE ~ key is depressed to simultaneously add the contents of the x- and a-registers together and the contents of the y- and b-registers together. The sums are entered in the a- and b-registers, respectively, while the x- and y-registers remain unchanged.
The ACCUMULATE - key is depressed to simultaneously subtract the contents of the x-register from the contents of the a-register and the contents of the y-register from the contents of the b-register. The remainders are entered into the a- and b-registers, respectively, while the contents of the x- and y-registers remain unchanged.
The TABLE N key permits access to 10 more ROM func-tions than there are definable keys. A list of these func-tions is given in Table B below~ The TABLE N key may be fol-lowed by any key. If this key is different from a numeric -129_ ~ .
lOSB767 or F~, no operation is performed.
Table B
TABLE N FUNCTION
1 SET DEGREES~ -I SETS ARGU~ENT UNITS FOR
2 SET RADIANS ) ~ TRIGONOMETRIC FUNCTIONS
4 Lo 6 DEGR, MIN, SEC ) DECI~AL DEGREES
7 DECI~AL DEG~EES ~ DEGR, MIN, SEC
8 X' F~T A~TOMATIC P~OTTER SCA~ING
The ~irst ~i~e functions o~ the TABLE N key have al-ready been e~plained abo~e. However, this key ~ay also be used to per~orm any o~ the n~xt ~ive iunctions (namely, angle co~vers~on, calculatio~ ~!, rounding a number to a speci~ied power o~ ten, and plotter scaling) not previously described above.
The TABLE N and 6 keys are se~uentially depressed in the order named to convert an angle eæpressed i~ degrees, minutes and seconds to decimal degrees. The a~gle must be en~ered into the ca~culator as ~ollo~s:
DISPLAY
temporary z - (Degrees) accumulator y ~ utes) keyboard ~ - (Seconds) The result in dèc~mal degrees, appears i~ the x-register, while the y- and z-registers are cleared. This is illustrated .
as ~ollows:
-.
..
~0587~i7 temporary z - O
accumulator y - 0 keyboard x - DECIMAL DEGREES
The TABLE N and 7 keys are sequentially depressed in - the order named to convert an angle expressed in decimal degrees to degrees, minutes and seconds. The angle to be con-verted must be entered into the x-register, and the resultant angle appears as in the previous display. However, the con-tents of the y- and z-registers need not be zero for the in-struction TABLE N, 7.
The TABLE N and 8 keys are sequentially depressed in the order named to replace the contents of the x-register with X! (where x 0 ~ ¦x¦ < 69).
The TABLE N and 9 keys are sequentially depressed in the order named to round the contents of the y-register to the power of ten indicated by the integer value of the con-tents of the x-register. The rounded number appears in the x-register, while the y-register remains unchanged. For example, the number 5610.0 may be rounded to 102 (or nearest 100), by sequentially depressing the 5, 6, 1, 0, and t fol-lowed by the 2, TABLE N, and 9 keys.
DISPLAY
accumulator y 5610.000 keyboard x 56000000 (y rounded) Similarly, the contents of the y-register may be rounded to another power (104) by sequentially depressing the 4, TABLE
N, and 9 keys.
DISPLAY
accumulator y5610.000 keyboard x 10000.000 (y rounded) l U ~ 7 A fractional numb r may be rounded by inserting a negative number into the x-register. For example, the number 0.005 may be rounded to the 10 or nearest 1/100 by sequentially depressing the ., 0, 0, 5, t, CHG SIGN, 2, TABLE N, and 9 keys.
DI~PLAY
accumulator y 0.005 keyboard x 0.010 (y rounded) A problem usually encountered when writing a calculator/
plotter program is that of scaling the available problem variables to coordinates which the plotter can use. The plotter scaling feature to be described, simplifies this typical plotting problem. The TABLE N, F~T, and t or I keys are sequentially de-pressed in the order named to replace the plotter problem variables, which are entered in corresponding x- and y-registers, with scaled coordinates. The user variable maxima and minima for this scaling operation are stored in user data storage registers 001-0040 The foregoing sequence of keys controls the plotter (using the scaled variables) in the same manner as FMT, t, or ~ described above.
The DEFINABLE f ( ) key is used to label and "call" an often used (or favorite) function which is programmed as a subroutine in the calculator. The definable function may be executed at any time from the keyboard by depressing the DEFINABLE key, or it may be "called" in a program by incerting the DEFINABLE (key) instruction. The definable ~unction is programmed similar to a "LABEL" subroutine, while the function is executed as a normal subroutine; except it may be "called"
with only one keystroke or program step.
When the DEFINABLE f ( ) key is depressed the program counter searches for a subroutine labeled DEFINE f ( ), ,, ., ~ , .
executes, and returns. This key can be used both in key-board and program control. A user written subroutine to be called by the DEFINABLE f ( ) key can be stored anywhere in the program memory, its first program steps must be LABEL, DEFINABLE f ( ); its last step must be SUB/RETURN. There are no restrictions on the operations this subroutine may perform. It is illustrated by the following example:
LABEL
DEFINABLE f ( ) t ex X f y C~G SIGN
+ . .
_ SUB
RET~RN
Whenever the key DEFINABLE f ( ) is called either in RUN or 20PROGRAM mode, the hyperbolic cosine of the number in the x-register is computed and placed in the y-register by this subroutine.
The TABLE N and CLEAR x keys are depressed to clear all numerical storage registers without affecting the a- and b-registers or the x-, y- and z-registers.
A programmed subroutine may be repeated m number of times by inserting the following keys at the end of the sub-routine: TABLE N, SUB RETURN, and n, where n may be any key from O to 9 indicating a data storage register that contains 30m, and m is equal to the absolute integer value of the contents ~05~767 of the n-registerO After the subroutine has been repeated n times, the program exits the subroutine and resumes normal program operation at the program step following the sub-routine "calling instructions". The iterative subroutine feature may be added to a ~'LABEL" subroutine, but when the T.AREL subroutine is ~called~' (during a program) the call instructions must contain 6 program steps. The following partial program shows how to call the LABEL ~ iterative sub-routine.
Iterative "LABEL" Subroutine STEP KEY ~ COMMENT
0400 - - - _ _ 0401CONTINUE 47~
. Subroutine I CALLS
SUB ¦ Instructions 0404~ET5E~ 77 0405 LABEL 31l (6 keys) 0406 ~ 56~
Return from 0407 ~ 35 Subroutine .
.
105~t7~i7 Statistics ROM Module The primary function of the statistics ROM module is to carry out the summations of variables, cross-products, and squares needed as funda-mental quantities in a variety of statistical ana1yses. These summations are generated in the general data storage user registers, and the user must be careful to avoid any operations whTch might destroy or alter the contents of these registers. The number of registers used js dependent on the number of variables treated - as defined by the user.
The registers used are:
n ~0 2 x ~1 2 x2 ,2 ~variable; x _ 2 y ~3 2xy :~ 4 2 y2~5 ~ 2 - variable; x, y 2 z-~6 2xz 7 2yz~ ~ 8 2 z2~9 ~ 3 _ variable; x, y, z 2 a~10 2xa-~11 2ya.~12 2za~13 2 a2~14 ~ 4 - variable; x, y, z, a 2 b~15 2xb~16 2yb~17 2zb~18 2ab~19 2 b2~20 ~5 - variables; x, y, z, a, b These are graphically summarized in an easy-to-recall form in this table:
_ - O1 1 3 1 61 10 b x ~ 4 7 11 16 b.
.: ~
~s~
In ad~tion to the user-reg~ters O - 20 ut~zed as sh~wn above, registers 21 ~ ~2~ are usedfor co~ection of max~num/m~L~num ~alues,for the "seed" o~ the pseudo-random nunnber generator. This is shown below:
~5 2q Any regi~ers notused ~ a spec~ic sequence are ava~able. For ~nple, ~ 2 - var~able operat~ons are setuD, only reg~ers 0~ ~5 are ~n use, and 6 ~ ~20 arefreefor ot~er purposes.
Whe~ the statistics ROM module is plugged into the calculatorJ the user may employ the definable keys 91 to perform the additional functions indicated by the statistics overlay shown in Figure 11. All of these additional unctions are programm~ble and will hereinafter be described key-by-key.
~051~'7~'7 The VARIABLES K key is used to define the number of variables to be treated, 1 to 5. It must be followed immed-iately by a digit key, 1 to 5. If any other key is depressed after this key, the STATUS light will be turned on, and the calculator will halt in the display mode. The VARIABLE key and the erroneous key following it are ignored - there is no other action.
If a correct digit key follows, one or more of the indicator lights will come on, to signal the number of variables selected. The pattern is:
1 - variable 1 - light 2 - variable 2 - light 3 - variable 3 - light 4 - variable 1 and 3 - lights 5 - variable 2 and 3 - lights The definition of the number of variables affects subsequent use of the S' key, MAX/M~ key, and the ~ITIALIZE and CORRECT keys used in conjunction with it. The number of variables remains unchanged until the VARIABLES key is used to change it, which may be done at any time.
This key is used to accumulate the data summations of variables, cross-products, and squares as outlined previously. The number of summations is determined by the VARIABLES key described above.
That is, the contents of the registers utilizedare:
1- variable x 2 - variable x, y 3 - variable x, y, z 4 - variable x, y, z, a 5 - variable x, y, z, a, b If the summation key ( ~ ) is depressed without a previous definition of the number of variables (VARIABLES key followed by digit 1~ 5), the number of variables is set at 3. I~ will remain at this setting unless changed by use of VAPdABLES
The E key generates the summations, and leaves the contents of x, y, z, a, and b unchanged.
The INITIALIZE and CORRECT keys work in conjunction with the summation key. They must precede the ~: key.
When the sequence lMTIALIZE - ~ is used, all registers (defined by the number of variables set) involved in the summations are cleared to zero. This sequence should always be used before the start of a series of summations on a set of data - otherwise any previous contents of the l~S~'7~'~
registers are included in the summations.
If, after depressing the ;~ key, it is discovered that the contents of x, y, z, a, or b were erroneous, the user may remove the erroneous data from the summation by depressing CORRECT - S keys in that sequence. This will remove all variables, cross-products, and squares of that data from the summation. The user may then correct the data and reenter it by depressing the ~ key. Since x, y, z, a, and b are unchanged by the use of ~ (or CORF~ECT - ~ ) this is most conveniently done when the erroneous data is still intact - i. e., immediately after ~ . However, if the erroneous data is not discovered until later the user must reenter the erroneous data in x through b (only x and y if ~ - variable, etc. ), use CORRECT - ~ , and then correct the erroneous data and enter it with the ~ key.
The user must be careful not to do any operations during a summation-sequence on data which will alter the con-tents of any user-registers involved in the summation.
However, the contents of any of the summation-registers may be recalled and used at any time, so long as they are not altered.
Once a data-sequence has been entered by use of the ~ key, the summations are available for any desired statistical analysis. For user convenience, four commonly used statistical processes are implemented, to be performed by a single keystroke. The function of these four keys will follow.
The MEAN key computes (from the collected summatians) the arithmetic mean of up to three variables; x, y, and z. ~ 4 or 5 variables are set, the MEAN key operates on only 3, and does not form the other two means (on a and b).
For various variable settings, the following computations are made, and appear in the x, y, z registers:
1 - variable z 0.0 Y 0.0,~
x x= x=( ) n (0) where (1) means "contents of register - 1".
2 - variable z 0.0 Y Y = ~ Y = (3) n (0) x x 105~7~;~
3 - variable z z = ~ z = (6) n (O) x x These computations are carriedout and the results appear in x, y, z as shown, without changing the contents of any of the summation registers.
The VARlANCE key computes (from the collected summations) the variance of up to three variables, x, y, and z. If 4 or 5 variables are set, the VARIANCE key operates on only 3, and does not form the variance of aorb.
The following computations are performed:
x2 _ ~ (2) -~
n- 1 (O)- 1 y2_ ( ~ y)2 (5)_ (3)2 Y =--- . = () n- 1 (O)- 1 z2 _ ( z)2 (9) _ (6) z = ~ n = (o) n- 1 (O)- 1 The results appear in the x, y, z registers in the pattern.
1 - variable 2 - variable 3 - variable Z- ` 0.0 0~0 ~z Y- 0.0 ~y ~2 x - ,~, 2 ~ 2x ~,2 The contents of all summation-registers used in these computations remain unchanged.
lVS~767 The REGRESSION key performs linear regression (least-squares curve fitting) using the accumulated summations. The computations and results are controlled by the variable-setting, as outlined below:
Variable - 1: The regression of a single variable on itself is not performed. If REGRESSION is depressed with VARIABLES - 1 set, the STATIJS light is turned on, and the calculator halts in the display mode.
There will be no other action - the contents of x, y, z, and aCI summation -registers will be unchanged.
Variable - 2: The regression of the dependent variable on one independent variable is performed for the equation:
y = aO + alX
The results are placed in x, y, z in the pattern:
z ~ 0-0 y ---- aO
X al The contents of all summation-registers used in the computation remain unchanged.
Variable - 3: The regression of the dependent variable on two indè~endent is performed for the equation:
~ = aO + alX + a2Y
The results are placed in x, y, z in the pattern:
Z aO
y --- --- a2 X al The contents of all summation-registers used in the computation remain unchanged.
Variable 4 - and Variable - 5: This situation is treated as Variable - 3. Four - and 5 - variable regression may be performed ~y user-progralnming. All summations required are generated by the key when variables are set at 4 or 5.
r The r2 key generates the correlation coefficient (a measure of , . .
1~58767 goodness-of-fit) for the linear regressions performed by the REGRESSION
key. The computations performed are controlled by the variable setting.
Variable - 1: No computations are performed - the key is ignored.
Variable - 2: The correlation coefficient of the linear regression for:
y = aO + alX
is computed.
The computations performed are best described by introduction of a subsidiary quantity:
~,'< XiXj = ~XiXj - ( ~_Xi)( ~ j) The correlation-coefficient for variable - 2 is then defined to be:
r2 = (~t xy)2 ~ xx.~yy This result is placed in register x, and y and z are cleared.
Variable - 3. The correlation-coefficient of the linear regression for:
z aO + alX + a2Y
is computed. This is:
r2_ al ~XZ + a2 ,C~t.
zz The result is placed in register x, and y and z are cleared.
The MAX/M~ key is used to collect the maximum and minimum values of the variables x, y, and z. Since these values are stored in registers 21 through 26, they do not affect the summation regiæters ( ~ key). Thus, MAX/M~ information may be collected on the same data on which summation information is being collected.
The MAX/M~ storage registers 21 through 26 are initialized by the key-sequence lNITIALIZE - MAX/~N. This results in loading the registers with:
- ~OS8'767 (~1), ~23), (25) (x, Y, Z)min = 1099 (~2!~ (24), (26) (x, Y, Z)max = -10 All six registers are initialized without regard to the variable-number setting.
When MAX/MIN is depressed, the contents of x (l-variable), x and y (2-variable) or x, y, and z (3, 4, or 5-variable) are compared to the stored contents of the max/min registers. If the new value is less than the contents of the associated "min" register, the new value is substituted -if not, the register is left unchanged. The maximums are handled correspondingly. Thus, at any time the max/min registers contain the max/min of the input data since the last initialization. This data is not displayed - the user must recall it, as needed, from the appropriate register.
The CORP~ECT key does not work in association with the MAX/MIN
key, since any previous values changed are lost irretrievably by the MAX/MIN operation.
t The t key collects summations necessary to compute a t-statistic on data in x and y, and computes and displays the statistic. The overall action is quite different from the ~ key, which collects summations only, and leaves the original data unchanged. In contrast, the t key collects needed snrnmations, computes and presents the t-statistic, and destroys the data just entered.
Further, the t-summations are stored in registers 0, 1, and 2 which are the same registers used by the key. Therefore, use of the ~ and t key cannot be intermixed.
The summations accumulated are:
n ~0 ~(x-y)= D~l ~(x _ y)2 = ~D2~2 These are accumulated with each depression of the t key. The three registers may be cleared for starting a new data-sequence by the key-sequence lNITIALIZE - t.
If an error i~; made in data entry and the erroneous data i8 included in the summations by depression of the t key, it is convenient ; to have a means for removing the erroneous data. Ho~7ever, the data has been destroyed in order to present the t-statistic which is computed after each key depression. When the user discovers the data error, he may reenter the erroneous data in x and y. Then, depression of CORRECT - t will remove the data from the summation. He may then reenter the correct data and include it by depressing the t key.
. . .
., .
~ - 142--.j .
The computations performed from the summations are:
D _ (x y) n~ ~ n -~
.~
~D 1¦ (X y)2 ( ~ (X - y))~
n(n- 1) D is placed in the z - register, n in y, and t in x.
x2 The x2 key accu~ulates the summations and then computes and presents the chi-squared statistic at each depression of the key. It's general operation is the same as the t key in that:
1. 2 Summations are accumulated in O and 1 so that use of X and ~ cannot be mixed.
2. The presentation of results after each key depression destroys the data entry in x and y. Correction for erroneous data can be accomplished ~y reentering the bad data and then depressing CORRECT - XG.
3 The regi~ters used (0 and 1) are cleared by depressing The summations accumulated are:
n - ~O
(x - Y) _ ~1 ~ the normal context for use of chi-square the "observed" value is in x, the "e~pected" value in y.
The RANDOM key causes the computation of a sequence of pseudo-random numbers, uniformly distributed in the interval O_RN>l. The method used is congruential products. It is neces-sary for the user to provide a "seed" for the sequence before using the RANDOM key. A given seed will produce the same se-quence of pseudo-random numbers each time it is used.
The seed should be stored by the user into register 27.
After each depression of RANDOM, the newly-generated pseudo-random will be stored in register 27 as a new seed, and the number will also be presented in the x - register. They y and z regis ters rema in unchanged .
, .: - , ~ -105~767 The initial seed provided by the user should be selected with certain rules in mind in order to obtain acceptable pseudo-random number properties. They are:
l. Enter a decimal fraction consisting of 12 digits (i.e., enter a complete number including guard-digits, even though they cannot be seen).
2. The number should be odd.
3. The number should not be evenly divisible by 5.
The LOGlox, LOGex, and eX keys provide the specified mathematical function on the argument in x, and the result is left in the x-register. No other registers are changed.
Typewriter ROM Module When the typewriter ROM module is plugged into the calculator, the keyboard input unit is redefined as shown in Figure 12 so that the entire keyboard of a properly interfaced typewriter such as the Facit ~odel 3841 (hereinafter referred to as the Model 61) may be completely controlled by the calculator. The Model 61 is capable of performing three basic operations:
1. Type data contained in the calculator's X-register.
2. Type alphameric messages and control typewriter functions.
3. List programs contained in the calculator memory.
These operations are accomplished by calculator instructions given either from the keyboard or as program steps in a proper sequence. In this section, these instruction sequences will be described. Wumerous examples are provided so that the user will be able to manually key the instruction sequences and obser~e the results. In normal operation, the instruction sequences would be placed in a program.
Table C provides, in brief form, the instruction sequences used to operate the ~odel 61. ~he table is not provided to teach typewriter operation; rather, it is provided for quick reference once the instruction sequences are under-stood.
All of the Model 61 instruction sequences presented in this section can be reduced into component parts consisting of one or more calculator instructions. For example, all of the ~lodel 61 instruction sequences contain the two calculator instructions FMT and 2.
The instructions FMT and 2 ser~ice the special purpose of redefining the following calculator instructions so that they will be understood only by the typewriter. The two instructions, when thought of as a component part of an instruction se~uencer can be considered as "the type-writer address n _ Although these two instructions will be shown as part of each of the following instruction sequences, their meaning will not be explained again.
, , TABLE C
COMMAND SET
Instruction Sequence:
Typing a Number ~ Types the number in the x-register ¦ in a notation and location speci~ied by 1. FMT 2 PRINT ¦ th0 last w.d. instruction.
2. FMT 2 w.d. w speeifies field width (location).
3. FMT 2 w.d. The number will be right justified in the PRINT
field. At turn-on, the calculator assumes a w of 20.
d specifies the number of digits to the right of the deeimal point or speeifies floating point.
Alphanumerie Typing FMT 2 FMT Message FMT
Allows the user to type labels and headings. Also allows control of all keyboard funetions except margin setting. Messages may include print instruetions. Caleulator keyboard has two modes, shifted and unshifted (see keyboard diagram on the baek page).
Listing A Program FMT 2 List Lists the contents of the ealeulator's memory be- -ginning with the present location of the progra~ eounter and eontinuing until an end statement is eneountered in the memory or stop on the ealeulator keyboard is pressed. The listing ineludes address loeation, key code, and key mnemonie.
All eommands are available on program or manual request.
~058767 The instruction sequence FMT, 2, w.d, PRINT allows the user to type the data contained in the calculator's X-register. In this sequence, the notation (fixed or floating point) of the typed data can be specified. In addition, the location where the data will be typed on the typewriter platen may also be specified. This instruction sequence consists of the following component parts:
FMT 2 - Typewriter address.
w.d. - Specifies the location and notation of the typed data.
PRINT - Causes the data point to be typed.
The instruction sequence is initiated with the typewriter address and is terminated by the PRINT instruction. The component parts of the instruction sequence have the following meaning for the typewriter.
w.d. - This component of the instruction sequence allows the location and notation of the typed data to be specified.
The w part of the component specifies the location; the d part specifies the notation. The decimal point in the com-ponent delimits the two parts. Although a w cannot be given without also giving a d, they are best explained separately.
w specifies the field width (w) in which the data is to be typed. The left side of the field is defined by the location of the typewriter carriage when the data is typed. The right side of the field is defined by the value of w. For example, if the typewriter carriage were sitting ten spaces from the left margin setting and w was specified as twenty, then after the data has been typed the carriage will be located thirty spaces from the left margin setting.
Any data typed in a field, will automatically be typed in the right most spaces (right justified) of the field. The following drawing illustrates the number 123.45 right justified in a field of ten.
_ The field must be large enough to contain the typed data, including the decimal point and any signs that may be present ..
~lOS87~;~
in the data point. If, for example, the data point were the digit one, a w of one would be large enough to contain the data point; however, if the data point were a negative one, a field width of two would be required.
If the field is not large enough to contain the data point, the data will not be typed; instead, the entire field would be filled with asterisks to notify you that the data point could not be fitted into the specified field width.
W may be specified as any number between one and sixty-three (inclusive). Since the data point is always right justified in the field, you will use w to place the data point at the desired location on the typewriter platen.
Do not, however, set w so large that the data, when typed, exceeds the right margin setting. If the right margin is exceeded, the program will be stopped at the memory location following the PRINT instruction (explained later) that exceeded the right margin setting and the STATUS lamp will be lit.
When a w instruction is given, the value is automatically stored in the calculator. A w instruction, once given, need not be given again in a program and may be used any number of times when succeeding FMT, 2, PRINT (explained later) instruction sequences.
The value selected for w is lost when the calculator is switched OFF. When the calculator is switched ON
a w of twenty is automatically stored.
The d part of the w.d component allows the user to control the mode of the calculator display from a program and, therefore, the notation (fixed or floating point) of the typed data.
In this instruction sequence, when the data in the calculator's X-register is typed, it will be typed as it is displayed in the X-register. In order to provide the capability of specifying the notation (fixed or floating point) of the typed data, this instruction sequence is capable of con-trolling the format of the calculator display. This is provided by the d part of the w.d component.
1058?;~6'7 The following table shows the relationship between d and the notation of the typed data.
d Typed Notation 0 declmal part and decimal point are suppressed 1 one digit to the right of the decimal point is typed.
2 two digits to the right of the decimal point are typed.
.
.
9 nine digits to the right of the decimal point are typed.
decimal point) the data will be typed in floating point notation.
A data point in the calculator's x-register will always contain a decimal point; however, if the data point is displayed with no digits to the right of the decimal point (e.g., 10.), the data, when typed, will be typed without the decimal point.
The d part of the w.d component is most easily thought of as a programmable FIX ( ) - FLOAT instruction. It has the same effect as those keys on the calculator display. Also, all of the rules of operation concerning overflow and under-flow applicable to the FIX ( ) and FLOAT keys apply equally to d.
In the case of overflow, if the calculator display contains nine digits to the right of the decimal point and a data point containing two digits to the left of the decimal point is entered in the x-register, the register will overflow and display the data point in floating point notation.
Exactly the same situation can occur with d. If you specify a d of nine and the data point in the x-register overflows, then the data point will be typed in floating point notation.
There is a potential problem in the interaction between w and d that the operator should be aware of. For example, assume that w has been set for two and d has been specified as zero. If the data point in the x-register over-flows and an attempt is made to type the data point, the field width of two will not be large enough to contain the data point in floating notation and two asterisks will be typed.
~, :
l~J5~7~7 Whereas an overflow condition which exceeds the field width will cause asterisks to be typed, an underflow condition will not. In an underflow condition, the ~ata point in the x-register has become so small that the d specification does not allow the data point to be dis-played with enough accuracy. Like the overflow condition, the data point is, in essence, not typed. For example, assume the yalue of the data point in the x-register were 1.23 x 10 1 and d were specified as zero. When the data point is typed it will be typed as zero.
The operator should be aware of the range in which the typed data will lie and set the w.d specification so that neither underflow or overflow occur. If the range is likely to be very great, the field width and d should be set so that the data point is typed in floating point notation (16 . . ).
Because d is essentially stored by changing the format of the calculator display, the value for d remains unchanged until the display format is changed. This can be done by giving another d instruction or by manually pressing the FLOAT or FIX ( ) keys. If, for example, you specify a d of two, stop the program and press FLOAT, then, when the data is typed it will be typed in floating point notation.
The PRINT component of this instruction sequence causes the typewriter to type the data contained in the calculator's x-register. The data will be typed in the location and notation specified by the last w.d component given. -When a FMT, 2, w.d, PRINT instruction sequence has been executed, the instruction sequence will automatically be terminated and the typewriter address reset. This means that if ybu wished to type the same data twice, the entire instruction sequence (less w.d, explained later) must be given again.
In order to provide maximum programming flexibility, certain component parts of the FMT, 2, w.d, PRINT instruction sequence may, optionally, be omitted from the instruction sequence. The following variations of the sequence are allowable:
FMT, 2, w.d, PRINT - Type the data in the x-register in a specified location and notation.
FMT, 2, w.d - Establish a field width (w) and notation (d) which will be used later in the program by one or more FMT, 2, PRINT
instruction sequences.
FMT, 2, PRINT - Type the data in the x-register in a location and notation stored earlier in the program.
The FMT, 2, w.d instruction sequence allows you to save program steps by specifying w and d only once in a program and reusing them any number of times with succeeding FMT, 2, PRINT instruction sequences.
The PRINT instruction in these sequences will automatic-ally terminate the instruction sequence and reset the typewriter address. In the case of the FMT, 2, w.d instruction sequence, the instruction sequence is not terminated; however, the next calculator instruction, in addition to performing its normal function will terminate the sequence.
The use of the FMT, 2, w.d, PRINT instruction sequence is illustrated by the following example:
A piece of paper 8-1/2" or wider is placed in the typewriter and the margin stops, paper guide and carriage set as shown below:
Left Margin Right Margin ~---Stop m -~stop O O O O . . . O O
Paper L__JGuide 1 2 3 4 Paper Bail's Q 0 0 0 . . . Graduated Typing Scale f~ O O O O . . .
Card Holder The number one thousand is keyed into the calculator's x-register, and floating point display is selected.
DISPLAY: 1.000000000 03 X
PRESS: FMT, 2 1 3 2 DISPLAY: 1000.00 ~ X
The w (13) was stored and the d (2) changed the displày.
The instruction sequence is not terminated, however, and a PRINT instruction may be added:
PRESS: PRINT
TYPE-OUT:
w = 13, d = 2 ~ ~ ~ 2 3 4 O Of~ O O O . . .
. , ~ , , ~058767 The red pointer mark on the CARD HOLDER points to thirteen on the PAPER BAIL'S graduated typing scale, not fourteen as one might expect. That is because the scale starts at zero, not one.
The PRINT instruction has terminated the instruction sequence. To type the data again will require another instruction sequence:
PRESS: FMT, 2, PRINT
TYPE-OUT:
w = 13, d = 2 1000.00 1000.00 0 0 0 6 0 0 . . .
The FMT, 2, PRINT instruction sequence has used the w and d stored in the preceding FMT, 2, w.d instruction sequence.
The type out is right-justified on the twenty-sixth space -as the left side of the field is defined by the location of the carriage when the data is typed.
It should be noted that a FMT, 2, w.d PRINT
instruction sequence does not contain the capability of a carriage return/line feed instruction. This capability does exist, however, as explained below.
A FMT, 2, w.d instruction sequence is terminated by the next calculator instruction given. In addition to terminating the FMT, 2, w.d instruction sequence, the instruction will be performed in its normal manner.
PRESS: FMT, 2 DISPLAY: 1.000000000 03 _ X, Y
This instruction sequence has specified floating point notation; however, this display can be manually over-ridden with the FIX ( ) - FLOAT keys:
PRESS: FIX ( ) 2 DISPLAY: 1000.00 _ X
~05~76~
PRESS: FMT, 2, and PRINT
TYPE-OUT: w = 13, d = 2 1000.00 1000.00 1000.00~
O O O O~0 . . .
f~l Data in the calculator's x-register can be typed without a decimal point. This is done by specifying a d of zero:
PRESS: FMT, 2, 4, ., 0, and PRINT
TYPE-OUT: w = 4, d = 0 ,. _ .. ... .... ., . ~ . .~
:' 1000o00 1000.00 1000.00100 O O O O 0~
The data point just typed was typed in a field width of four, just large enough to contain the data. Spaces between this data type-out and the one previously typed could have been provided by specifying a larger field width, w.
Asterisks will be typed across a field that is not large enough to contain the data.
PRESS: FMT, 2, 3, ., 0, and PRINT
TYPE-OUT: w = 3, d = 0 ~~~~~~ ïooo . oo looo . oo looo . oolooo***
0 0 0 0 0 6 0 . -~05~767 The FMT, 2, FMT, MESSAGE, FMT instruction sequence allows labels and headings to be typed for data. With this instruction sequence, the user can control both characters on each typewriter key and control all typewriter functions directly from the calculator, either by stored program step or manually, from the calculator keyboard.
The instruction sequence consists of the following component parts:
FMT 2 - Typewriter address FMT - Established the TYPING
MESSAGES instruction sequence.
MESSAGE - Your label or heading FMT - Terminates the instruction sequence.
Other calculator instructions which terminate this instruc-tion sequence are:
LOAD STOp * STEP FLOAT
RUN KEYLOG RECORD END *
STEP FIX ( ) PRGM LIST
* Programmable instructions.
In the M~SSAGE component of this instruction sequence, one programmable calculator instruction will control one typewriter key. Which character on the typewriter key will be typed or which typewriter function will be performed, will depend on the mode of the calculator keyboard when the instruction is given. In the MESSAGE component of this sequence, the calculator can be in one of two modes, unshifted or shifted.
When the instructions FMT, 2, FMT are given, the calculator keyboard will automatically be in the unshifted mode. In this mode of operation, the calculator instructions and the typewriter character typed or function performed have the correspondence shown by the characters and symbols included within the keys of Figure 12.
-~OS8767 l`l~e unsh,~ted calculatc~P keyboard carl control the type~riter's numbers and capital alphabet. In addition, the fuKctior,s TAB
CLEAR, TAB, CR/LF (Carriage return/Line feed), SPACE, BLACK
RIBBON may also be performed. The FMT instruction and the blank keys shown in the diagram will terminate the instruction sequence. Three instructions (PRINT, TAB and SHIFT) avail-able on the unshifted calculator keyboard require special mention.
A PRINT instruction placed in a MESSAGE will cause the data in the calculator's x-register to be typed. The data will be typed in the location and notation specified by the last w.d given. A w.d may not be placed in a MESSAGE, however, they are stored when they are given and automatically recalled and used with a PRINT instruction placed in a MESSAGE.
A TYPING MESSAGES instruction sequence will not affect the contents of the calculator's display registers. Therefore, data can be placed in the x-register and typed with a PRINT
instruction placed in this instruction sequence.
Giving a TAB instruction will cause the typewriter carriage to move either to the next tab set or to the right margin setting. If the carriage is less than two spaces from a tab setting and a TAB instruction is given, then that tab setting will be ignored by the typewriter and the carriage will move to the next tab setting or right margin setting.
The SHIFT instruction allows one to change the mode of the calculator's keyboard. If the calculator keyboard were un-shifted and a SHIFT instruction was given, then the calcula-tor keyboard would be in the shifted mode. In the shifted mode of operation, the calculator instructions and the typewriter character typed or the function performed have the correspondence shown by the characters and symbols printed below the keys of Figure 12.
The shifted calculator keyboard can control the typewriter's small let~r alp~abet and the symbols above the numbers and J _. ''- ';':
in addition, the functions TAS CLEAR ALL (CLEAR ALL TABS), TAB SET, CR/LF, SPACE, BACK SPACE. The FMT instruction and the blank keys shown in the diagram will terminate the in-struction sequence. The operation of the PRINT and SHIFT
instructions on the shifted calculator keyboard are the same as on the unshifted keyboard. The two instructions that require special mention on the shifted calculator key-board are the CR/LF instruction and the RED RIBBON instruction.
The CR/LF instruction will cause the typewriter to perform a carriage return and line feed. In addition, this instruction will cause the calculator keyboard to become unshifted.
A RED RIBBON instruction will cause the typewriter to type in red. Once red ribbon is selected, only two things can reset the red ribbon, they are, giving a BLACK RIBBON instruction (available on the calculator's unshifted keyboard) or switching the calculator interface OFF. Terminating the TYPING MESSAGES
instruction sequence will not reset a RED RIBBON instruction.
THE MESSAGE component of a TYPING MESSAGES instruction sequence may be any number of program steps (limited only by the size of the calculator memory). However, a typewritten line must not be allowed to exceed the right margin setting. If the right margin setting is exceeded, the program will stop at the second memory location following the instruction that exceeded the right margin setting and the STATUS lamp will light.
(It should be noted that if the right margin setting is exceeded in a typing data instruction sequence, the program will stop a~ the memory location imme-diately following the PRINT instruction that exceeded the right margin setting.) ~058~;7 Because of the two things an operator must keep track of, an example of TYPING MESSAGES is potentially confusing. For example, if the instruction "A" were placed in a MESSAGE, the operator could not easily predict whether the character typed would be "A" or "a", further, the color would be unknown.
Which character and which color would, of course, depend on whether the calculator keyboard were shifted or unshifted and the status of the ribbon color. The following format makes keeping track of these two things easier and, therefore, helps clarify the examples.
STEP _ 3R ;U _ PROG. INST. KEY CODE X
o tE __ 3 _ _ _ _ = =
G _ _ _ =--_ = = =
1 _ _ _ _ __ ..._ 3 _ _ _ _ = ==~ _ ~
The format is essentially the standard programming pad format with five additional columns: B, R, S, U and PROG INST.
Mark the B and R column so that you will know the status of the ribbon color, red or black. In the S and U columns, you can mark the mode of the calculator keyboard when the instruction is given - S ~or shifted, U for unshifted. In the PROG INST column you can record the typewriter instruc-tion that, considering the mode of the calculator keyboard, corresponds to the instruction in the KEY column. In the following examples, the PROG INST column will not be used except for typewriter instruction sequences.
.
:-' .
1058~7 To type messages the typewriter's LEFT MARGIN STOP and PAPER
GUIDE are set to zero. The typewriter carriage is positioned against the LEFT MARGI~ STOP. A piece of paper 8-l/2" or wider is placed in the typewriter and the RIGHT MARGI~ STOP
set to seventy. The number 123.45 is keyed into the calcu-lator's x-register and a display mode of FIX ( ), 3 selected.
In this example, the MESSAGE "The value is" wiIl be typed followed by the data just entered into the calculator's x-register. This is accomplished by keying in the following lnstructions:
STEP _ 3R iU _PROG. INST. KEY CODE X Y Z
0000 _ _ _ _F MT F MT 42 _ 123 .450 _ 2 _ _ _ _ 2 2 02 3 _ _ _ _ = 21 ,. . ._ _ 6 _ _ _ __ FMT FMT 02 123 45 7 ~ f MT F MT 42 ..
8 _ _ BLK Rl8 S/R 77 .. .
9 _ _ CR/Lf CLR 20 ..
0010 _ _ T XTO 23 2 _ _SH I FT UP 27 _ 3 _ e E 60 ..
4 _ _SPAC E CNT 47 .
6 _ _ v I NT 62 ..
. s _ _ e 1 /X 17 0020 _ _ SPACE CNT 65 2 _ _ s YTO 40 _ .PRINT PNT 45 _ _ FMT FMT 42 . _ ____ TYPE-OUT: The value is 123.45 Steps 0000-0004 The ~ m w.d instruction sequence established a field of seven with two digits to the right of the decimal point.
The data point (123.45) requires a field width of six;
setting the width to seven will ensure that there will be a space between the data and the last character typed.
Steps 0008-0009 The BLK RIBBON instruction in step 0008 will ensure that the MESSAGE in this example is typed in black. Prior to that time the status of the ribbon color was unknown; therefore, neither the B or R column was filled in.
The CR/LF instruction in step 0009 will ensure the MESSAGE
is typed against the LEFT MARGIN STOP.
The next example performs the same type of operation with the instruction sequences used in a slightly different manner.
In this example the TYPING MESSAGES instruction sequence will be used to type the message "123.45 squared =" in black and then set the red ribbon. Next a TYPING DATA instruction sequence is used to set a field width of ten with four digits to the right of the decimal point, and type the data contained in the x-register.
If the number 123.45 is not still in the x-register from the last example, it is entered into the x-register and the fol-lowing calculator keys are depressed in the order given:
STEP BRSUPROG. INSl. KFY COC~E . ....... .
0000 _ _ _ UP 27 123.45 123.45 l _ _ _ _ X 36 123.45 15239.9025 2 _ _ DN 25 15239.9025 , 3 _ _ FMTFMT 42 " "
4 _ _ FMTFMT 42 6 _ _CR/LF CLR 20 _ " "
00109 _ _ 2 -4 3~3 _~ _ - =
2 _ _ 5 05 " __ 3 _ SPACECNT 47 4 _ l lSH I FT UP 27 "
6 ~ I ~ o YTC 17 _ ..
8 _ ~ F a a 62 0020 l _ F e E 60 _ _ 3 I _ ~ SPACE CNT 47 _ _ _ .
4 _ RED RIBSIR 77 " "
5 _ _ FMT FMT 42 _ 76 ~ - F2MT FMT 02 - 8 _ _ - 01 ,;- ..
9 O O 00 " " ..
0030 _ _ 4 _ 21 . ' 3 _ _PRINTPNT 45 . ..
_, _ _ . . . _ 1()58767 In the last example, a BLK RIBBON instruction was given. Since then, the ribbon color has not been changed. Therefore, in step 0003, the B column can be filled in even though a BLK RIBBON instruction was not given.
At step 0024 a RED RIBBON instruction is given so that the data in the x-register will be typed in red. Remember, the red ribbon can be reset to black ribbon by two things only, giving a BLK RIBBON instruction or turning the typewriter interface OFF.
TYPE-OUT: 123.45 Squared = 15239.9025 It may be noticed that there is no space in the type-out between the "="
and the data. That can be corrected in two ways:
1. Setting the w specification to eleven.
2. Inserting a SPACE instruction immediately following the "=" instruction.
The instruction sequence FMT, 2, LIST allows the user to list a programcontained in the calculator memory. The listing will be typed in a column format with each line consisting of the memory location, the mnemonic of the instruction stored in the location and the key code of the instruction~
The listing will begin at the location of the program counter when this instruction sequence is given and will continue until either an END in-struction is given or STOP on the calculator keyboard is pressed.
(It should be noted that if the ribbon color status is red, the listing will be typed in red.) This may be illustrated by entering a typewriter exerciser program intothe memory of the calculator and then:
PRESS: END FMT 2 LIST
TYPE-OUT:
0001-- *---36 003~-S/R---77 003~-END---46 KEY CODES AND MNEMONICS
All of the keys of the keyboard input unit and their associated octal keycodes and mnemonics are listed in Table D below. Every key has only one keycode and only one mnemonic (if it has a mnemonic), regardless of how many different functions it may be used to perform. The keycodes for the FLOAT, FIX ( ), RUN, PRGM, KEY LOG, LIST, LOAD, RECORD, BACK STEP, and STEP PRGM keys are applied to the CPU in seven-bit binary form. Since these keycodes are used only to control the mode of the calculator, are not programmable, and are never printed out by the output printer unit, they have no associated mnemonic. All of the remaining keycodes are applied to the CPU in six-bit binary form, are pro-grammable, and have a mnemonic that may be printed out by the output printer unit.
TABLE D
KEY K~Y
KEY CODEMNEMONIC KEY CODE MNEMONIC
01 1 ~p~ 45 PNT
4 04 4 IF x=y 50 X=Y
6 06 6 IF x<y 52 X<~
7 07 7 IF x~y 53 X>Y
x 12 XSQ Tl 56 ~t a 13 a PAUSE 57 PSE
b 14 b E 60 E
l/x 17 l/X D 63 D
CLEAR 20 CLR int x 64 INT
21 . I 65 ROLL t 22 RUP B 66 B
x-)() 23 XTO x~() 67 XFR
y; () 24 YE M 70 ~ ~-t 27 UP N 73 N
x.,y 30 XEY H 74 H
I~DIRECT 31 IND J 75 J
CHG SIGN 32 CHS ~ 76 + 33 ~ III 77 S/R
- 34 - RECOR~ 102 X 36 x LIST 104 CLEAR x 37 CLX KEY LOG 105 Y 3() 40 YTO PRGM 106 FMT 42F~aT FIX () 110 ~0587~;7 PROC~S5ING KæYCODES
The manner in which keycodes entered into the CPU ~rom the keyboard input unit or from the program storage section of the memory unit are processed is shown and described in the keycode proces~ing ~low chart o~ Figure 13. Once the calculator is turned on, it operates in the display routine until a key is depressed. If a FLOAT, FI~ (), RUN, PRG~, KEY
LOG, LIST, LOAD, RECORD, BACK STEP, or STEP PRG~ key (each having a seven-bit keycode) is depressed, the calculator operates in a director routine to determine which of these keys ~as depressed and thereupon selects the routine for per-~ormtng the function required by that ke~. Upon completion o~ the selected routine, the calculator reverts to operation in the display routine.
I~ any other key (each haYing a six-bit Xeycode~, ex-cept the CONTINUE key, is depressed and the PRGM key has not ~een depressed or has been foilowed by the RUN key, the cal-culator operates in the interpreter routlne to determine which si~-bit keycode it has received and to select the ap-propriate routine ~or per~orming the function required by that six-bit keycode. Upon completion o~ the selected routine the calculator reverts to operation in the display routine.
If the CONTINUE key is depressed and the PRG~ key has not been depressed or has been ~ollowed by the RUN key,.the calculator operates in a ~etch routine to sequentially fetch ~eycodes, as designated by the user program counter, ~rom the program storage section o~ the R~. Eac~ fetched keycode is interpreted and~the routine for-performing the ~unction re-quired thereb~ selected in the same manner as i~ the ~etched ~eycode had been received from the keyboard input unit.
~, .
lOS8~67 ~owever, upon completion o~ the selected routine the calculator reverts to the fetch routine unless the fetched keycode was a STUP, END, or PA~SE (if the execution of the PAUSE is im-mediately followed by depression of a key), in which cases the calculator reverts to operation in the display routine.
If any key having a six-bit keycode is depressed and the PRGM key has been depressed and has not been followed by the RUN key, the calculator operates in a store routine to store the six-bit keycode received from the keyboard input un~t as a program step in the progra~ storage section o~
the R~M. Upon completion of this storage operation the cal-culator reverts to operation in the display routine If the KEY LO& key has been depressed and has not been followed by the RUN key or the PRG~ key, the calculator also prints out each six-bit keycode received irom the keyboard .input unit in any of the above-mentioned cases.
The display routi~e, the director routine, the inter-preter routine, the routines for performing the various functions required by the six-b~t and seven-bît Xeycodes, and other routines used by the calculator are shown and de-scribed in Figures 14-135.
~ . .
, lQS8767 BASIC INSTRUCTION SET
Every routine and subroutine of the calculator comprises a sequence of one or more of 71 basic sixteen-bit instructions listed below. These 71 instructions are all implemented serially by the micro-processor in a time period which varies according to the specific instruction, to whether or not it is indirect, and to whether or not the skip condition has been met.
Upon completion of the execution o~ each instruction, the program counter (P register) has been incremented by one except for instructions JMP, JSM, and the skip instructions in which the skip condition has been met. The M-register is left with contents identical to the P-register. The contents of the addressed memory location and the A and B registers are left unchanged unless specified otherwise.
Memory Reference Group The 14 memory reference instructions refer to a specific address in memory determined by the address-field <mD, by the ZERO/CURRENT
page bit, and by the DIRECT/INDIRECT bit. Page addressing ~nd indirect addressing are both described in detail in the reference manuals for the Hewlett-Packard Model 2116 computer (hereinafter referred to as the HP 2116).
The address field <m> is a 10 bit field consisting of bits O
through 9. The ZERO/CURRENT page bit is bit 10 and the DI~ECT/INDIRECT bit is bit 15, except for reference to the A
or B register in which case bit 8 becomes the DIRECT/I~DIRECT
bit. An indirect reference is denoted by a <,I> following the address <m~.
REGISTER REFERENCE OF A OR B REGISTER: If the location <A> or <B> is used in place of <m> for any memory reference instruc~ion, the instruction will treat the contents of A or B exactly as it would the contents of location <m>. See the note below on the special restriction for direct register reference of A or B.
ADA m,I Add to A. The contents of the addressed memory location m are added (binary add) to contents of the A register, and the sum remains in the A register. If carry occurs from bit 15, the E register is loaded with 0001, otherwise E is left unchanged.
ADB m,I Add to B. Otherwise idelltical to ADA.
J, . ~
' ' ''I
-~LOS~t7f~i7 Memory Reference Group (continued) CPA m,I Compare to A and skip if unequal. The contents of the addressed memory location are compared with the contents of the A register. If the two 16-bit words are different, the next instruction is skipped; that is, the P and M
registers are advanced by two instead of one. Otherwise, the next instruction will be executed in normal sequence.
CPB m,I Compare to B and skip is unequal. Otherwise identical to CPA.
LDA m,I Load into A. The A register is loaded with the contents of the addressed memory location.
LDB mJI Load into B. The B register is loaded with the contents of the addressed memory location.
STA m,I Store A. The contents of the A register are stored into the addressed memory location. The previous contents of the addressed memory location are lost.
STB m,I Store B. Otherwise identical to STA.
IOR m,I "Inclusive OR" to A. The contents of the addressed location are ~combined with the contents of the A register as an "INCLUSIVE OR" logic operation.
ISZ m,I Incxement and Skip if Zero. The ISZ instruction adds ONE to the contents of the addressed memory location. If the result of this operation is ZERO, the next instruction is skipped; that is, the P and M registers are advanced by TWO instead of ONE. The incremental value is written back into the addressed memory location. Use of ISZ with the A or 8 register is limited to indirect reference; see foot-note on restrictions.
AND m,I Logical "AND" to A. The contents of the addressed location are combined with the contents of the A register as an "AND" logic operation.
DSZ m,I Decrement and Skip if Zero. The DSZ instruction subtracts ONE from the contents of the addressed memory location. If the result of this operation is zero, the next instruction is skipped. The decremented value is written back into the addressed memory location. Use of DSZ with the A or B register is limited to indirect reference; see footnote on restrictions.
1os8767 JSM m,I Jump to Subroutine. The JSM instruction permits jumping to a subroutine in either ROM or R/W memory. The contents of the P register is stored at the address contained in location 1777 (stack pointer). The contents of the stack pointer is incremented by one, and both M
and P are loaded with the referenced memory location.
JMP m,I Jump. This instruction transfers control to the contents of the addressed location. That is, the referenced memory location is loaded into both M and P registers, effecting a jump to that location.
Shift-Rotate Group The eight shift-rotate instructions all contain a 4 bit variable shift field <n> which permits a shift of one through 16 bits;
that is, 1 ~ n < 16. If <n> is omitted, the shift will be treated as a one bit shift. The shift code appearing in bits 8,7,6,5 is the binary code for n-l, except for SAL a~d SBL, in which cases the complementary code for n-l is used.
AAR n Arithmetic right shift of A. The A register is shifted right n places with the sign bit (bit 15) filling all vacated bit positions. That is, the n~l most significant bits become equal to the sign bit.
ABR n Arithmetic right shift of B. Otherwise identical to AAR.
SAR n Shift A right. The A register is shifted right n places with all vacated bit positions cleared. That is, the n most significant bits become equal to zero.
SBR n Shift B right. O~herwise identical to SAR.
SAL n Shift A left. The A register is shifted left n places with the n least significant bits equal to zero.
SBL n Shift B left. Otherwise identical to SAL.
RAR n Rotate A right. The A register is rotated right n places, wlth bit O rotated around to bit 15.
RBR n Rotate B right. Otherwise identical to RAR.
-~058767 Alter-Skip Group The sixteen alter-skip instructions all contain a 5-bit variable skip field ~n> which, upon meeting the skip condition, permits a relative branch to any one of 32 locations. Bits 9,8,7,6,5 are coded for positive or negative relative branching in which the number <n> is the number to be added to the current address, (skip in forward direction), and the number <-n> is the number to be subtracted from the current address, (skip in negative direction). If <n> is omitted, it will be inter-preted as a ONE.
<n>=O CODE=OOOOO REPEAT SAME INSTRUCTION
<n>=l CODE=OOOOl DO NEXT INSTRUCTION
<n>=2 CODE=OOO10 SKIP ONE INSTRUCTION
<n>=15 CODE=Ollll ADD 15 TO ADDRESS
<n>=-l CODE=lllll DO PREVIOUS INSTRUCTION
<n>=-16 CODE=10000 SUBTRACT 16 FROM ADDRESS
<n>=nothing CODE=OOOOl DO NEXT INSTRUCTION
The alter bits consist of bits 10 and bits 4. The letter ~5>
following the instruction places a ONE in bit 10 which causes the tested bit to be set after the test. Similarly the letter <~j will place a ONE in bit 4 to clear the test bit. If both a set and clear bit are given, the set will take precedence.
Alter bits do not apply to SZA, SZB, SIA, and SIB.
SZA n Skip if A zero. If all 16 bits of the A register are zero, skip to location defined by n.
SZB n Skip if B zero. Otherwise identical to SZA.
RZA n Skip if A not zero. This is a "Reverse Sense" skip of SZA.
RZB n Skip if B not zero. Otherwise identical to RZA.
SIA n Skip if A zero; then increment A. The A register is tested for zero, then incremented by one. If all 16 bits of A were zero before incrementing, skip to location defined by n.
SIB n Skip if B zero; then increment B. Otherwise identical to SIA.
RIA n Skip if A not zero; then increment A. This is a "Reverse Sense" skip of SIA.
RIB n Skip if B not zero; then increment B. Otherwise identical to RIA.
SLA n,S/C Skip if Least Significant bit of ~ is zero. If the least significant bit (bit O) of the A register is zero, skip to location defined by n. If either S or C is present, the test bit is altered accordingly after test.
~058767 Alter-Skip Group (continued) SLB n,S/C Skip if Least Significant bit of B is zero. Other-wise identical to SLA.
SAM n,S/C Skip if A is Minus. If the sign bit (bit 15) o~ the A register is a ONE, skip to location defined by n. I~
either S or C is present, bit 1~ is altered after the test.
SBM n,S/C Skip if B is Minus. Otherwise identical to SA~.
SAP n,S/C Skip if A is Positive. If the sign bit (bit 15) of the A register is a ZERO, skip to location defined by n.
If either S or C is present, bit 15 is altered after the test.
SBP n,S/C Skip if B is Positive. Otherwise identical to SAP.
SES n,S/C Skip if Least Significant bit of E is Set. If bit O of the E register is a ONE, skip to location defined by n, If either S or C is present, the entire E register is set or cleared respectively.
SEC n,S/C Skip if Least Significant bit of E is Clear. If bit O of the E register is a ZERO, skip to location defined by n. If either S or C is present, the entire E register is set or cleared respectively.
Complement-Execute-DMA Group.
.
These seven instructions include complement operations and several special-purpose instructions chosen to speed up printing and extended memory operations.
CMA Complement A. The A register is replaced by its One's complement.
CMB Complement B. The B register is replaced by its One's complement.
TCA Twos Complement A. The A register is replaced by its One's Complement and incremented by one.
TCB Two's complement B. The B register is replaced by its One's Complement and incremented by one.
EXA Execute A. The contents of the A register are treated as the current instruction, and executed in the normal manner.
The A register is left unchanged unless the instruction code causes A to be altered.
EXB Execute B. Otherwise identical to EXA.
DMA Direct Memory Access. The DMA control in Extended Memory is enabled by setting the indirect bit in M and giving a WTM
instruction. The next ROM clock trans~ers A~M and the following two cycles transfer B~M. ROM clock then remains inhibited until released by DMA control.
~058767 Note: Special Restriction for Direct Register Reference of A or B
For the five register reference instructions which involve a write operation during execution, a register reference to A or B must be restricted to an INDIRECT reference. These instructions are STA, STB, ISZ, DSZ, and JSM. A DIRECT register reference to A or B with these instructions may result in program modification.
(This is different from the hp 2116 in which a memory reference to the A or B register is treated as a reference to locations 0 or 1 respectively.) A reference to location 0 or 1 will actually refer to locations 0 or 1 in Read Only Memory.
Input/Output Group (IOG) The eleven IOG instructions, when given with a select code, are used for the purpose of checking flags, setting or clearing flag and control flip-flops, and transferring data between the A/B
registers and the I/O register.
TF <SC> Set the flag. Set the flag flip-flop of the channel indicated by select code <SC>.
LF <SC> Clear the flag flip-flop of the channel indicated by select code <SC>.
FC <SC> Skip if flag clear. If the flag flip-flop is clear in the channel indicated by <SC>, skip the next instruction.
FS <SC> H/C Skip if flag set. If the flag flip-flop is set in the channel indicated by <SC>, skip the next instruction. H/C indicates if the flag flip-flop should be held or cleared after executing SFS.
LC <SC> H/C Clear control. Clear the control flip-flop in the channel indicated by <SC>. H/C indicates if the flag flip-flop should be held or cleared after executing CLC.
TC CSC> H/C Set Control. Set the control flip-flop in the channel indicated by <SC>. H/C indicates if the flag flip-flop should be held or cleared after executing STC.
T* <SC> H/C Output A or B. Sixteen bits from the A/B register are output to the I/O register. H/C allows holding or clearing the flag flop after execution of OT*.
The different select codes allow different functions to take place after loading the I/O register.
SC=00 Data from the A or B register is output eight bits at a time for each OT*
instruction given. The A or B register is rotated right eight bits.
~ .
~(~S87f~7 Input-Output Group (IOG), continued SC=Ol The I/O register is loaded with 16 bits from the A/B registers.
SC=02 Data from the A/B register is output one bit at a time for each OT* instruction for the purpose of giving data to the Magnetic Card Reader. The I/O register is unchanged.
SC=04 The I/O register is loaded with 16 bits from the A/B register and the control flip flop for the printer is then set.
SC=08 The I/O register is loaded with 16 bits from the A/B register and the control flip flop for the display is then set.
SC=16 The I/O register is loaded with 16 bits from the A/B register and then data in the I/O register is transferred to the switch latches.
LI* <01> H/C Load into A or B. Load 16 bits of data into the A/B register from the I/O register. H/C allows holding or clearing the flag flop after Ll* has " been executed.
LI* <00> The least significant 8 bits of the I/O register -are loaded into the most significant locations in the A or B register.
MI* <01> H/C Merge into A or B. Merge 16 bits of data into the A/B register from the I/O register by "inclusive or". H/C allows holding or clearing the flag flop after Ml* has been executed.
MI* <00> The least significant 8 bits of the I/O register are combined by inclusive OR with the least significant 8 bits of the A or B register, and rotated to the most significant bit locations of the A or B register.
7'. : .
. ~ -lOS~7ti7 MAC Instruction Group A total of 16 MAC instruc*ions are available for operation (a) with the whole floating-point data (like transfer, shifts, etc), or (b) with two floating-point data words to speed up digit and word 1QOPS in arithmetic routines.
NOTE: <Ao 3> means: contents of A-register bit O to 3 AR 1 is a mnemonix for arithmetic pseudo-register located in R/W memory on addresses 1744 to 1747 (octal) AR 2 is a mnemonix for arithmetic pseudo-register located in R/W memory on addresses 1754 to 1757 (octal) D. means: mantissas i-th decimal digit;
most significant digit is Dl least significant digit is D12 decimal point is located between Dl and D2 Every operation with mantissa means BCD-coded decimal operation RET Return 16-bit-number stored at highest occupied address in stack is transferred to P- and M-registers. Stack pointer (=next free address in stack) is decremented by one.
<A>, <B>, <E> unchanged.
MOV Move overilow The contents of E-register is transferred to A . Rest of A-register and E-register are filled by zeros. 3 <B> unchanged.
CLR Clear a floating-point data register in R/W memory on location <A>
ZERO~<A>, <A>+l, <A>+2, <A>+3 ~A>,>B>,<E> unchanged XFR Floating-point data transfer in R/W memory ~rom location <A> to location <B>.
Routine starts with exponent word transfer.
Data on location <A> is unchanged.
<E> unchanged.
~ .-. . .
lOS87~;7 MRX ARl mantissa is shifted to right n-times. Exponent word remains unchanged.
<Bo 3> = n (binary coded) 1st shift: <Ao_3>~Dl; Di~Di+l; D12 is jth shift: 4 ~ Dl; Di~Di+l; D12 is nth shi~t: ~ ~ Dl; Di~Di+l; D12 ~ Ao-3 4 ~ E, A4_15 each shi~t: <Bo_3> ~ 1 ~ Bo_3 <B4_15> unchanged MRY AR2 mantissa is shi~ted to right n-tîmes.
Otherwise identical to MRX
MLS AR2 mantissa is shifted to left once.
Exponent word remains unchanged.
{~ ~ D12; Di ~ Di_l; Dl 0-3 <B> unchanged DRS M 1 mantissa is shifted to right once Exponent word remains unchanged 4 ~ Dl; Di ~ Di+l; D12 0-3 ZERO ~ E and A4_15 <B> unchanged DL~ ARl mantissa is shifted to left once. Exponent word remains unchanged.
<Ao 3> ~ D12; Di ' Di_l; Dl 0 3 ~ ~ E, A4 15 <B> unchanged FXA Fixed-point addition Mantissas in pseudo-registers AR2 and ARl are added together and result is placed into AR2. Both exponent words remain unchanged. When overflow occurs "OOOl"
is set into E-reg., in opposite case <E> will be zero.
<AR2> + <ARl~ + DC ~ AR2 DC = ~ if <E> was OOOO before routine execution DC - 1 if <E> was 1111 before routine execution ~
<B>, <ARl> unchanged ;
'~ " : .. ' .
lOS8767 FMP Fast multiply Mantissas in pseudo-registers AR2 and ARl are added together <Bo 3>-times and result is placed into A~2.
Total decimal over~low is placed to Ao 3. Both ex-ponent words remain unchanged.
<AR2> + <ARl> * ~Bo 3>+DC ~ AR2 DC = O 1f <E> was OOOO before routine execution DC = 1 if <E> was 1111 before routine execution ZERO ~ E, A4_15 <ARl> unchanged FDV Fast divide Mantissas in pseudo-registers AR2 and ARl are added together so many times until ~irst decimal overflow occurs. Result is placed into A~2. Both exponent words remain unchanged. Each addition without over-flow causes +l increment of <B>.
1st addition: cAR2> + <ARl> + DC ~ AR2 DC = O .if <E> was OOOO before routine execution DC = 1 if <E> was 1111 before routine execution next additions: <AR2> ~ <ARl> ~ AR2 ZERO ~ E
<ARl> unchanged CMX 10's complement of ARl mantissa is placed bac~ to ARl, and ZERO is set into E-register. Exponent word remains unchanged <B> unchanged CMY lO's complement o~ AR2 mantissa.
Otherwise identical to CMY
MDI Mantissa decimal increment.
Mantissa on location <A> is incremented by decimal ONE
on D12 level, result is placed back into the same location, and zero is set into E-reg, Exponent word is unchanged.
When overflow occurs, result mantissa will be l,OOO OOOO OOOO (dec) and OOOl (bin) will be set into E-reg.
<B> unchanged.
N~M Normalization Mantissa in pseudo-register AR2 is rotated to the le~t to get Dl f O. Number of these 4-bit left shifts is stored in Bo_3 in`binary form ~<B4_15>=O) when~BO 3>= 0,1,2,. . . , 11 (dec) ~ <E> = OOOO
When<BO 3>= 12 (dec) ~mantissa is zero, and <E>=OOOl E~ponent word remains unchanged <A> unchanged.
.
~o58~67 The binary codes of all of the above instructions are listed in the following coding table, where * implies the A or B register, D/I means direct/indirect, A/B means A register/B register, Z/C means zero page (base page) current page, H/S means hold test bit/set test bit, and H/C means hold test bit/clear tPst bit. D/I, A/B, Z/C, H/S, and H/C are all coded as 0/1.
CODING TABLE
, , _ MEMORY -O~ AD* D/I O O O A/B Z/C + MEMORY ADDRESS
REFERENCE -1__-- CP* D/I O O 1 A/B Z/C
GROUP -2---- LD* D/I O 1 0 A/B Z/C
-3---- ST* D/I O 1 1 A/B Z/C
, .. _ SHIFT- 07---0 A*R O 1 1 1 A/B-- + SHIFT ~ - O O O O
ROTATE CODE
GROUP 07---2 S*R O 1 1 1 A/B-- - O O 1 0 07---4 S*L O 1 1 1 A/B-- - O 1 0 0 07---6 R*R O 1 1 1 A/B-- - O 1 1 0 ALTER- 07---0 SZ* O 1 1 1 A/B O~ SKIP~ O 1 0 0 0 SGKROUP 07---0 RZ* O 1 1 1 A/B 1CODE O 1 0 0 0 07---0 SI* O 1 1 1 A/8 0 1 1 0 0 0 07---0 RI* O 1 1 1 A/B 1 1 1 0 0 0 07---1 SL* O 1 1 1 A/B H/S H/C 1 0 0 1 07---2 S*M O 1 1 1 A/B H/S H/C 1 0 1 0 07---3 S*P O 1 1 1 A/B H/S H/C 1 0 1 1 ._ _ ... . ._ .
CONTINUED
lOS~7~;7 CODING TABLE - CONTINUED
.. __ __ . ._ .. _ COMP 07-016 EX* O 1 1 1 A/B - - _ _ O 0 1 1 1 0 EXECUTE 070036 DMA 0 1 1 1 O _ _ 0 1 1 1 1 0 DMA 07-056 CM* O 1 1 1 A/B - - _ _ 1 0 1 1 1 0 07-076 TC* O 1 1 1 A/B - - _ _ 1 1 1 1 1 0 .. __ ~_ . _ _ INPUT 1727-- STF 1 1 1 1 _ 1 01 1 1 1 ' SELECT
OUTPUT 1737-- CLF 1 1 1 1 _ 1 11 1 1 1 CODE
17-1-- OT* 1 1 1 1 A/B 1HtCO O 1 1 17-2-- LI* 1 1 1 1 A/B 1H/CO 1 0 1 17-0-- MI* 1 1 1 1 A/B 1H/CO O O
._ _ 171450 NRM 1 1 1 1 . 1 0 0 1 0 1 O O O
10587~7 Each of the 71 basic instructions employed by the calculator is implemented by one or more o* the above-described microinstructions and associated control signals issued by the microprocessor. The manner in which this is accomplished is shown and described in detail in the flow charts o~ Figures 138A-H. Each rectangular box of these flow charts represents a state of RO~ 200 of the microprocessor a~d includes the mnemonic of the microinstructions and con-trol signals stored ln that ROM state. The number at the upper right-hand corner of each of these rectangular boxes represents the number of shift clock pulses required by the microinstructions of that RO~ state. A simplified overview of these detailed flow charts is shown in Figure 7.
PROG~A~MABLE CLO OE
Given a computing system organized to process binary data serially and under control of microinstructio~s stored in RO~ 200 as shown in Figures 3A-B and 136, the Lmplementation of a general purpose instruction set requires that some number of bits be shifted into or out of the storage registers.
Depending on the operation being performed, the number of bits may vary from zero to n, where n is the number of bits in a single machine word~
If each clock period o~ the RO~ clock corresponds to a one bit shift, a count loop must be employed to provide the desired number of shi~ts. A rather large number of such count loops would e~ist in order to implement an entire instruction set. An alternative method is to provide additional hardware wh~ch permits assignment o~ the desired number of shi~ts in a . .
sl~gle state of RO~ 200. Such an arrangement requires a variable cycle time for each state of RO~ 200, but results 1(~58767 in a very substantive saving in total number of ROM states.
To implement a variable number of shift clocks in a single state of the microprocessor, two separate clocks are required. The shift clock is applied to the data storage registers in the memory, the shift register block~ the arith-metic logic unit and the input/output block. The ROM clock is applied to the ROM address flip-flops in the microprocessor, and occurs once ~or each state in the microprogram. The number of shift clock pulses that occur in any given ROM state is determined by a 4-bit clock code sent to the clock decoder from the microprocessor.
If no shift clocks are desired, a separate signal from the microprocessor inhibits the shift clock output, independent of the clock code issued in that state. In this way, any number of shi~ts between and including zero and 16 may be implemented with a 4-bit clock code and an inhibit signal.
This inhibit signal o~fers an additional powerful feature when gated by the qualifier test logic in the micro-processor as shown in Figure 136. The quali~ier test logic includes a 4-bit qualifier code from ROM 3 that selects one of 16 qualifier inputs to the data selector. The data selector output QN (qualifier not met) will be high if the selected qualifier input was low. By using the QN signal to gate the inhibit microinstruction, IQN, the shift clock will be inhibited only when the qualifier is not met. Thus all microinstructions requiring shi~t clocks that are issued in a given ROM state may be either executed or inhibited, depending on the logical state of the qualifier under test.
The ROM clock is applied to the eight J-K flip-flops ~ -402_ - l()S8~67 which address the 256 word microprocessor ROM. Durin~ ~ny given state, the complementing (J-K) inputs to the 4 pri-mary address flip-flops are set up ~y the qualifier code or q-register code. The 4 secondary address flip-flop inputs are determined by the ROM 4 outputs, the BRC microinstruction, and the data selector output QN. Where RO~ cloc~ goes low, the negative edge-triggered flip-flops will cause transi-tion of the ROM address to the next ROM state.
As shown in the block diagram of Figure 139 and the detailed schematic diagram o~ Figures 140A-C, a crystal con-trolled system clock output is in~erted to generate memory clock, ~C~. This signal is again inverted to clock a D
flip-flop ha~ing an output (control clock), which will go low i~ the end-of-count signal (borrow) ~rom the down counter has occurred at the D input. The RO~ clock will also go low at this time, initiating a new ROM state in the microprocessor.
Control clock will normally remaln low for one system clock period, and in turn generates a load signal which is delayed a hal~ period from control clock by means o~ a second D flip-flop. The 4-bit clock code fro~ the microprocessor is pre-set into the counter while the load signal is low.
~s the load signal goes high, ROM clock also goes high, completing the ~ixed interval portion of RO~ clock and shi~t clock as shown in Figure 141. A series o~ clock pulses are now gated onto shift clock, SCK, until the preset counter has counted down to zero, causing control clock to again go low, completing-the RO~ cycle. ;~
The inh bit signal, ~R~, from memory m~y- lengthen the normal ~ixed in~erYal o~ ROM clock by clearing the D flip-~lop and hoiding control clock low. Tllis may occur during ,. ~ ' ~ ~ .
memory refresh or extern~l test oper~tions. In this situation, the counter rem~ins preset and the correct number of shifts will be generated when the inhibit goes away.
SHIFT REGISTER UNIT
As shown in the detailed schematic diagrams of Figures 137A-D and 142A-D, A-register 122, B-register 124, P-register 126, Q-register 128, and E-register 130 comprise bipolar status registers, the contents of which are recir-culated ~hen data is output to the R-bus or the S-bus.
Full control o~ these registers in use and type o~ opera-tions performed is maintained by the microinstructions from the from the microprocessor. The number of bits to be shi$ted in any one ROM state of the microprocessor is determined by the number of shi~t clocks from the clock de-coder. This shi~t clock appears at the shift clock input of each shift register that is enabled by the microprocessor during that RO~ cycle.
ARITE~TIC LOGIC UNIT
The development of complex read-o~ly memory arrays on a single chip ha~e made possible a hardware implementa-tion of central processing units (CPUs) and arithmetic logic units (AL~s) with far ~ewer components than were previously possible. In this application, t~o bipolar read-only memory chips are combined with carry flip-~lops and adapted to perform one-bit binary logic and arithmetic operations as well as ~our-bit binary coded decimal (BCD) arithmetic opera-tions. The two bipolar read-only memory chips may comprise, for example, ~ewlett-Packard 16-pin dual-in-line packaged bipolsr ROMs organized into 256 words by 4-bits and of the same .. ..
type a~ shown and deRcribed in U.S. Pa~ent 3,721,964 issued March 20, 1973.
l(~S8'7~
_ _ . _ . . _ . ... .. ..
The binary/BCD Arithmetic Logic Unit consists of five integrated circuits connected as shown in the block diagram of Figure 143 and the detailed schematic diagram of Figures 142A-D. Specifically, the packages consist of two 1024-~it ROMs, a dual D-type flip-flop and two quad two-inpu~ NAND gates. The function code input '~CD" selects between the binary mode and BCD mode of operation.
In the binary mode, the fu~ction code inputs ACO, ACl, and AC2 select the desired logical iunction or arith-metic operation as give~ i~ Figure 144. The binary input data enters ROM #1 on ths carry, S-bus and R-bus i~put lines, and the binary result appears on the T-bus and binary carry output linesO RO~ ~2 is not used in the binary mode.
ID the BCD mode of operatio~, the two function code lines ACO and ACl are disabled ~rom the Micro-processor and these two lines carry the T02 and T03 bits o~ BCD data from the T-Register.
The ALU ~unctioD code line AC2 is used to select the desired BCD operation. If AC2 is low, the four-bit output ~0~ 2~3 will be the BCD sum of the two 8CD data inputs. If AC2 is high a~d decimal carry has been set, the four-bit output ~0~ 2~3 will be the BC~ Tens Complement of the BCD data from the T-Register. In the BCD mode, the binary carry output wil} be disabled and the decimal carry output will be enabled to RObl Xl.
Although only one-fourth of the a~ailable registers in RO~ ~1 are required ~or the eight binary operations, the concept of adding a second 1024-bit ~QM to perform the BCD
operations grew ~rom several basic concepts: . -1) The least significaut BCD sum-bit, ~0, is always identical to the binary sum bit; therefore, only three additional output~ and ~3 need be generated~ For BCD complement operations, the decimal carry flip-flop defines whether or not the least significant bit should be complemented.
-~05-~OS8~67 2) In formin~ thc "nine's c:ompl~mlellt" ol the T-nc~istcr BCD d~ta in ROM ~1, it can be seen that for ~21 code the secoDd least significant bit TOl is the same beforc and ait~r fcrming the complement. Thus only two bits, T02 and T03 need be complemcntcd prior to input into ROM #2. The ten's complement with add is then found by presetting docimal carry and performing a BCD sum of the tllree most significant digits in ROM #2.
3) With only eight ROM inputs available, some sharing of inputs is required for ROM #1. During binary operations, all four function codes and only one bit of T-Register data is required. During BCD
operations, all four bits of T-Register data and only two function codes are required. Use of two NAND
gates in wire-OR connection with the open collector function codes AC0 and ACl permits sharing of the two inputs.
This arrangement left one input still available to RO~ #2.
By programming this input to always make output DCI true, the micro-instruction UTR can sexve two purposes--placing units on the R-bus and also set decimal carry if BCD is true. When BCD is false, clock is inhibited to decimal carry. This feature permits saving decimal carry information during all binary operations. Similarly, binary carry is saved during the four binary operations AND, IOR, XOR, and ZTT by connecting AC2 such that when AC2 is false the shift clock is inhibited to the binary carry flip-flop.
ID summary, the mode select input "BCD" performs the following functions:
1) Addresses the proper 128 word set of word lines in XOM #1.
2) Enables the T02 and T03 data lines to ROM Xl only in BCD mode.
3) Enables clock to decimal carry flip-flop only in BCD mode.
4) Selects binary carry or decimal carry into ROM #l as appropriate.
5) TC nsfers outputs ~0,1,~2,~3 to A-Re~istcr only in -~06-)S8767 The remaining three ALU function codes select the proper set of word lines in ROM ~1 to perform the eight binary functions listed in Figure 144. In addition, the AC2 input performs the following functions`.
1) Enables clock to binary carry flip-flop only during the four carry-related binary functions and the BCD comp/add function.
2) In the BCD mode, AC2 causes BCD data bit TOO, TO2 and TO3 to convert to nine's complement form.
The ALU has a total of 15 inputs which include 8 data inputs, 2 clock inputs and 5 microinstructions. Four data output lines are required, and two additional output lines from carry flip-flops are available as qual-ifier inputs to the microprocessor. The ALU and shift register mnemonics are listed in the following table:
SHIFT REGISTERS & ALU BOARD MNEMONICS
TRE T-Register to E-Register to R-Bus TO0 Bit 0 of T-Register TBE T-Bus to E-Register to R-Bus TTX - TEST T-Bus to A/B-Register from Tester TTX - I/O T-Bus to A/B-Register from I/O (Board #12) TTX - ROM T-Bus to A/B Register from ~-Processor (Board #13) TTX Logical "OR" of Three TTX Signals AB Status of AB-Flip-Flop AB = O A-Reg. Operation AB = 1 B-Reg. Operation XTR A/B Register to R-Bus UTR Logical "1" to R-Bus TQR Q-Register to Primary Address Flip-Flops AB Complement of AB
TTP T-Bus to P-Register SCK Shift Clock QP0 Qualifier, Bit 0 of P-Register PTR P-Register to R-Bus 1058~67 SHIFT REGISTERS & ALU BOARD MNEMONICS (Continued) Q00 Q-Register Bit 0 QTR Q-Register to R-Bus RCK ROM Clock QAB Q-Register to Ab-Flip-Flop, also clears decimal carry.
SCB Set Binary Carry QDC Qualifier, Decimal Carry BCD Decimal Arithmetic AC2 ALU Operation Code QBC Qualifier, Binary Carry S-BUS Data Bus ACl ALU Operation Code AC0 ALU Operation Code T02 Bit 2 of T-Register T03 Bit 3 of T-Register SDR Signal to Disable ROMs TOl Bit 1 of T-Register T-BUS Data Bus ALU Arithmetic Logic Unit ~ ) Indicates Negative True Signal Figure 145 lists five dual-in-line integrated circuits that may be employed in the ALU. The following table gives an example of how the two ALU ROM chips shown in Figures 142-143 can be constructed to implement the above described ALU functions (in this table each "1" represents a "low" state and each "O"
represents a "high" state):
~)58~7~;7 ROM # 1 / 10~0; 1/ 0000; 2/ ~00~; 3/ 1~0~
4/ 1000; 5/ 0000; 6/ 000~; 7/ 1000 8/ 0000; 9/ ~000; 1~/ ~00~; 11/ 10 12/ 0~00; 13/ 0000; 14/ 00~0; 15/ 10~
16/ 0000; 17/ 1000; 18/ 1000; 19/ 1000 2~/ 00~0; 21/ 10~0; 22/ 1000 j 23/ 1~00 24/ 10~0; 25/ 1000; 26/ 1000; 27/ 100~
28/ 1000; 29/ 1000; 3~/ 1000; 31/ 1000 32/ 1000; 33/ 00~0; 34/ ~0; 35/ 1~00 36/ 1000; 37/ 0~00; 38/ 0000; 39/ 1~00 40/ 0000; 41/ 0000; 42/ 00~0; 43/ 1000 44/ 0000; 45/ 0000; 46/ 00~0; 47/ 1~0~
48/ 0000; 49/ 1000; 50/ 1000; 51/ 1000 52/ 0000; 53/ 1000; 54/ 1000; 55/ 1000 56/ 1000; 57/ 1000; 58/ 1000; S9/ 1000 60/ 1000; 61/ 1000; 62/ 1000; 63/ 1000 64/ 11~0; 65/ 1100; 66/ 1100; 67/ 1100 68/ 1100; 69/ 1100; 70/ 1100; 71/ 1100 72/ 0000; 73/ 0000; 74/ 0000; 75/ 1000 76/ ~000; 77/ ~00~; 78/ 0000; 79/ 1000 80/ 0100;81/ 0100; 82/ 0100; 83/ 1100 84/ 0100; 85/ 0100; 86/ 01~0; 87/ 1100 88/ 0000; 89/ 1000; 90/ 1000; 91/ 0100 92/ 1000; 93/ 010~; 94/ 0100; 95/ 1100 96/ 1100; 97/ 1100; 98/ 1100; 99/ 1100 100/ 1100;101/ 1100; 102/ 11~0; 103/ 110 104/ 0000;105/ 00~0; 106/ 0000; 1~7/ 100~
108/ 0000; 109/ ~000; 110/ 00~; 111/ 1000 112/ 010~; 113/ ~100; 114/ 010~;115/ 11~0 116/ 0100; 117/ 010~; 118/ 0100;119~ 110~
120/ 000~; 121/ 1000; 122/ 1000;123/ 0100 124/ 1000; 125/ 0100; 126/ 0100;127/ 1100 128/ 0000; 129/ 0000; 130/ 0000;131/ 0000 132/ 0000;133/ 0000; 134/ 00~0;135/ 000 136/ 0010;137/ 1010; 138/ 1010;139/ 0110 140/ 1010;141/ 0110; 142/ 0110;143/ 1110 144/ 0001;145/ 1001; 146/ 1001;147/ 0101 148/ 1001;149/ 0101; 150/ ~101;151/ 1101 152/ 0011;153/ 1011; 154/ 1011; 155/ ~111 156/ 1011;157/ 0111; 158/ 0111, 159/ 1111 160/ 0000;161/ 0000; 162/ 0000, 163/ 0000 164/ 00~0;165/ 0000; 166/ 00~0; 167/ 0000 168/ 0010;169/ 1010; 170/ 1010; 171/ 0110 172/ 1010;173/ 0110; 174/ 0110; 175/ 1110 176/ 0000;177/ 0000; 178/ 0000;179/ 0~00 180/ 0000;181/ 0000; 182/ 0~00; 183/ 0000 184/ 0011;185/ 1011; 186/ 1011; 187/ 0111 188/ 1011; 189/ 0111; 190/ 0111; 191/ 1111 192/ 0000; 193/ ~000; 194/ 0000; 195/ 000~
196/ 0000; 197/ 0000; 198/ 0000; 199/ ~000 200/ 1010; 201/ 0010; 202/ 0110; 203/ 1010 204/ 0110; 205/ 1010; 206/ 1110; 207/ 0110 208/ 1011; 2~9/ 001~; 210/ 0111; 211/ 1011 212/ 0111;213/ 1011; 214/ 1111; 215/ 0111 216/ 1001;217/ 0001; 218/ 0101; 219/ 1001 220/ 01~1;221/ 1~01; 222/ 1101; 223/ 0101 224/ ~000;225/ 0~0~; 226/ 0~00; 227/ ~000 228/ 0000;229/ 0000; 230/ 0000; 231/ 0000 232/ 1011;233/ 0011; 234/ 0111; 235/ 1~11 236/ 0111;237/ 1011; 238/ 1111; 239/ 0111 240/ 0000;241/ 0000; 242/ 0000; 243/ 0000 244/ 0000;245/ 00~0; 246/ 0000; 247/ 0000 248/ 1010;249/ 0~10; 250/ 0110; 251/ 1010 252/ 0110;253/ 1010; 254/ -1110;255/ 0110 l(~S1~7~;'7 - ROM #2 / 0000; 1/ 0000; 2/ 0000; 3/ 0000 4/ ~0; 5/ 0~0~; 6/ ~000; 7/ 0000 8/ 0000; 9/ 0000; 10/ 0000; 11/ 0000 12/ ~00; 13/ 0000; 14/ 0000; 15/ 0000 16/ 0000; 17/ 0000; 18/ 0000; 19/ 0000 20/ 0000; 21/ 000~; 22/ 0000; 23/ 0000 24/ 0000; 25/ 0000; 26/ 0000; 27/ 0000 28/ 0000; 29/ 0000; 30/ ~000; 31/ 0000 32/ 0000; 33/ 00~0; 34/ 0000; 35/ 0000 36/ 0000; 37/ 0000; 38/ 0000; 39/ 0000 40/ 0000; 41; 0000; 42/ 0000; 43/ 0000 44/ 0000; 45/ 0000; 46/ 0000; 47/ 0000 48/ 0000; 49/ 0000; 50/ 0000; 51/ 0000 52/ 0000; 53/ 0000; 54/ 0000; 55/ 0000 56/ 0000; 57/ 0000; 58/ 0000; 59/ 0000 60/ 0000; 61/ 0000; 62/ 0000; 63/ 0000 64/ 0000; 65/ 0000; 66/ 00~0; 67/ 0000 68/ 0000; 69/ 0000; 70/ 0000; 71/ 0000 72/ 0000; 73/ 0~00; 74/ 0000; 75/ 0000 76/ 0000; 77/ 0000; 78/ 0000; 79/ 0000 80/ 0000; 81/ ' 0~00;82/ 0000; 83/ 0000 84/ 0000; 85/ 0000; 86/ 0000; 87/ 0000 88/ 0000; 89/ 0000; 90/ 0000; 91/ 0000 92/ 0000; 93/ 0000; 94/ 00~0; 95/ 0000 96/ 0000; 97/ 0000; 98/ 0000; 99/ 0000 100/ 0000; 101/ 0000; 102/ 0000; 103/ 0000 104/ 0000; 105/ 0000; 106/ 0000; 107/ 0000 108/ 00~0; 109/ 0000; 110/ 0000; 111/ 0000 112/ 0000; 113/ 0000; 114/ 0000; 115/ 0000 116/ '0000; 117/ 00~0; 118/ 0000;, 119/ 0000 '120/ 0000; 121/ 0000; 122/ 000~; 123/ 0000 124/ 0000; 125/ 0000; 126/ 0000; 127/ 0000 128/ 1111; 129/ 1101; 130/ 1011; . 131/ 1001 132/ 0111; 133/ 0000; 134/ 0000; 135/ 0000 136/ 1101; 137/ 1011; 138/ 1001; 139/ 0111 14~/ 1110; 141/ 0000; 142/ 0000; 143/ 0000 144/ 1011; 145/ 1001; 146/ 0111; 147/ 1110 148/ 1100; 149/ 0000; 150/ 0000; 151/ 0000 152/ 1001; 153/ 0111; 154/ 1110; 155/ 1100 156/ 1010; 157/ 00~0; 158/ 0000; 159/ 0000 160/ 0111; 161/ 1110; 162/ 1100; 163/ 1010 164/ 1000;165/ 0000; 166/ 0000; 167/ 0000 168/ 0000;169/ 0000; 170/ 0000; 171/ 0000 172/ 0000;173/ 0000; ' 174/ 0000; 175/ 0000 176/ 0000;177/ 0000; 178/ 0000; 179/ 0000 180/ 0000;181/ 0000; 182/ 0000; 183/ 0000 184/ 0000; 185/ 0000; 186/ 0000; ' 187/ ~000 188/,,000.0; 189/,_0000; 190/ 0000; 191/ 0000 192/ 1101; 193/ 1011; 194r'i001; 195/ 01il 196/ 1110; 197/ 0000; ~ 198/ 0000; 199/ 0000 200/ 1011; 201/ 1001; 202/ 0111; 203/ 1110 . 204/ 1100; 205/ 0000; 206/ 0000; 207/ 0000' 208/ 1001; 209/ 0111; 210/ 1110; 211/ 1100 212/ 1010; 213/ 0000; 214/ 0000; 215/ 0000 -'216/ 0111; 217/ 1110; 218/ 1100; 219/ 1010 220/ 1000; 221/ 0000; 222/ 0000; 223/ 0000 224/ 1110; . 225/ 1100; 226/ 1010; 227/ 1000 228/ 0110; 229/ 000B; 230/ 0000; 231/ 0000 232/ 0000; 233/ 0000; 234/ 0000;' 235/ 0000 236/ 0000; 237/ 0000; 238/ 0000; 239/ 0000 240/ 0000; 241/ 0000; 242/ 0000; 243/ 0000 244/ 0000; . 245/ 0000; 246/ 0000; 247/ 0000 , 248/ 0000; 249/ 0000; 250/ 0000; 251/ ~000 252/ 0000; 253/ - 000~; 254/ 0000; 255/ 0~00 -~(~S8';'67 MEMORY UNIT
The calculator uses an all semiconductor memory system. Peripheral circuitry is bipolar and the memory con-sists of n-channel MOS read only memory tROM) and p-channel MOS read/write memory (RWM).
Addressing and physical layout of the memory module is done so that the number of words can be increased ~rom 3K
in the basic machine to 7.5K in the largest machine. The smallest increment o~ memory that can be added is 512 words.
Provisions have been made to contain all add-on RWM ~ithin the memory module. Add-on ROM is external to the memory module, behind the display.
The basic machi~e contains 3E words o~ memory, organized i~to 2K x 16 ROM, 512 ~ 16 and 512 x 6 RW~. The 1~ bit RWM words are divided into 109 user registers (4 words) and 76 words ~or processor use. The 6 bit RW~ ~ords are program steps. The largest machine contains 5E words o~
ROM and 2.5K words o~ RWM, of which 512 words are 16 bit.
Read~Write ~emory As sho~n in Figures 146-150 memory is made up o~ 1024 x 1, dyna~ic, Read/write memory chips (Intel 1103). These devices are P-cha~nel, ~OS using silicon gate technology. To maintain the contents o~ memory, the device must be refreshed every 2 ms. This is accomplished by per~orming a read cycle at a given address. On each chip are 32 re~resh ampli~iers so that each read cycle, 32 cells get refreshed. The entire chip is then re~reshed by cycling through the lower 5 address bits and reading each distinct address. The re~resh period is 20 ~s at least every 2 ms.
Logic levels on all input lines to the RWM chips are . , 1058 ~f~7 O to 1 16v. This includes the 3 clock lines (chip select, Y-enable or write, and precharge), 10 address lines, and i~put data. The output data, however, is a current of 600 ~a or more into lK ohms or less. This low level output is ~'wire-or able~' with other chips to build larger systems.
Read Only Memory As shown in Figure 146, 147, 151, and 152 ROM chips are 4096 bit, n-channel MOS arranged 512 x 8. The devices are static and consume no power ~hen not enabled. Data is retrieved ~rom the ROMs by pulling the chip enable li~e from O to 1 12v (turning the chip on), addressing the desired cells (O or 4v levels) and selecting which output devices are to be enabled (4v or Ov). The output levels are suf-ficient to drive one TTL gate directly, and can be "wire-or/ed" ~or large systems.
~s further shown in Figures 153 and 154A-D, each ROM chip comprises six input bu~fers. These input buf~ers generate both the input and its complement. On the ~asis o~ the 64 possible combinations of the 6-i~puts Io-I5, one o~ the 64 lines in the decoder is selected. The selected line enables one of the vertical lines in the 64 g 64 bit storage array.
For e~a~ple, let Io - I5 ~ O and I5 - I8 be "don't cares".
This means line ~00 (octa-l) is selected.
The two 8 out of 32 select decoders must choose 16 lines from the 84 horizontal lines selected by the vertical line XOO. (The 8 out of 32 select decoder is actually a 2 out of-8 decoder repeated 4 times in each of the sections A - B.) The output irom four MOS FET's a, b, c, and d are "wire or~ed"~ MOS de~ices a', b', c', and d' are also con-nected similarly. I~ I6 and I7 - O, horizontal lines lXX, ' t ' ' ,i ': ' . ~ : ~:
-~ 1058~
2XX, 3XX, 5XX, 6XX, 7XX are groullded in eacll of the four sections ~-B. This insures that MOS FET's b, c, d, b', c', and d' are non-conductive. This allows si~nals on lines OXX
and 4XX to pass into the output sections through transistors a and a'.
The output section contains the output buffer, 1 out of 2 decoder, and the output drivers s. The output butter provides a stage of gain and "wire or's" 4 lines from the storage array. The 1 our of 2 decoder clamps the gates of 2 of the 4 output drivers in each section A-B by enabling either line I8 or its complement ( ~). This disables 1 of 2 signals coming from the output buffer. The output drivers then can be tied together with line (e) for a 512 x 8 organi-zatio Each of the above-listed constants and routines and subroutines of basic instructions employed by the calculator is stored in these ROM chips. This is accomplished by parti-tioning the 0 to 16777 octal addresses of the memory map of Figure 4 into 5121oX 81o blocks which is the capacity of each 4096-bit ROM chip. These blocks are represented in the memory map of Figure 155. The next step is the inversion of the 8 bits (if the input was "1", it is now a "0") and com-plimenting of the address (i.e. once the octal addresses 0 - 16777 are partitioned into 512 x 8 blocks, only the last 3 octal digits are important). For this reason, address 7778 goes to 000,7768 goes to 001, ....... , and 000 goes to 7778.
The sixteen bits of each constant and basic instruc-tion are stored in the 5121o x 81o ROM chips by organizing the ~OM chips into 64 x 64 bit matrices and computing the ~ ()587~7 row and column numbers of eacl bit of each matri~ by operating on each address and the particular bit (15 through 8, or 7 through 0). The column number is computed by subtracting the last two digits of the address from 1008. For example, the column number of address = 18 ~ 8 = 100 D 641o and the column number o~ address 777 - 18 ~ 778 ~ 1. The computation of the row number (referred to as IR in the ~low-chart of Figure 156) can best be described by re~erring to the ~lowchart o~ Figure 156 and the associated table o~
Figure 157. Once the row and column numbers are ~ound it is a simple matter o~ storing in that location o~ the matrix that particular bit (i.e., a "1" or a "0"). A "0" is stored at a designated location by ~orming a metal gate to complete a MOS FET device at that location, and a "1" is stored at a designated location by leaving of~ the metal gate so that a MOS ~ET device is not ~ormed at that location.
M-Register As shown in Figures 146, 147, and 158A-D included on the M-~egister board is the 16 bit Address or ~-Register, all chip enable decoding and bu~ering, and address bu~fers for both RO~ and RWM. The register uses ~our, four bit, serial in and out, parallel in and out shi~t Registers. Upon receipt o~ a TT~ instruction ~rom the microprocessor, serial data from the T-Bus is accepted into the M-register Nothing is done with this data until either a read or write instruction is - received, then one o~ two decoders are enabled. These chip Enable decoders uniquely decode which block o~ 512 words, either ROM or R~, is being addressed. I~ ROM is being addressed, .~ .
the signal is inverted and amplified to +12~. ~or RW~I the Chip Enable enables a gate, which allows a 16 Volt clock -~14-.:
105~767 signal to reach the en~bled RWM chips. The clock wave-form is generated on the control card.
The dynamic characteristic of the RWM chips, requires that all chips be enabled simultaneously during a refresh cycle, to re~resh the entire read/write memory. The buffer circuits in the output of the Chip Enable decoders allow the chip select clock to reach all of the Rl~M chips auring refresh but only those being accessed, during a read or write cycle.
Open collector nand gates with resistor pull-ups are used as buffers for the ROM address lines. Using the open collector gates, the address lines can be pulled above the re-quired 4v level. The nand gates àre enabled during a memory cycle so that the ROM address lines are inhibited at a 5v level. The RNM address lines must pull from Ov to + 16v.
~igh ~oltage, open collector, in~erters with discrete transistor pull-ups are used as buffers for the 5 most significant bits.
- The 5 }east significant address bits are bussed to the control card where they are used in part of the refresh circu~try.
Control A memory cycle consists of a read or write instruction from the processor accompa~ied by 12 clock pulses from the shi~t clock. As shown in Figures 146, 147, 159~-~ and 160, control uses these pulses and instructions to generate the clocks required by the RWM chips. A synchronous 4 bit counter (SN74193) is used to count clock pulses and the 4 outputs are decoded by a 1 of 16 decoder (SN74154) to generate J and K
input to flip-flops. The outputs from the flip-flops are then bui'~ered to become the reguired cloc~ signals (Precharge, Y-enable, chip select).
Re~reshing the read/write memory is also taken care of 105~76~
by the control card. An asta~ multivibr~tor with a repetition rate o~ 500 hz. minimum ~eneratcs a si~nal which allows 3 re-fresh cycle to occur. A flip-~lop generates the actual signal (REF), but only if the astable multivibrator signal is high, there is no read or write cycle in progress and the processor signal, CC~, is high. ~ goes high between processor in-structions, thus it is known that nothing is going to be in-terrupted when REF is generated. REF is then bu~fered by an open collector inverter and given to the processor as T~.
IN~ halts the machine and the re~resh cycle begins.
The same counter used for a memory cycle, is used during refresh to again generate the necessary clocks (Pre-charge and chip select). ~rhen the counter returns to state 0 and REF is present, a second co~nter is advanced one count.
This second counter provides the refresh addresses which go to the RWM only if REF is present. ~hen this counter returns to state 0, it causes REF and ~ to return to preset conditions and the machine continues normal operation.
A ~urther function of the control card is to make the 1024gl me~ory chips appear to the processor like 512 x 2 chips.
This is done by accessing the RWM twice during each memory cycle. Hence, half-way through each refresh or memory cycle a ~lip-~lop changes state to generate one address bit. The M-register thus provides only 9 address bits and the control card 1 bit, independent of the M-register.
Other signals generat-d on the control card, direct the ~low of data in the T-register.
T-Register Data to and from the memory is temporarily stored in the T-register. As shown in Figures 146, 147, and 161A-D four 4-bit, seri~l in and out, parallel in and out shi~t registers - -~16-105876~
make up thc actual T-rcgister~ Thc rc~istcrs have a modc control (TMC) ~vIIicll when low, allows serial data flow and when high, ~llows parallel data flow.
Serial data enters the T-register in the presence of a TTT instruction. Data is serially transmitted to the S-bus during a TTS instruction, and simultaneously recirculated into the T-register to prevent loss of dataO
Parallel data is accepted from either ROM or RWM
during a read cycle. The ROM data is buffered by nand gates and the RWM by sense amplifiers followed by the same nane gates. Multiplexing the RWM means that only one-half the data bits are transmitted between RWM and the R-register during each half of the memory cycle. The first half of the read cycle, the odd bits are loaded into the T-register. To com-plete the transfer these bits must be shifted right one place and the odd bits again loaded from the RWM. This is done by allowing the odd bits to appear as data at the input of the even bits. When new data is clocked into the T-register during the second half of the read cycle, the even inputs are also clocked in, filling the T-register. This isn't done with ROM
since all ROM is transferred 16 bits parallelO
Data is written into memory in a manner similar to the way data is read from RWM. The bits are 16v levels, after buffering, and are written by the odd bits followed by the even bits. The nand gates between the T-register and the 16v buffers are gates from the control card to handle the write multiplexingO
-~17-.
~LOS~7~7 INPUT-OUTPUT CONTROL UNIT
The input-output control unit ~llows the calcu-lator to communicate with the internal input, input-output, and output units and with external peripheral devices. As shown in Figures 140A-C and 162A-D, the input-output control unit is co~tained on two printed circuit boards; the "Control and System Clock" board and the "I/O Register and Gate Interface~ board. A third board, shown in Figure 163, is an I/O motherboard providing room ~or coDDectin~ iour ex-ternal inter~ace cards to the calculator.
The internal input, input-output, and ouput units are distinguished ~rom peripheral devices by the fact that the I/O language set addresses them directly. ~ence each I/O ~nstruction contains an internal peripheral address as part oi its makeup. The five internal directly-addressable input, input-output, and output UDitS are the I/O register, the magnetic card reader, the output printer, the x-, y-, aod z- register display, and the keyboard mode lights.
The external peripheral devices are indirectly addressable and are con~ected via cable to an interface card which is plug~ed iDto the I/O motherboard at the rear of the calculator. The term indirectly addressable i9 de-fiDed here to mean the external peripheral devices are addressed by lines leading irom the ~our most SigD~ iicant bits iD the I/O register, thereby requiri~g an address word to be loaded into the directly addressable I/O register.
I/O CONTROL AND SYSTEM CLOCK SECTION
- The fu~nction oi the I/O Control and System Clock Section is to provide control to the }/O Register and Gate Interface Section. This is ~ccompIished b~ use of an I/O
- lOS~7~
instruction ~set .stored in the main memory of the calculator The microprocessor causes instructions from the memory unit to be loaded into the T-Register and then to be transferred to the Q-Register. The microprocessor deter-mines the type of instruction and causes the proper execution of the instruction. If the instruction is an I/0 type, con-trol is transferred by the microprocessor to the I/0 Control and System Clock Section.
The microprocessor remains in a two state waiting loop while the I/0 Control section is active. Time in the wait loop is between .72 u seconds and 6.5 u seconds.
Bits 5 through 10 from the Q-Register are connected to the I/0 Control section and remain constant during an I/0 instruction execution time. Bits 5 through 8 repre-senting the I/0 instruction code are gated to the I/O
address flip flops and entered on each clock time while the I/O is inactive. The four outputs of the address flip flops are connected to the address input of a 1 of 16 de-coder and represent the starting state address of the I/0 instruction to be executed. When the I/0 Control Section is enabled, the input gates passing bits S through 8 to the I/0 address flip flops are closed and the 1 of 1~ de-coder enabled. This allows the starting state I/0 micro instructions to come from the 1 of 16 decoder. The next state address coming from the closed input gates will be the exit state (1111=178) unless modified by reopening the gates to let the original starting state code through or by modifying the output of one or more of the input gates using a "wire or" connection coming from the 1 of lfi de-coder output. This addres.s is sent to the I/0 address -~ 19-,.... .
105~7~'~
flip flops inputs and cloclccd in on thc leading ed~e of tlle first half clock cycle. The first half clock cycle turns off the 1 of 16 decoder and the address changes. The second half clock cycle enables the 1 of 16 dccoder, allowing the next state micro instruction to appear. (See Figure 164 for the timing described above.) This process continues until the exit state is encountered. On the exit state, the I/O Control is disabled and control is returned to the microprocessor.
The I/O instructions involving the transfer of data between the I/O and the CPU (OT, LI, MI), require 16 passes through the same state (1 pass for each of 16 bits). This is achieved by checking the output of a 16 bit down counter and then decrementing after each pass through the state.
If the counter indicates "O" has not been reached, it causes the starting state address to be reloaded into the address flip flops by opening the input gates. When 16 passes have been indicated by the counter, the input gates are not allowed to open; however, the next state (1111) is modified by the output of the 1 of 16 decoder through a "wire or"
connection on the 2cd bit to give state 1101. This address is input to the I/O address flip flops as in the preceeding paragraph.
The above-described operation of the I/O control section is also illustrated and further described in the flow chart of Figure 165.
Bit 9 is called a hold/clear bit. It allows a clear flag (CLF) to take place or not to take place after execution of the other I/O instructions. (STF excepted) -Bit 10 is used in conjunction with the micro instructions - -~20-.
`` 1058~7t;7 PTR and XTR to give control to the I/O.
The I/O control and programmable clock mnemonics are given in the following table:
CC0 Clock Code Zero CCl " " One CC2 " " Two CC4 " " Four CC8 " " Eight CCT Control Clock to Tester CEM Call Extended Memory CLC Clear Control CLF Clear Flag DRC Data Register Clock EBT Eight Bit Transfer EOW End of Word IIO Inhibit Internal OSC
INH Inhibit Clock IPS Inhibit Primary/Secondary ITS Input to S-Bus MCK Memory Clock POP Power On Pulse PTR P-Reg to R-Bus QFG Qualifier Flag Q5 " Five Q6 " Six Q7 " Seven Q8 " Eight ?9 " Nine Qlo " Ten QRD " ROM Disable RCA ROM Clock Address ~05876'7 I/O CONTROL BOARD MNEMONICS (Continued) RCF ROM Clock Flip Flop SCB Set Carry Bit SCK Shift Clock SCT " " to Tester Service Request Acknowledge STC Set Control STF Set Flag TCK Tester Clock TTO T-Bus to Output TTX T-Bus to A/B Reg.
XTO External OSC
XTR A/B Reg. to R-Bus NOTE:
( ) indicates negative true signal I/O REGISTER AND GATE INTERFACE SECTION
As shown in Figure 162, the directly addressable I/O Register (address Ol) is a 16 bit universal (Parallel in/out, Serial in/out) register that is connected to the calculator processor by the serial-in S-Bus and the serial-out T-Bus. Information is passed non-inverted from the A or B regis-ters bit serial to the I/O Register with the IiO instruction OTX 01. Sixteen ~;
lines connected to the parallel outputs of the I/O Register provide data out -to the internal input, input-output, and output units and to the external output interfaces. (NOTE: each I/O unit or interface may place only 1 TTL
load on the output lines.) Parallel entry to the I/O Register is through 12 party lines con-nected to the 12 least significant parallel inputs. The input lines are negative true with all input l~J~7~7 interfaces tyin~ to the lines tllrough open coll~ctors.
Care must be taken to ins~lre there is no disturbance to the lines while an interace is inactive. Input informa-tion is passed inverted to the A or B Register Bit serial with the I/0 instructions LIX 01 or MIX 01. (Tlle inversion puts positive true information into the A or B register.~
Input information is entered into the I/0 Register in three ways:
a) Service Request.
Entry by the service request method is con-trolled by a service inhibit flip flop. ~Vhen the service inhibit flip flop has been cleared with the I/0 instruction CLF 01~ a service re-quest may be initiated by returning the SSI
(Service Strobe Input) party line to ground through an open collector on the interface.
This signal causes the parallel inputs to be strobed into the I/0 Register and seDds a re-quest for service (QNR) to the microprocessor.
The microprocessor prior to receiving a request for service would have been cycling through various instruction paths and checking for a service request after execution of each instruc-tion. Upon receipt of a request for service, the processor interrupts the sequence of instruc-tions it was doing and loads an address into the M-Register which contains the starting address of the service routine. At the same time a sig-nal, SRA (Service Request Acknowledge), turns off the service inhibit flip flop and also sets -~23-:lOS!3~67 the single service flip Ilop which pcrmits only one service interrupt to the processor per ser-vice strobe input. The single service flip flop is reset when the service strobe is removed.
All lines from an interface using the service re-quest method for entering information are inhib-ited when the Service Inhibit flip flop is set.
b) Return of Channel Flag ~fter Command was Given to an External Peripheral Device.
This method implies the calculator must control the peripheral. That is to say the calculator transmits the indirect address and control en-able (CE0) from the "I/0 Register and gate inter-face" section to the interface with the expecta-tion of information being returned by the peri-pheral through the interface to the I/0 Register.
Because of this expectation, only limited instruc-tions may be performed by the calculator while waiting. The Service Request method must be inhibited during this wait so that input informa-tiO17 iS not destroyed by another peripheral using Service Request.
When a controlled peripheral responds, its flag and data are processed at the interface. The signal CFI (Channel Flag In) causes the loading of parallel data from the interface into the I/0 register and clears the control enable flip flop so that the CE0 signal is removed from the inter-face. The calculator can interrogate the Control Enable flip flop with the instructions SFS 01 -~2~-- .
lQ587~
or SFC 01 to dctermine when data has been loaded in.
c) Giving the I/O Instruction STF 01.
The instruction STF 01 as described in (a) sets the service inhibit flip flop inhibiting the service request mode of entry. The STF 01 instruction also causes a parallel load of the input lines into the I/O Register.
The I/O Register is used to transfer data and con-trol between the calculator and the directly addressable magnetic card reader (address 02). To record information on a card, the control word and data is transferred from the A Register to the I/O Register. The I/O instruction STC02 clocks this information via MLS into a latch located at the card reader. The strobe bit for the recorded data is output to the I/O Register from the B Register. The I/O instruction STF02 clocks the strobe latch located at the card reader via MCR. The I/O instruction STF01 loads status from the card reader into the I/O Register (see l-C).
This status is transferred to the A or B Register where it is processed.
To enter information from the magnetic card reader a control word is transferred from the A-Register to the card reader latch as above. When a strobe is encountered from the card, the card reader sends a signal, MFL, to the I/O Register and gate interface section, which sets the magnetic card flag flip flop. The I/O instruction SFS02 is used to determine the state of the magnetic card flag flip flop. When the flip flop is set~ data is loaded into the I/O Register with the I/O instruction STF01.
~ - :
10587f~7 The dircctly-addressable output printer (address O~) requires 26 bits of parallel information from the calculator.
Sixteen bits come from the I/O Register and lO bits come from a register at the printer. A 16 bit word with "don't cares" in the least 6 significant bits is transferred to the I/O Register with the I/O instruction OTX 01. A second 16 bit word is transferred to the I/O Register with the instruction OTX 04. The lO valid printer bits already in the I/O Register overflow into the lO bit printer register. The significance of the address 0~ in the OTX instruction is that it allows the micro instruction EOW (End of Word) to set the printer enable flip flop after the 16th bit has been transferred.
At the end of the printers response it returns a signal (PTF) to the printer enable flip flop clearing it. The printer enable flip flop can also be cleared with the I/O
instruction CLF 04. The state of the printer enable flip ~-flop is checked with the I/O instructions SFC 0~ or SFS 04. ;
The directly-addressab~e output display (address 08) recieves information from the I/O Register. A 16 bit word is transferred to the I/O Register with the instruction OTX
08. The address 08 allows the display enable flip flop to ~e set with the micro-instruction EOlV after the 16th bit has been transferred. The display enable flip flop sends a signal DEN to the display indicating information is ready in the ~/O Register. The display enable flip flop is cleared with the I/O instruction CLF 08.
The directly-addressable keyboard indicator lights (address 16) are used to indicate the mode for various keys.
The lights are driven from a latch or series of latches which get information from the I/O Register. Information -~26-1~58767 is transferred to tlle I/O Register with the I/O instruction OTX 16. After the 16th bit has been transferred, the micro-instruction EOW and address 16 send a signal KLS which strobes the informatioD from the I/O Register into the keyboard lights latch.
The keyboard does not have an address. It transfers information to the CPU through the I/O Register using the Service Request method described in (a) above. The keyboard is disabled while the service inhibit flip flop is set except for the stop key which when depressed sends the signal STP
which is processed independent of the service inhibit flip flop.
All external peripheral interfaces are indirectly addressed from the four most significant bits in the I/O
Register. Thus to communicate with an external peripheral, an address (0000 excluded) must be loaded into the I/O
Register. Data and status will be loaded at the same time if the peripheral is to act as a receiver. If the peripheral is to act as a transmitter, only the address and status need be loaded. Next, the I/O instruction STC 01 sets the Control Enable Out flip flop. This flip flop sends a signal CEO
to all external interface slots. The CEO signal and the decoded (from the 4 bit address) address allow the interface to command the peripheral. After the peripheral has responded, information given back to the interface by the peripheral is processed to the I/O ~egister in the manner described under (b), "Return of Channel Flag After Command was Given to an External Peripheral Device".
The I/O Register and gating control circuit mnemo-nics are given in the following table:
~()58767 I/O REGISTER AND GATE BOARD
CEO Control Enable Out CFI Channel Flag In CLF Clear Flag CO0, 1,2,3 Code Out DEN Display Enable DI0, 1,2,3,4,5,6,7 Data In DO0, 1,2,3,4,5,6,7 Data Out DRC Data Register Clock EBT Eight Bit Transfer EOW End of Word IOD I/O Data KLS Key Lights Strobe MCR Mag Card Reset MFL Mag Flag MLS Mag Latch Strobe PEN Printer Enable pop Power On Pulse PTF Printer Flag Q0 , Qualifier Bit 0 Ql 1 Q2 " " 2 Q3 " 3 Q4 " " 4 QFG "Flag QNR "Not Request SIH Service Inhibit SI0, 1,2,3 Status In SO0, 1,2,3 Status Out SRA Service Request Acknowledge SSI Service Strobe In STC Set Control SsTF -428- Set Flag I/O l~l~'GIS'rl~,T~ AND GA'l'1~',130A~D (C'ol~lilu T-~us T-~us TTO T Bus to OUtp~lt NOTE:
( ) indicates negative true signal As shown in Figure 166, when addressing a peripheral device~ bits loaded into the 4 most significant locations in the I~O register from the CPU constitute the peripheral address code. As part of the output party line system the address code is routed to all I/O interface slots. Each I/O inter-face card decodes the 4 line address code to a unique single line for use on that particular I/O cardO The binary codes 10 through 15 have been reserved for dedicated peripheral addresses which are used by dedicated keys (from the key-board) and dedicated I/O drivers. Binary codes 1 through 9 are for general use. Code "O" is a non-addressing code and is used in operations that do not involve addressing a specific peripheral. The following table summarizes the address code assignments:
ADDRESS CODE ASSIGNMENTS
RESS CODE
HliHH TYPEWR ITER
_ 13 }lliLII
12 HIILL jCEYBOARD & KEYBOARD-LIiCE PERIPIIERALS
The unlts to be used in problems involving trigono-metric ~unctions or vector arithmetic are selected according to the procedure listed in Table A. The units specified by the appropriate indicator light above the de~inable key block.
Table A. Speci~yi~g Units To Speci~y: Press: Indication:
~ _ . ....... .
D~GRE~S TABLE N 1Deg Rad Grad RADIANS TABLE ~ 2 O
GRADS TABLE N 3Deg Rad Grad It should be ~oted that the setting o~ degrees, radians, and grads (360 degrees ~ 400 grads) is programmable.
Trigonometric ~unctions o~ angles ~rom 0 up to 5760 can be calculated at ~ull accuracy; however, inverse trigono-metric ~unctions are calculated only ~or the ~rincipal values o~ the ~unctions:
sin~l x; -90 < ~ < + 90 ~ - cos l x; ~ < ~ ~ ~ 180 ~ _ tan~l x; .-so < ~} ~ + 90 For ~nstance: cos 150 ~ cos 210 ~ cos 510 - (etc.) ~ -.866 But: cos ~ .866 150 The sin x key is depressed to calculate the Sine o~
the contents o~ the x-register and insert the result in the x-register.
. .
~OS87~7 The cos x key is depressed to calculate the Cosine o~ the contents of the x-register and insert the result in the æ-register.
The tan x key is depressed to calculate the Tangent o~ the contents of the x-register and insert the result in `
the x-register.
The arc key is depressed ~ollowed by a trigonometric key to calculate the inverse trigonometric ~unction o~ the contents o~ the x-register and insert the result in the x-register.
For example, the sin 1 0.5 may be calculated by sequentially depressing the TABLE N, 1, ., 5, arc, and sin keys. Depression o~ the TABLE N and 1 keys selected the units (degrees) per Table A above.
The ~ollo~ing logarithmic and exponential ~unctions may all be ~er~ormed by employing one or two keystroke opera-tions.
The TABLE N and 4 keys are sequent~ally depressed in the order named to calculate the logarithm (to base 10) of the contents of the ~-register and display the result in the x-register.
The T~BLE N and 5 keys are sequentially depressed in the order named to raise 10 to the power ~ndicated by the contents o~ the x-register and display the result in the x-register (i.e. lOX)~ For example~ the number 0.69897 may be - raised to the power indicated by the contents o~ the x-register by sequentially depressing the ~, 6, 9J 8, 9, 7~ TABLE Nf and 5 keys.~
The ln x key is depressed to calculate the logarithm (to base e, i.e. natural logarithm) o~ the contents o~ the -127_ iO587~7 x-register and display the result in the x-register (i.e.
ln x). For example, the 5~ may be calculated by sequen-tially depressing the 2, 3, ln x, t, 5, ~, S, and e keys.
The ex key is depressed to raise e (i.e. 2.718....) to the power indicated by the contents of the x-register and display the result in the x-register (i.e. eX).
The xY key is depressed to raise the contents of the x-register to the power indicated by the contents o~ the y-register. The result is displayed in the x-register, and the contents of the y-register remain unchanged.
The ~ollowing keys provide capability ~or performing complex and vector arithmetic with a single keystroke opera-tion.
The TO POLAR key is depressed to convert rectangular coordinates (consisting of x and y components in the x- and y-registers, respectively~ to polar coordinates (4 - tan 1 _, R ~ ~ ). When converting ~rom rectangular (cartesian) to polar coordinates, the calc~lated angle ~ will be within the range cf -180C 4 <180. The final displày is:
temporary z ------accumulator y (Angle 4) keyboard x (Radius R) For example, the coordinates 4, 3 (x, ~) may be con~erted to polar ~orm by seguentially depressing the T9BLE N, 1 (these keys select the units, i.e. degrees), 3, t, 4, and T0 POL M
keys.
The T0 RECTANGULAR key is depressed to con~ert polar coordinates, when the radius tR) a~d the angle (~) are i~ the x- and y-registers, respecti~ely, to rectangular coordinates (y ~ ~ Sin 4, x - R Cos ~).
-1~8-~058767 The final display is:
temporary z ------accumulator y (y component) keyboard x (x component) For example, the polar coordinates R = 8, ~ 5 120 (or -240) may be converted to rectangular form by sequentially de-pressing the TABLE N, 1, 1, 2, 0, t, 8, and TO RECTANuULAR keys.
The final display is:
temporary z accumulator y 6.928 keyboard x _4.000 The ACCUMULATE +, ACCUMULATE -, and RECALL keys are storage and recall keys associated with the a- and b-data storage registers. These keys provide complete capabilities for vector addition and subtraction.
The ACCUMULATE ~ key is depressed to simultaneously add the contents of the x- and a-registers together and the contents of the y- and b-registers together. The sums are entered in the a- and b-registers, respectively, while the x- and y-registers remain unchanged.
The ACCUMULATE - key is depressed to simultaneously subtract the contents of the x-register from the contents of the a-register and the contents of the y-register from the contents of the b-register. The remainders are entered into the a- and b-registers, respectively, while the contents of the x- and y-registers remain unchanged.
The TABLE N key permits access to 10 more ROM func-tions than there are definable keys. A list of these func-tions is given in Table B below~ The TABLE N key may be fol-lowed by any key. If this key is different from a numeric -129_ ~ .
lOSB767 or F~, no operation is performed.
Table B
TABLE N FUNCTION
1 SET DEGREES~ -I SETS ARGU~ENT UNITS FOR
2 SET RADIANS ) ~ TRIGONOMETRIC FUNCTIONS
4 Lo 6 DEGR, MIN, SEC ) DECI~AL DEGREES
7 DECI~AL DEG~EES ~ DEGR, MIN, SEC
8 X' F~T A~TOMATIC P~OTTER SCA~ING
The ~irst ~i~e functions o~ the TABLE N key have al-ready been e~plained abo~e. However, this key ~ay also be used to per~orm any o~ the n~xt ~ive iunctions (namely, angle co~vers~on, calculatio~ ~!, rounding a number to a speci~ied power o~ ten, and plotter scaling) not previously described above.
The TABLE N and 6 keys are se~uentially depressed in the order named to convert an angle eæpressed i~ degrees, minutes and seconds to decimal degrees. The a~gle must be en~ered into the ca~culator as ~ollo~s:
DISPLAY
temporary z - (Degrees) accumulator y ~ utes) keyboard ~ - (Seconds) The result in dèc~mal degrees, appears i~ the x-register, while the y- and z-registers are cleared. This is illustrated .
as ~ollows:
-.
..
~0587~i7 temporary z - O
accumulator y - 0 keyboard x - DECIMAL DEGREES
The TABLE N and 7 keys are sequentially depressed in - the order named to convert an angle expressed in decimal degrees to degrees, minutes and seconds. The angle to be con-verted must be entered into the x-register, and the resultant angle appears as in the previous display. However, the con-tents of the y- and z-registers need not be zero for the in-struction TABLE N, 7.
The TABLE N and 8 keys are sequentially depressed in the order named to replace the contents of the x-register with X! (where x 0 ~ ¦x¦ < 69).
The TABLE N and 9 keys are sequentially depressed in the order named to round the contents of the y-register to the power of ten indicated by the integer value of the con-tents of the x-register. The rounded number appears in the x-register, while the y-register remains unchanged. For example, the number 5610.0 may be rounded to 102 (or nearest 100), by sequentially depressing the 5, 6, 1, 0, and t fol-lowed by the 2, TABLE N, and 9 keys.
DISPLAY
accumulator y 5610.000 keyboard x 56000000 (y rounded) Similarly, the contents of the y-register may be rounded to another power (104) by sequentially depressing the 4, TABLE
N, and 9 keys.
DISPLAY
accumulator y5610.000 keyboard x 10000.000 (y rounded) l U ~ 7 A fractional numb r may be rounded by inserting a negative number into the x-register. For example, the number 0.005 may be rounded to the 10 or nearest 1/100 by sequentially depressing the ., 0, 0, 5, t, CHG SIGN, 2, TABLE N, and 9 keys.
DI~PLAY
accumulator y 0.005 keyboard x 0.010 (y rounded) A problem usually encountered when writing a calculator/
plotter program is that of scaling the available problem variables to coordinates which the plotter can use. The plotter scaling feature to be described, simplifies this typical plotting problem. The TABLE N, F~T, and t or I keys are sequentially de-pressed in the order named to replace the plotter problem variables, which are entered in corresponding x- and y-registers, with scaled coordinates. The user variable maxima and minima for this scaling operation are stored in user data storage registers 001-0040 The foregoing sequence of keys controls the plotter (using the scaled variables) in the same manner as FMT, t, or ~ described above.
The DEFINABLE f ( ) key is used to label and "call" an often used (or favorite) function which is programmed as a subroutine in the calculator. The definable function may be executed at any time from the keyboard by depressing the DEFINABLE key, or it may be "called" in a program by incerting the DEFINABLE (key) instruction. The definable ~unction is programmed similar to a "LABEL" subroutine, while the function is executed as a normal subroutine; except it may be "called"
with only one keystroke or program step.
When the DEFINABLE f ( ) key is depressed the program counter searches for a subroutine labeled DEFINE f ( ), ,, ., ~ , .
executes, and returns. This key can be used both in key-board and program control. A user written subroutine to be called by the DEFINABLE f ( ) key can be stored anywhere in the program memory, its first program steps must be LABEL, DEFINABLE f ( ); its last step must be SUB/RETURN. There are no restrictions on the operations this subroutine may perform. It is illustrated by the following example:
LABEL
DEFINABLE f ( ) t ex X f y C~G SIGN
+ . .
_ SUB
RET~RN
Whenever the key DEFINABLE f ( ) is called either in RUN or 20PROGRAM mode, the hyperbolic cosine of the number in the x-register is computed and placed in the y-register by this subroutine.
The TABLE N and CLEAR x keys are depressed to clear all numerical storage registers without affecting the a- and b-registers or the x-, y- and z-registers.
A programmed subroutine may be repeated m number of times by inserting the following keys at the end of the sub-routine: TABLE N, SUB RETURN, and n, where n may be any key from O to 9 indicating a data storage register that contains 30m, and m is equal to the absolute integer value of the contents ~05~767 of the n-registerO After the subroutine has been repeated n times, the program exits the subroutine and resumes normal program operation at the program step following the sub-routine "calling instructions". The iterative subroutine feature may be added to a ~'LABEL" subroutine, but when the T.AREL subroutine is ~called~' (during a program) the call instructions must contain 6 program steps. The following partial program shows how to call the LABEL ~ iterative sub-routine.
Iterative "LABEL" Subroutine STEP KEY ~ COMMENT
0400 - - - _ _ 0401CONTINUE 47~
. Subroutine I CALLS
SUB ¦ Instructions 0404~ET5E~ 77 0405 LABEL 31l (6 keys) 0406 ~ 56~
Return from 0407 ~ 35 Subroutine .
.
105~t7~i7 Statistics ROM Module The primary function of the statistics ROM module is to carry out the summations of variables, cross-products, and squares needed as funda-mental quantities in a variety of statistical ana1yses. These summations are generated in the general data storage user registers, and the user must be careful to avoid any operations whTch might destroy or alter the contents of these registers. The number of registers used js dependent on the number of variables treated - as defined by the user.
The registers used are:
n ~0 2 x ~1 2 x2 ,2 ~variable; x _ 2 y ~3 2xy :~ 4 2 y2~5 ~ 2 - variable; x, y 2 z-~6 2xz 7 2yz~ ~ 8 2 z2~9 ~ 3 _ variable; x, y, z 2 a~10 2xa-~11 2ya.~12 2za~13 2 a2~14 ~ 4 - variable; x, y, z, a 2 b~15 2xb~16 2yb~17 2zb~18 2ab~19 2 b2~20 ~5 - variables; x, y, z, a, b These are graphically summarized in an easy-to-recall form in this table:
_ - O1 1 3 1 61 10 b x ~ 4 7 11 16 b.
.: ~
~s~
In ad~tion to the user-reg~ters O - 20 ut~zed as sh~wn above, registers 21 ~ ~2~ are usedfor co~ection of max~num/m~L~num ~alues,for the "seed" o~ the pseudo-random nunnber generator. This is shown below:
~5 2q Any regi~ers notused ~ a spec~ic sequence are ava~able. For ~nple, ~ 2 - var~able operat~ons are setuD, only reg~ers 0~ ~5 are ~n use, and 6 ~ ~20 arefreefor ot~er purposes.
Whe~ the statistics ROM module is plugged into the calculatorJ the user may employ the definable keys 91 to perform the additional functions indicated by the statistics overlay shown in Figure 11. All of these additional unctions are programm~ble and will hereinafter be described key-by-key.
~051~'7~'7 The VARIABLES K key is used to define the number of variables to be treated, 1 to 5. It must be followed immed-iately by a digit key, 1 to 5. If any other key is depressed after this key, the STATUS light will be turned on, and the calculator will halt in the display mode. The VARIABLE key and the erroneous key following it are ignored - there is no other action.
If a correct digit key follows, one or more of the indicator lights will come on, to signal the number of variables selected. The pattern is:
1 - variable 1 - light 2 - variable 2 - light 3 - variable 3 - light 4 - variable 1 and 3 - lights 5 - variable 2 and 3 - lights The definition of the number of variables affects subsequent use of the S' key, MAX/M~ key, and the ~ITIALIZE and CORRECT keys used in conjunction with it. The number of variables remains unchanged until the VARIABLES key is used to change it, which may be done at any time.
This key is used to accumulate the data summations of variables, cross-products, and squares as outlined previously. The number of summations is determined by the VARIABLES key described above.
That is, the contents of the registers utilizedare:
1- variable x 2 - variable x, y 3 - variable x, y, z 4 - variable x, y, z, a 5 - variable x, y, z, a, b If the summation key ( ~ ) is depressed without a previous definition of the number of variables (VARIABLES key followed by digit 1~ 5), the number of variables is set at 3. I~ will remain at this setting unless changed by use of VAPdABLES
The E key generates the summations, and leaves the contents of x, y, z, a, and b unchanged.
The INITIALIZE and CORRECT keys work in conjunction with the summation key. They must precede the ~: key.
When the sequence lMTIALIZE - ~ is used, all registers (defined by the number of variables set) involved in the summations are cleared to zero. This sequence should always be used before the start of a series of summations on a set of data - otherwise any previous contents of the l~S~'7~'~
registers are included in the summations.
If, after depressing the ;~ key, it is discovered that the contents of x, y, z, a, or b were erroneous, the user may remove the erroneous data from the summation by depressing CORRECT - S keys in that sequence. This will remove all variables, cross-products, and squares of that data from the summation. The user may then correct the data and reenter it by depressing the ~ key. Since x, y, z, a, and b are unchanged by the use of ~ (or CORF~ECT - ~ ) this is most conveniently done when the erroneous data is still intact - i. e., immediately after ~ . However, if the erroneous data is not discovered until later the user must reenter the erroneous data in x through b (only x and y if ~ - variable, etc. ), use CORRECT - ~ , and then correct the erroneous data and enter it with the ~ key.
The user must be careful not to do any operations during a summation-sequence on data which will alter the con-tents of any user-registers involved in the summation.
However, the contents of any of the summation-registers may be recalled and used at any time, so long as they are not altered.
Once a data-sequence has been entered by use of the ~ key, the summations are available for any desired statistical analysis. For user convenience, four commonly used statistical processes are implemented, to be performed by a single keystroke. The function of these four keys will follow.
The MEAN key computes (from the collected summatians) the arithmetic mean of up to three variables; x, y, and z. ~ 4 or 5 variables are set, the MEAN key operates on only 3, and does not form the other two means (on a and b).
For various variable settings, the following computations are made, and appear in the x, y, z registers:
1 - variable z 0.0 Y 0.0,~
x x= x=( ) n (0) where (1) means "contents of register - 1".
2 - variable z 0.0 Y Y = ~ Y = (3) n (0) x x 105~7~;~
3 - variable z z = ~ z = (6) n (O) x x These computations are carriedout and the results appear in x, y, z as shown, without changing the contents of any of the summation registers.
The VARlANCE key computes (from the collected summations) the variance of up to three variables, x, y, and z. If 4 or 5 variables are set, the VARIANCE key operates on only 3, and does not form the variance of aorb.
The following computations are performed:
x2 _ ~ (2) -~
n- 1 (O)- 1 y2_ ( ~ y)2 (5)_ (3)2 Y =--- . = () n- 1 (O)- 1 z2 _ ( z)2 (9) _ (6) z = ~ n = (o) n- 1 (O)- 1 The results appear in the x, y, z registers in the pattern.
1 - variable 2 - variable 3 - variable Z- ` 0.0 0~0 ~z Y- 0.0 ~y ~2 x - ,~, 2 ~ 2x ~,2 The contents of all summation-registers used in these computations remain unchanged.
lVS~767 The REGRESSION key performs linear regression (least-squares curve fitting) using the accumulated summations. The computations and results are controlled by the variable-setting, as outlined below:
Variable - 1: The regression of a single variable on itself is not performed. If REGRESSION is depressed with VARIABLES - 1 set, the STATIJS light is turned on, and the calculator halts in the display mode.
There will be no other action - the contents of x, y, z, and aCI summation -registers will be unchanged.
Variable - 2: The regression of the dependent variable on one independent variable is performed for the equation:
y = aO + alX
The results are placed in x, y, z in the pattern:
z ~ 0-0 y ---- aO
X al The contents of all summation-registers used in the computation remain unchanged.
Variable - 3: The regression of the dependent variable on two indè~endent is performed for the equation:
~ = aO + alX + a2Y
The results are placed in x, y, z in the pattern:
Z aO
y --- --- a2 X al The contents of all summation-registers used in the computation remain unchanged.
Variable 4 - and Variable - 5: This situation is treated as Variable - 3. Four - and 5 - variable regression may be performed ~y user-progralnming. All summations required are generated by the key when variables are set at 4 or 5.
r The r2 key generates the correlation coefficient (a measure of , . .
1~58767 goodness-of-fit) for the linear regressions performed by the REGRESSION
key. The computations performed are controlled by the variable setting.
Variable - 1: No computations are performed - the key is ignored.
Variable - 2: The correlation coefficient of the linear regression for:
y = aO + alX
is computed.
The computations performed are best described by introduction of a subsidiary quantity:
~,'< XiXj = ~XiXj - ( ~_Xi)( ~ j) The correlation-coefficient for variable - 2 is then defined to be:
r2 = (~t xy)2 ~ xx.~yy This result is placed in register x, and y and z are cleared.
Variable - 3. The correlation-coefficient of the linear regression for:
z aO + alX + a2Y
is computed. This is:
r2_ al ~XZ + a2 ,C~t.
zz The result is placed in register x, and y and z are cleared.
The MAX/M~ key is used to collect the maximum and minimum values of the variables x, y, and z. Since these values are stored in registers 21 through 26, they do not affect the summation regiæters ( ~ key). Thus, MAX/M~ information may be collected on the same data on which summation information is being collected.
The MAX/M~ storage registers 21 through 26 are initialized by the key-sequence lNITIALIZE - MAX/~N. This results in loading the registers with:
- ~OS8'767 (~1), ~23), (25) (x, Y, Z)min = 1099 (~2!~ (24), (26) (x, Y, Z)max = -10 All six registers are initialized without regard to the variable-number setting.
When MAX/MIN is depressed, the contents of x (l-variable), x and y (2-variable) or x, y, and z (3, 4, or 5-variable) are compared to the stored contents of the max/min registers. If the new value is less than the contents of the associated "min" register, the new value is substituted -if not, the register is left unchanged. The maximums are handled correspondingly. Thus, at any time the max/min registers contain the max/min of the input data since the last initialization. This data is not displayed - the user must recall it, as needed, from the appropriate register.
The CORP~ECT key does not work in association with the MAX/MIN
key, since any previous values changed are lost irretrievably by the MAX/MIN operation.
t The t key collects summations necessary to compute a t-statistic on data in x and y, and computes and displays the statistic. The overall action is quite different from the ~ key, which collects summations only, and leaves the original data unchanged. In contrast, the t key collects needed snrnmations, computes and presents the t-statistic, and destroys the data just entered.
Further, the t-summations are stored in registers 0, 1, and 2 which are the same registers used by the key. Therefore, use of the ~ and t key cannot be intermixed.
The summations accumulated are:
n ~0 ~(x-y)= D~l ~(x _ y)2 = ~D2~2 These are accumulated with each depression of the t key. The three registers may be cleared for starting a new data-sequence by the key-sequence lNITIALIZE - t.
If an error i~; made in data entry and the erroneous data i8 included in the summations by depression of the t key, it is convenient ; to have a means for removing the erroneous data. Ho~7ever, the data has been destroyed in order to present the t-statistic which is computed after each key depression. When the user discovers the data error, he may reenter the erroneous data in x and y. Then, depression of CORRECT - t will remove the data from the summation. He may then reenter the correct data and include it by depressing the t key.
. . .
., .
~ - 142--.j .
The computations performed from the summations are:
D _ (x y) n~ ~ n -~
.~
~D 1¦ (X y)2 ( ~ (X - y))~
n(n- 1) D is placed in the z - register, n in y, and t in x.
x2 The x2 key accu~ulates the summations and then computes and presents the chi-squared statistic at each depression of the key. It's general operation is the same as the t key in that:
1. 2 Summations are accumulated in O and 1 so that use of X and ~ cannot be mixed.
2. The presentation of results after each key depression destroys the data entry in x and y. Correction for erroneous data can be accomplished ~y reentering the bad data and then depressing CORRECT - XG.
3 The regi~ters used (0 and 1) are cleared by depressing The summations accumulated are:
n - ~O
(x - Y) _ ~1 ~ the normal context for use of chi-square the "observed" value is in x, the "e~pected" value in y.
The RANDOM key causes the computation of a sequence of pseudo-random numbers, uniformly distributed in the interval O_RN>l. The method used is congruential products. It is neces-sary for the user to provide a "seed" for the sequence before using the RANDOM key. A given seed will produce the same se-quence of pseudo-random numbers each time it is used.
The seed should be stored by the user into register 27.
After each depression of RANDOM, the newly-generated pseudo-random will be stored in register 27 as a new seed, and the number will also be presented in the x - register. They y and z regis ters rema in unchanged .
, .: - , ~ -105~767 The initial seed provided by the user should be selected with certain rules in mind in order to obtain acceptable pseudo-random number properties. They are:
l. Enter a decimal fraction consisting of 12 digits (i.e., enter a complete number including guard-digits, even though they cannot be seen).
2. The number should be odd.
3. The number should not be evenly divisible by 5.
The LOGlox, LOGex, and eX keys provide the specified mathematical function on the argument in x, and the result is left in the x-register. No other registers are changed.
Typewriter ROM Module When the typewriter ROM module is plugged into the calculator, the keyboard input unit is redefined as shown in Figure 12 so that the entire keyboard of a properly interfaced typewriter such as the Facit ~odel 3841 (hereinafter referred to as the Model 61) may be completely controlled by the calculator. The Model 61 is capable of performing three basic operations:
1. Type data contained in the calculator's X-register.
2. Type alphameric messages and control typewriter functions.
3. List programs contained in the calculator memory.
These operations are accomplished by calculator instructions given either from the keyboard or as program steps in a proper sequence. In this section, these instruction sequences will be described. Wumerous examples are provided so that the user will be able to manually key the instruction sequences and obser~e the results. In normal operation, the instruction sequences would be placed in a program.
Table C provides, in brief form, the instruction sequences used to operate the ~odel 61. ~he table is not provided to teach typewriter operation; rather, it is provided for quick reference once the instruction sequences are under-stood.
All of the Model 61 instruction sequences presented in this section can be reduced into component parts consisting of one or more calculator instructions. For example, all of the ~lodel 61 instruction sequences contain the two calculator instructions FMT and 2.
The instructions FMT and 2 ser~ice the special purpose of redefining the following calculator instructions so that they will be understood only by the typewriter. The two instructions, when thought of as a component part of an instruction se~uencer can be considered as "the type-writer address n _ Although these two instructions will be shown as part of each of the following instruction sequences, their meaning will not be explained again.
, , TABLE C
COMMAND SET
Instruction Sequence:
Typing a Number ~ Types the number in the x-register ¦ in a notation and location speci~ied by 1. FMT 2 PRINT ¦ th0 last w.d. instruction.
2. FMT 2 w.d. w speeifies field width (location).
3. FMT 2 w.d. The number will be right justified in the PRINT
field. At turn-on, the calculator assumes a w of 20.
d specifies the number of digits to the right of the deeimal point or speeifies floating point.
Alphanumerie Typing FMT 2 FMT Message FMT
Allows the user to type labels and headings. Also allows control of all keyboard funetions except margin setting. Messages may include print instruetions. Caleulator keyboard has two modes, shifted and unshifted (see keyboard diagram on the baek page).
Listing A Program FMT 2 List Lists the contents of the ealeulator's memory be- -ginning with the present location of the progra~ eounter and eontinuing until an end statement is eneountered in the memory or stop on the ealeulator keyboard is pressed. The listing ineludes address loeation, key code, and key mnemonie.
All eommands are available on program or manual request.
~058767 The instruction sequence FMT, 2, w.d, PRINT allows the user to type the data contained in the calculator's X-register. In this sequence, the notation (fixed or floating point) of the typed data can be specified. In addition, the location where the data will be typed on the typewriter platen may also be specified. This instruction sequence consists of the following component parts:
FMT 2 - Typewriter address.
w.d. - Specifies the location and notation of the typed data.
PRINT - Causes the data point to be typed.
The instruction sequence is initiated with the typewriter address and is terminated by the PRINT instruction. The component parts of the instruction sequence have the following meaning for the typewriter.
w.d. - This component of the instruction sequence allows the location and notation of the typed data to be specified.
The w part of the component specifies the location; the d part specifies the notation. The decimal point in the com-ponent delimits the two parts. Although a w cannot be given without also giving a d, they are best explained separately.
w specifies the field width (w) in which the data is to be typed. The left side of the field is defined by the location of the typewriter carriage when the data is typed. The right side of the field is defined by the value of w. For example, if the typewriter carriage were sitting ten spaces from the left margin setting and w was specified as twenty, then after the data has been typed the carriage will be located thirty spaces from the left margin setting.
Any data typed in a field, will automatically be typed in the right most spaces (right justified) of the field. The following drawing illustrates the number 123.45 right justified in a field of ten.
_ The field must be large enough to contain the typed data, including the decimal point and any signs that may be present ..
~lOS87~;~
in the data point. If, for example, the data point were the digit one, a w of one would be large enough to contain the data point; however, if the data point were a negative one, a field width of two would be required.
If the field is not large enough to contain the data point, the data will not be typed; instead, the entire field would be filled with asterisks to notify you that the data point could not be fitted into the specified field width.
W may be specified as any number between one and sixty-three (inclusive). Since the data point is always right justified in the field, you will use w to place the data point at the desired location on the typewriter platen.
Do not, however, set w so large that the data, when typed, exceeds the right margin setting. If the right margin is exceeded, the program will be stopped at the memory location following the PRINT instruction (explained later) that exceeded the right margin setting and the STATUS lamp will be lit.
When a w instruction is given, the value is automatically stored in the calculator. A w instruction, once given, need not be given again in a program and may be used any number of times when succeeding FMT, 2, PRINT (explained later) instruction sequences.
The value selected for w is lost when the calculator is switched OFF. When the calculator is switched ON
a w of twenty is automatically stored.
The d part of the w.d component allows the user to control the mode of the calculator display from a program and, therefore, the notation (fixed or floating point) of the typed data.
In this instruction sequence, when the data in the calculator's X-register is typed, it will be typed as it is displayed in the X-register. In order to provide the capability of specifying the notation (fixed or floating point) of the typed data, this instruction sequence is capable of con-trolling the format of the calculator display. This is provided by the d part of the w.d component.
1058?;~6'7 The following table shows the relationship between d and the notation of the typed data.
d Typed Notation 0 declmal part and decimal point are suppressed 1 one digit to the right of the decimal point is typed.
2 two digits to the right of the decimal point are typed.
.
.
9 nine digits to the right of the decimal point are typed.
decimal point) the data will be typed in floating point notation.
A data point in the calculator's x-register will always contain a decimal point; however, if the data point is displayed with no digits to the right of the decimal point (e.g., 10.), the data, when typed, will be typed without the decimal point.
The d part of the w.d component is most easily thought of as a programmable FIX ( ) - FLOAT instruction. It has the same effect as those keys on the calculator display. Also, all of the rules of operation concerning overflow and under-flow applicable to the FIX ( ) and FLOAT keys apply equally to d.
In the case of overflow, if the calculator display contains nine digits to the right of the decimal point and a data point containing two digits to the left of the decimal point is entered in the x-register, the register will overflow and display the data point in floating point notation.
Exactly the same situation can occur with d. If you specify a d of nine and the data point in the x-register overflows, then the data point will be typed in floating point notation.
There is a potential problem in the interaction between w and d that the operator should be aware of. For example, assume that w has been set for two and d has been specified as zero. If the data point in the x-register over-flows and an attempt is made to type the data point, the field width of two will not be large enough to contain the data point in floating notation and two asterisks will be typed.
~, :
l~J5~7~7 Whereas an overflow condition which exceeds the field width will cause asterisks to be typed, an underflow condition will not. In an underflow condition, the ~ata point in the x-register has become so small that the d specification does not allow the data point to be dis-played with enough accuracy. Like the overflow condition, the data point is, in essence, not typed. For example, assume the yalue of the data point in the x-register were 1.23 x 10 1 and d were specified as zero. When the data point is typed it will be typed as zero.
The operator should be aware of the range in which the typed data will lie and set the w.d specification so that neither underflow or overflow occur. If the range is likely to be very great, the field width and d should be set so that the data point is typed in floating point notation (16 . . ).
Because d is essentially stored by changing the format of the calculator display, the value for d remains unchanged until the display format is changed. This can be done by giving another d instruction or by manually pressing the FLOAT or FIX ( ) keys. If, for example, you specify a d of two, stop the program and press FLOAT, then, when the data is typed it will be typed in floating point notation.
The PRINT component of this instruction sequence causes the typewriter to type the data contained in the calculator's x-register. The data will be typed in the location and notation specified by the last w.d component given. -When a FMT, 2, w.d, PRINT instruction sequence has been executed, the instruction sequence will automatically be terminated and the typewriter address reset. This means that if ybu wished to type the same data twice, the entire instruction sequence (less w.d, explained later) must be given again.
In order to provide maximum programming flexibility, certain component parts of the FMT, 2, w.d, PRINT instruction sequence may, optionally, be omitted from the instruction sequence. The following variations of the sequence are allowable:
FMT, 2, w.d, PRINT - Type the data in the x-register in a specified location and notation.
FMT, 2, w.d - Establish a field width (w) and notation (d) which will be used later in the program by one or more FMT, 2, PRINT
instruction sequences.
FMT, 2, PRINT - Type the data in the x-register in a location and notation stored earlier in the program.
The FMT, 2, w.d instruction sequence allows you to save program steps by specifying w and d only once in a program and reusing them any number of times with succeeding FMT, 2, PRINT instruction sequences.
The PRINT instruction in these sequences will automatic-ally terminate the instruction sequence and reset the typewriter address. In the case of the FMT, 2, w.d instruction sequence, the instruction sequence is not terminated; however, the next calculator instruction, in addition to performing its normal function will terminate the sequence.
The use of the FMT, 2, w.d, PRINT instruction sequence is illustrated by the following example:
A piece of paper 8-1/2" or wider is placed in the typewriter and the margin stops, paper guide and carriage set as shown below:
Left Margin Right Margin ~---Stop m -~stop O O O O . . . O O
Paper L__JGuide 1 2 3 4 Paper Bail's Q 0 0 0 . . . Graduated Typing Scale f~ O O O O . . .
Card Holder The number one thousand is keyed into the calculator's x-register, and floating point display is selected.
DISPLAY: 1.000000000 03 X
PRESS: FMT, 2 1 3 2 DISPLAY: 1000.00 ~ X
The w (13) was stored and the d (2) changed the displày.
The instruction sequence is not terminated, however, and a PRINT instruction may be added:
PRESS: PRINT
TYPE-OUT:
w = 13, d = 2 ~ ~ ~ 2 3 4 O Of~ O O O . . .
. , ~ , , ~058767 The red pointer mark on the CARD HOLDER points to thirteen on the PAPER BAIL'S graduated typing scale, not fourteen as one might expect. That is because the scale starts at zero, not one.
The PRINT instruction has terminated the instruction sequence. To type the data again will require another instruction sequence:
PRESS: FMT, 2, PRINT
TYPE-OUT:
w = 13, d = 2 1000.00 1000.00 0 0 0 6 0 0 . . .
The FMT, 2, PRINT instruction sequence has used the w and d stored in the preceding FMT, 2, w.d instruction sequence.
The type out is right-justified on the twenty-sixth space -as the left side of the field is defined by the location of the carriage when the data is typed.
It should be noted that a FMT, 2, w.d PRINT
instruction sequence does not contain the capability of a carriage return/line feed instruction. This capability does exist, however, as explained below.
A FMT, 2, w.d instruction sequence is terminated by the next calculator instruction given. In addition to terminating the FMT, 2, w.d instruction sequence, the instruction will be performed in its normal manner.
PRESS: FMT, 2 DISPLAY: 1.000000000 03 _ X, Y
This instruction sequence has specified floating point notation; however, this display can be manually over-ridden with the FIX ( ) - FLOAT keys:
PRESS: FIX ( ) 2 DISPLAY: 1000.00 _ X
~05~76~
PRESS: FMT, 2, and PRINT
TYPE-OUT: w = 13, d = 2 1000.00 1000.00 1000.00~
O O O O~0 . . .
f~l Data in the calculator's x-register can be typed without a decimal point. This is done by specifying a d of zero:
PRESS: FMT, 2, 4, ., 0, and PRINT
TYPE-OUT: w = 4, d = 0 ,. _ .. ... .... ., . ~ . .~
:' 1000o00 1000.00 1000.00100 O O O O 0~
The data point just typed was typed in a field width of four, just large enough to contain the data. Spaces between this data type-out and the one previously typed could have been provided by specifying a larger field width, w.
Asterisks will be typed across a field that is not large enough to contain the data.
PRESS: FMT, 2, 3, ., 0, and PRINT
TYPE-OUT: w = 3, d = 0 ~~~~~~ ïooo . oo looo . oo looo . oolooo***
0 0 0 0 0 6 0 . -~05~767 The FMT, 2, FMT, MESSAGE, FMT instruction sequence allows labels and headings to be typed for data. With this instruction sequence, the user can control both characters on each typewriter key and control all typewriter functions directly from the calculator, either by stored program step or manually, from the calculator keyboard.
The instruction sequence consists of the following component parts:
FMT 2 - Typewriter address FMT - Established the TYPING
MESSAGES instruction sequence.
MESSAGE - Your label or heading FMT - Terminates the instruction sequence.
Other calculator instructions which terminate this instruc-tion sequence are:
LOAD STOp * STEP FLOAT
RUN KEYLOG RECORD END *
STEP FIX ( ) PRGM LIST
* Programmable instructions.
In the M~SSAGE component of this instruction sequence, one programmable calculator instruction will control one typewriter key. Which character on the typewriter key will be typed or which typewriter function will be performed, will depend on the mode of the calculator keyboard when the instruction is given. In the MESSAGE component of this sequence, the calculator can be in one of two modes, unshifted or shifted.
When the instructions FMT, 2, FMT are given, the calculator keyboard will automatically be in the unshifted mode. In this mode of operation, the calculator instructions and the typewriter character typed or function performed have the correspondence shown by the characters and symbols included within the keys of Figure 12.
-~OS8767 l`l~e unsh,~ted calculatc~P keyboard carl control the type~riter's numbers and capital alphabet. In addition, the fuKctior,s TAB
CLEAR, TAB, CR/LF (Carriage return/Line feed), SPACE, BLACK
RIBBON may also be performed. The FMT instruction and the blank keys shown in the diagram will terminate the instruction sequence. Three instructions (PRINT, TAB and SHIFT) avail-able on the unshifted calculator keyboard require special mention.
A PRINT instruction placed in a MESSAGE will cause the data in the calculator's x-register to be typed. The data will be typed in the location and notation specified by the last w.d given. A w.d may not be placed in a MESSAGE, however, they are stored when they are given and automatically recalled and used with a PRINT instruction placed in a MESSAGE.
A TYPING MESSAGES instruction sequence will not affect the contents of the calculator's display registers. Therefore, data can be placed in the x-register and typed with a PRINT
instruction placed in this instruction sequence.
Giving a TAB instruction will cause the typewriter carriage to move either to the next tab set or to the right margin setting. If the carriage is less than two spaces from a tab setting and a TAB instruction is given, then that tab setting will be ignored by the typewriter and the carriage will move to the next tab setting or right margin setting.
The SHIFT instruction allows one to change the mode of the calculator's keyboard. If the calculator keyboard were un-shifted and a SHIFT instruction was given, then the calcula-tor keyboard would be in the shifted mode. In the shifted mode of operation, the calculator instructions and the typewriter character typed or the function performed have the correspondence shown by the characters and symbols printed below the keys of Figure 12.
The shifted calculator keyboard can control the typewriter's small let~r alp~abet and the symbols above the numbers and J _. ''- ';':
in addition, the functions TAS CLEAR ALL (CLEAR ALL TABS), TAB SET, CR/LF, SPACE, BACK SPACE. The FMT instruction and the blank keys shown in the diagram will terminate the in-struction sequence. The operation of the PRINT and SHIFT
instructions on the shifted calculator keyboard are the same as on the unshifted keyboard. The two instructions that require special mention on the shifted calculator key-board are the CR/LF instruction and the RED RIBBON instruction.
The CR/LF instruction will cause the typewriter to perform a carriage return and line feed. In addition, this instruction will cause the calculator keyboard to become unshifted.
A RED RIBBON instruction will cause the typewriter to type in red. Once red ribbon is selected, only two things can reset the red ribbon, they are, giving a BLACK RIBBON instruction (available on the calculator's unshifted keyboard) or switching the calculator interface OFF. Terminating the TYPING MESSAGES
instruction sequence will not reset a RED RIBBON instruction.
THE MESSAGE component of a TYPING MESSAGES instruction sequence may be any number of program steps (limited only by the size of the calculator memory). However, a typewritten line must not be allowed to exceed the right margin setting. If the right margin setting is exceeded, the program will stop at the second memory location following the instruction that exceeded the right margin setting and the STATUS lamp will light.
(It should be noted that if the right margin setting is exceeded in a typing data instruction sequence, the program will stop a~ the memory location imme-diately following the PRINT instruction that exceeded the right margin setting.) ~058~;7 Because of the two things an operator must keep track of, an example of TYPING MESSAGES is potentially confusing. For example, if the instruction "A" were placed in a MESSAGE, the operator could not easily predict whether the character typed would be "A" or "a", further, the color would be unknown.
Which character and which color would, of course, depend on whether the calculator keyboard were shifted or unshifted and the status of the ribbon color. The following format makes keeping track of these two things easier and, therefore, helps clarify the examples.
STEP _ 3R ;U _ PROG. INST. KEY CODE X
o tE __ 3 _ _ _ _ = =
G _ _ _ =--_ = = =
1 _ _ _ _ __ ..._ 3 _ _ _ _ = ==~ _ ~
The format is essentially the standard programming pad format with five additional columns: B, R, S, U and PROG INST.
Mark the B and R column so that you will know the status of the ribbon color, red or black. In the S and U columns, you can mark the mode of the calculator keyboard when the instruction is given - S ~or shifted, U for unshifted. In the PROG INST column you can record the typewriter instruc-tion that, considering the mode of the calculator keyboard, corresponds to the instruction in the KEY column. In the following examples, the PROG INST column will not be used except for typewriter instruction sequences.
.
:-' .
1058~7 To type messages the typewriter's LEFT MARGIN STOP and PAPER
GUIDE are set to zero. The typewriter carriage is positioned against the LEFT MARGI~ STOP. A piece of paper 8-l/2" or wider is placed in the typewriter and the RIGHT MARGI~ STOP
set to seventy. The number 123.45 is keyed into the calcu-lator's x-register and a display mode of FIX ( ), 3 selected.
In this example, the MESSAGE "The value is" wiIl be typed followed by the data just entered into the calculator's x-register. This is accomplished by keying in the following lnstructions:
STEP _ 3R iU _PROG. INST. KEY CODE X Y Z
0000 _ _ _ _F MT F MT 42 _ 123 .450 _ 2 _ _ _ _ 2 2 02 3 _ _ _ _ = 21 ,. . ._ _ 6 _ _ _ __ FMT FMT 02 123 45 7 ~ f MT F MT 42 ..
8 _ _ BLK Rl8 S/R 77 .. .
9 _ _ CR/Lf CLR 20 ..
0010 _ _ T XTO 23 2 _ _SH I FT UP 27 _ 3 _ e E 60 ..
4 _ _SPAC E CNT 47 .
6 _ _ v I NT 62 ..
. s _ _ e 1 /X 17 0020 _ _ SPACE CNT 65 2 _ _ s YTO 40 _ .PRINT PNT 45 _ _ FMT FMT 42 . _ ____ TYPE-OUT: The value is 123.45 Steps 0000-0004 The ~ m w.d instruction sequence established a field of seven with two digits to the right of the decimal point.
The data point (123.45) requires a field width of six;
setting the width to seven will ensure that there will be a space between the data and the last character typed.
Steps 0008-0009 The BLK RIBBON instruction in step 0008 will ensure that the MESSAGE in this example is typed in black. Prior to that time the status of the ribbon color was unknown; therefore, neither the B or R column was filled in.
The CR/LF instruction in step 0009 will ensure the MESSAGE
is typed against the LEFT MARGIN STOP.
The next example performs the same type of operation with the instruction sequences used in a slightly different manner.
In this example the TYPING MESSAGES instruction sequence will be used to type the message "123.45 squared =" in black and then set the red ribbon. Next a TYPING DATA instruction sequence is used to set a field width of ten with four digits to the right of the decimal point, and type the data contained in the x-register.
If the number 123.45 is not still in the x-register from the last example, it is entered into the x-register and the fol-lowing calculator keys are depressed in the order given:
STEP BRSUPROG. INSl. KFY COC~E . ....... .
0000 _ _ _ UP 27 123.45 123.45 l _ _ _ _ X 36 123.45 15239.9025 2 _ _ DN 25 15239.9025 , 3 _ _ FMTFMT 42 " "
4 _ _ FMTFMT 42 6 _ _CR/LF CLR 20 _ " "
00109 _ _ 2 -4 3~3 _~ _ - =
2 _ _ 5 05 " __ 3 _ SPACECNT 47 4 _ l lSH I FT UP 27 "
6 ~ I ~ o YTC 17 _ ..
8 _ ~ F a a 62 0020 l _ F e E 60 _ _ 3 I _ ~ SPACE CNT 47 _ _ _ .
4 _ RED RIBSIR 77 " "
5 _ _ FMT FMT 42 _ 76 ~ - F2MT FMT 02 - 8 _ _ - 01 ,;- ..
9 O O 00 " " ..
0030 _ _ 4 _ 21 . ' 3 _ _PRINTPNT 45 . ..
_, _ _ . . . _ 1()58767 In the last example, a BLK RIBBON instruction was given. Since then, the ribbon color has not been changed. Therefore, in step 0003, the B column can be filled in even though a BLK RIBBON instruction was not given.
At step 0024 a RED RIBBON instruction is given so that the data in the x-register will be typed in red. Remember, the red ribbon can be reset to black ribbon by two things only, giving a BLK RIBBON instruction or turning the typewriter interface OFF.
TYPE-OUT: 123.45 Squared = 15239.9025 It may be noticed that there is no space in the type-out between the "="
and the data. That can be corrected in two ways:
1. Setting the w specification to eleven.
2. Inserting a SPACE instruction immediately following the "=" instruction.
The instruction sequence FMT, 2, LIST allows the user to list a programcontained in the calculator memory. The listing will be typed in a column format with each line consisting of the memory location, the mnemonic of the instruction stored in the location and the key code of the instruction~
The listing will begin at the location of the program counter when this instruction sequence is given and will continue until either an END in-struction is given or STOP on the calculator keyboard is pressed.
(It should be noted that if the ribbon color status is red, the listing will be typed in red.) This may be illustrated by entering a typewriter exerciser program intothe memory of the calculator and then:
PRESS: END FMT 2 LIST
TYPE-OUT:
0001-- *---36 003~-S/R---77 003~-END---46 KEY CODES AND MNEMONICS
All of the keys of the keyboard input unit and their associated octal keycodes and mnemonics are listed in Table D below. Every key has only one keycode and only one mnemonic (if it has a mnemonic), regardless of how many different functions it may be used to perform. The keycodes for the FLOAT, FIX ( ), RUN, PRGM, KEY LOG, LIST, LOAD, RECORD, BACK STEP, and STEP PRGM keys are applied to the CPU in seven-bit binary form. Since these keycodes are used only to control the mode of the calculator, are not programmable, and are never printed out by the output printer unit, they have no associated mnemonic. All of the remaining keycodes are applied to the CPU in six-bit binary form, are pro-grammable, and have a mnemonic that may be printed out by the output printer unit.
TABLE D
KEY K~Y
KEY CODEMNEMONIC KEY CODE MNEMONIC
01 1 ~p~ 45 PNT
4 04 4 IF x=y 50 X=Y
6 06 6 IF x<y 52 X<~
7 07 7 IF x~y 53 X>Y
x 12 XSQ Tl 56 ~t a 13 a PAUSE 57 PSE
b 14 b E 60 E
l/x 17 l/X D 63 D
CLEAR 20 CLR int x 64 INT
21 . I 65 ROLL t 22 RUP B 66 B
x-)() 23 XTO x~() 67 XFR
y; () 24 YE M 70 ~ ~-t 27 UP N 73 N
x.,y 30 XEY H 74 H
I~DIRECT 31 IND J 75 J
CHG SIGN 32 CHS ~ 76 + 33 ~ III 77 S/R
- 34 - RECOR~ 102 X 36 x LIST 104 CLEAR x 37 CLX KEY LOG 105 Y 3() 40 YTO PRGM 106 FMT 42F~aT FIX () 110 ~0587~;7 PROC~S5ING KæYCODES
The manner in which keycodes entered into the CPU ~rom the keyboard input unit or from the program storage section of the memory unit are processed is shown and described in the keycode proces~ing ~low chart o~ Figure 13. Once the calculator is turned on, it operates in the display routine until a key is depressed. If a FLOAT, FI~ (), RUN, PRG~, KEY
LOG, LIST, LOAD, RECORD, BACK STEP, or STEP PRG~ key (each having a seven-bit keycode) is depressed, the calculator operates in a director routine to determine which of these keys ~as depressed and thereupon selects the routine for per-~ormtng the function required by that ke~. Upon completion o~ the selected routine, the calculator reverts to operation in the display routine.
I~ any other key (each haYing a six-bit Xeycode~, ex-cept the CONTINUE key, is depressed and the PRGM key has not ~een depressed or has been foilowed by the RUN key, the cal-culator operates in the interpreter routlne to determine which si~-bit keycode it has received and to select the ap-propriate routine ~or per~orming the function required by that six-bit keycode. Upon completion o~ the selected routine the calculator reverts to operation in the display routine.
If the CONTINUE key is depressed and the PRG~ key has not been depressed or has been ~ollowed by the RUN key,.the calculator operates in a ~etch routine to sequentially fetch ~eycodes, as designated by the user program counter, ~rom the program storage section o~ the R~. Eac~ fetched keycode is interpreted and~the routine for-performing the ~unction re-quired thereb~ selected in the same manner as i~ the ~etched ~eycode had been received from the keyboard input unit.
~, .
lOS8~67 ~owever, upon completion o~ the selected routine the calculator reverts to the fetch routine unless the fetched keycode was a STUP, END, or PA~SE (if the execution of the PAUSE is im-mediately followed by depression of a key), in which cases the calculator reverts to operation in the display routine.
If any key having a six-bit keycode is depressed and the PRGM key has been depressed and has not been followed by the RUN key, the calculator operates in a store routine to store the six-bit keycode received from the keyboard input un~t as a program step in the progra~ storage section o~
the R~M. Upon completion of this storage operation the cal-culator reverts to operation in the display routine If the KEY LO& key has been depressed and has not been followed by the RUN key or the PRG~ key, the calculator also prints out each six-bit keycode received irom the keyboard .input unit in any of the above-mentioned cases.
The display routi~e, the director routine, the inter-preter routine, the routines for performing the various functions required by the six-b~t and seven-bît Xeycodes, and other routines used by the calculator are shown and de-scribed in Figures 14-135.
~ . .
, lQS8767 BASIC INSTRUCTION SET
Every routine and subroutine of the calculator comprises a sequence of one or more of 71 basic sixteen-bit instructions listed below. These 71 instructions are all implemented serially by the micro-processor in a time period which varies according to the specific instruction, to whether or not it is indirect, and to whether or not the skip condition has been met.
Upon completion of the execution o~ each instruction, the program counter (P register) has been incremented by one except for instructions JMP, JSM, and the skip instructions in which the skip condition has been met. The M-register is left with contents identical to the P-register. The contents of the addressed memory location and the A and B registers are left unchanged unless specified otherwise.
Memory Reference Group The 14 memory reference instructions refer to a specific address in memory determined by the address-field <mD, by the ZERO/CURRENT
page bit, and by the DIRECT/INDIRECT bit. Page addressing ~nd indirect addressing are both described in detail in the reference manuals for the Hewlett-Packard Model 2116 computer (hereinafter referred to as the HP 2116).
The address field <m> is a 10 bit field consisting of bits O
through 9. The ZERO/CURRENT page bit is bit 10 and the DI~ECT/INDIRECT bit is bit 15, except for reference to the A
or B register in which case bit 8 becomes the DIRECT/I~DIRECT
bit. An indirect reference is denoted by a <,I> following the address <m~.
REGISTER REFERENCE OF A OR B REGISTER: If the location <A> or <B> is used in place of <m> for any memory reference instruc~ion, the instruction will treat the contents of A or B exactly as it would the contents of location <m>. See the note below on the special restriction for direct register reference of A or B.
ADA m,I Add to A. The contents of the addressed memory location m are added (binary add) to contents of the A register, and the sum remains in the A register. If carry occurs from bit 15, the E register is loaded with 0001, otherwise E is left unchanged.
ADB m,I Add to B. Otherwise idelltical to ADA.
J, . ~
' ' ''I
-~LOS~t7f~i7 Memory Reference Group (continued) CPA m,I Compare to A and skip if unequal. The contents of the addressed memory location are compared with the contents of the A register. If the two 16-bit words are different, the next instruction is skipped; that is, the P and M
registers are advanced by two instead of one. Otherwise, the next instruction will be executed in normal sequence.
CPB m,I Compare to B and skip is unequal. Otherwise identical to CPA.
LDA m,I Load into A. The A register is loaded with the contents of the addressed memory location.
LDB mJI Load into B. The B register is loaded with the contents of the addressed memory location.
STA m,I Store A. The contents of the A register are stored into the addressed memory location. The previous contents of the addressed memory location are lost.
STB m,I Store B. Otherwise identical to STA.
IOR m,I "Inclusive OR" to A. The contents of the addressed location are ~combined with the contents of the A register as an "INCLUSIVE OR" logic operation.
ISZ m,I Incxement and Skip if Zero. The ISZ instruction adds ONE to the contents of the addressed memory location. If the result of this operation is ZERO, the next instruction is skipped; that is, the P and M registers are advanced by TWO instead of ONE. The incremental value is written back into the addressed memory location. Use of ISZ with the A or 8 register is limited to indirect reference; see foot-note on restrictions.
AND m,I Logical "AND" to A. The contents of the addressed location are combined with the contents of the A register as an "AND" logic operation.
DSZ m,I Decrement and Skip if Zero. The DSZ instruction subtracts ONE from the contents of the addressed memory location. If the result of this operation is zero, the next instruction is skipped. The decremented value is written back into the addressed memory location. Use of DSZ with the A or B register is limited to indirect reference; see footnote on restrictions.
1os8767 JSM m,I Jump to Subroutine. The JSM instruction permits jumping to a subroutine in either ROM or R/W memory. The contents of the P register is stored at the address contained in location 1777 (stack pointer). The contents of the stack pointer is incremented by one, and both M
and P are loaded with the referenced memory location.
JMP m,I Jump. This instruction transfers control to the contents of the addressed location. That is, the referenced memory location is loaded into both M and P registers, effecting a jump to that location.
Shift-Rotate Group The eight shift-rotate instructions all contain a 4 bit variable shift field <n> which permits a shift of one through 16 bits;
that is, 1 ~ n < 16. If <n> is omitted, the shift will be treated as a one bit shift. The shift code appearing in bits 8,7,6,5 is the binary code for n-l, except for SAL a~d SBL, in which cases the complementary code for n-l is used.
AAR n Arithmetic right shift of A. The A register is shifted right n places with the sign bit (bit 15) filling all vacated bit positions. That is, the n~l most significant bits become equal to the sign bit.
ABR n Arithmetic right shift of B. Otherwise identical to AAR.
SAR n Shift A right. The A register is shifted right n places with all vacated bit positions cleared. That is, the n most significant bits become equal to zero.
SBR n Shift B right. O~herwise identical to SAR.
SAL n Shift A left. The A register is shifted left n places with the n least significant bits equal to zero.
SBL n Shift B left. Otherwise identical to SAL.
RAR n Rotate A right. The A register is rotated right n places, wlth bit O rotated around to bit 15.
RBR n Rotate B right. Otherwise identical to RAR.
-~058767 Alter-Skip Group The sixteen alter-skip instructions all contain a 5-bit variable skip field ~n> which, upon meeting the skip condition, permits a relative branch to any one of 32 locations. Bits 9,8,7,6,5 are coded for positive or negative relative branching in which the number <n> is the number to be added to the current address, (skip in forward direction), and the number <-n> is the number to be subtracted from the current address, (skip in negative direction). If <n> is omitted, it will be inter-preted as a ONE.
<n>=O CODE=OOOOO REPEAT SAME INSTRUCTION
<n>=l CODE=OOOOl DO NEXT INSTRUCTION
<n>=2 CODE=OOO10 SKIP ONE INSTRUCTION
<n>=15 CODE=Ollll ADD 15 TO ADDRESS
<n>=-l CODE=lllll DO PREVIOUS INSTRUCTION
<n>=-16 CODE=10000 SUBTRACT 16 FROM ADDRESS
<n>=nothing CODE=OOOOl DO NEXT INSTRUCTION
The alter bits consist of bits 10 and bits 4. The letter ~5>
following the instruction places a ONE in bit 10 which causes the tested bit to be set after the test. Similarly the letter <~j will place a ONE in bit 4 to clear the test bit. If both a set and clear bit are given, the set will take precedence.
Alter bits do not apply to SZA, SZB, SIA, and SIB.
SZA n Skip if A zero. If all 16 bits of the A register are zero, skip to location defined by n.
SZB n Skip if B zero. Otherwise identical to SZA.
RZA n Skip if A not zero. This is a "Reverse Sense" skip of SZA.
RZB n Skip if B not zero. Otherwise identical to RZA.
SIA n Skip if A zero; then increment A. The A register is tested for zero, then incremented by one. If all 16 bits of A were zero before incrementing, skip to location defined by n.
SIB n Skip if B zero; then increment B. Otherwise identical to SIA.
RIA n Skip if A not zero; then increment A. This is a "Reverse Sense" skip of SIA.
RIB n Skip if B not zero; then increment B. Otherwise identical to RIA.
SLA n,S/C Skip if Least Significant bit of ~ is zero. If the least significant bit (bit O) of the A register is zero, skip to location defined by n. If either S or C is present, the test bit is altered accordingly after test.
~058767 Alter-Skip Group (continued) SLB n,S/C Skip if Least Significant bit of B is zero. Other-wise identical to SLA.
SAM n,S/C Skip if A is Minus. If the sign bit (bit 15) o~ the A register is a ONE, skip to location defined by n. I~
either S or C is present, bit 1~ is altered after the test.
SBM n,S/C Skip if B is Minus. Otherwise identical to SA~.
SAP n,S/C Skip if A is Positive. If the sign bit (bit 15) of the A register is a ZERO, skip to location defined by n.
If either S or C is present, bit 15 is altered after the test.
SBP n,S/C Skip if B is Positive. Otherwise identical to SAP.
SES n,S/C Skip if Least Significant bit of E is Set. If bit O of the E register is a ONE, skip to location defined by n, If either S or C is present, the entire E register is set or cleared respectively.
SEC n,S/C Skip if Least Significant bit of E is Clear. If bit O of the E register is a ZERO, skip to location defined by n. If either S or C is present, the entire E register is set or cleared respectively.
Complement-Execute-DMA Group.
.
These seven instructions include complement operations and several special-purpose instructions chosen to speed up printing and extended memory operations.
CMA Complement A. The A register is replaced by its One's complement.
CMB Complement B. The B register is replaced by its One's complement.
TCA Twos Complement A. The A register is replaced by its One's Complement and incremented by one.
TCB Two's complement B. The B register is replaced by its One's Complement and incremented by one.
EXA Execute A. The contents of the A register are treated as the current instruction, and executed in the normal manner.
The A register is left unchanged unless the instruction code causes A to be altered.
EXB Execute B. Otherwise identical to EXA.
DMA Direct Memory Access. The DMA control in Extended Memory is enabled by setting the indirect bit in M and giving a WTM
instruction. The next ROM clock trans~ers A~M and the following two cycles transfer B~M. ROM clock then remains inhibited until released by DMA control.
~058767 Note: Special Restriction for Direct Register Reference of A or B
For the five register reference instructions which involve a write operation during execution, a register reference to A or B must be restricted to an INDIRECT reference. These instructions are STA, STB, ISZ, DSZ, and JSM. A DIRECT register reference to A or B with these instructions may result in program modification.
(This is different from the hp 2116 in which a memory reference to the A or B register is treated as a reference to locations 0 or 1 respectively.) A reference to location 0 or 1 will actually refer to locations 0 or 1 in Read Only Memory.
Input/Output Group (IOG) The eleven IOG instructions, when given with a select code, are used for the purpose of checking flags, setting or clearing flag and control flip-flops, and transferring data between the A/B
registers and the I/O register.
TF <SC> Set the flag. Set the flag flip-flop of the channel indicated by select code <SC>.
LF <SC> Clear the flag flip-flop of the channel indicated by select code <SC>.
FC <SC> Skip if flag clear. If the flag flip-flop is clear in the channel indicated by <SC>, skip the next instruction.
FS <SC> H/C Skip if flag set. If the flag flip-flop is set in the channel indicated by <SC>, skip the next instruction. H/C indicates if the flag flip-flop should be held or cleared after executing SFS.
LC <SC> H/C Clear control. Clear the control flip-flop in the channel indicated by <SC>. H/C indicates if the flag flip-flop should be held or cleared after executing CLC.
TC CSC> H/C Set Control. Set the control flip-flop in the channel indicated by <SC>. H/C indicates if the flag flip-flop should be held or cleared after executing STC.
T* <SC> H/C Output A or B. Sixteen bits from the A/B register are output to the I/O register. H/C allows holding or clearing the flag flop after execution of OT*.
The different select codes allow different functions to take place after loading the I/O register.
SC=00 Data from the A or B register is output eight bits at a time for each OT*
instruction given. The A or B register is rotated right eight bits.
~ .
~(~S87f~7 Input-Output Group (IOG), continued SC=Ol The I/O register is loaded with 16 bits from the A/B registers.
SC=02 Data from the A/B register is output one bit at a time for each OT* instruction for the purpose of giving data to the Magnetic Card Reader. The I/O register is unchanged.
SC=04 The I/O register is loaded with 16 bits from the A/B register and the control flip flop for the printer is then set.
SC=08 The I/O register is loaded with 16 bits from the A/B register and the control flip flop for the display is then set.
SC=16 The I/O register is loaded with 16 bits from the A/B register and then data in the I/O register is transferred to the switch latches.
LI* <01> H/C Load into A or B. Load 16 bits of data into the A/B register from the I/O register. H/C allows holding or clearing the flag flop after Ll* has " been executed.
LI* <00> The least significant 8 bits of the I/O register -are loaded into the most significant locations in the A or B register.
MI* <01> H/C Merge into A or B. Merge 16 bits of data into the A/B register from the I/O register by "inclusive or". H/C allows holding or clearing the flag flop after Ml* has been executed.
MI* <00> The least significant 8 bits of the I/O register are combined by inclusive OR with the least significant 8 bits of the A or B register, and rotated to the most significant bit locations of the A or B register.
7'. : .
. ~ -lOS~7ti7 MAC Instruction Group A total of 16 MAC instruc*ions are available for operation (a) with the whole floating-point data (like transfer, shifts, etc), or (b) with two floating-point data words to speed up digit and word 1QOPS in arithmetic routines.
NOTE: <Ao 3> means: contents of A-register bit O to 3 AR 1 is a mnemonix for arithmetic pseudo-register located in R/W memory on addresses 1744 to 1747 (octal) AR 2 is a mnemonix for arithmetic pseudo-register located in R/W memory on addresses 1754 to 1757 (octal) D. means: mantissas i-th decimal digit;
most significant digit is Dl least significant digit is D12 decimal point is located between Dl and D2 Every operation with mantissa means BCD-coded decimal operation RET Return 16-bit-number stored at highest occupied address in stack is transferred to P- and M-registers. Stack pointer (=next free address in stack) is decremented by one.
<A>, <B>, <E> unchanged.
MOV Move overilow The contents of E-register is transferred to A . Rest of A-register and E-register are filled by zeros. 3 <B> unchanged.
CLR Clear a floating-point data register in R/W memory on location <A>
ZERO~<A>, <A>+l, <A>+2, <A>+3 ~A>,>B>,<E> unchanged XFR Floating-point data transfer in R/W memory ~rom location <A> to location <B>.
Routine starts with exponent word transfer.
Data on location <A> is unchanged.
<E> unchanged.
~ .-. . .
lOS87~;7 MRX ARl mantissa is shifted to right n-times. Exponent word remains unchanged.
<Bo 3> = n (binary coded) 1st shift: <Ao_3>~Dl; Di~Di+l; D12 is jth shift: 4 ~ Dl; Di~Di+l; D12 is nth shi~t: ~ ~ Dl; Di~Di+l; D12 ~ Ao-3 4 ~ E, A4_15 each shi~t: <Bo_3> ~ 1 ~ Bo_3 <B4_15> unchanged MRY AR2 mantissa is shi~ted to right n-tîmes.
Otherwise identical to MRX
MLS AR2 mantissa is shifted to left once.
Exponent word remains unchanged.
{~ ~ D12; Di ~ Di_l; Dl 0-3 <B> unchanged DRS M 1 mantissa is shifted to right once Exponent word remains unchanged 4 ~ Dl; Di ~ Di+l; D12 0-3 ZERO ~ E and A4_15 <B> unchanged DL~ ARl mantissa is shifted to left once. Exponent word remains unchanged.
<Ao 3> ~ D12; Di ' Di_l; Dl 0 3 ~ ~ E, A4 15 <B> unchanged FXA Fixed-point addition Mantissas in pseudo-registers AR2 and ARl are added together and result is placed into AR2. Both exponent words remain unchanged. When overflow occurs "OOOl"
is set into E-reg., in opposite case <E> will be zero.
<AR2> + <ARl~ + DC ~ AR2 DC = ~ if <E> was OOOO before routine execution DC - 1 if <E> was 1111 before routine execution ~
<B>, <ARl> unchanged ;
'~ " : .. ' .
lOS8767 FMP Fast multiply Mantissas in pseudo-registers AR2 and ARl are added together <Bo 3>-times and result is placed into A~2.
Total decimal over~low is placed to Ao 3. Both ex-ponent words remain unchanged.
<AR2> + <ARl> * ~Bo 3>+DC ~ AR2 DC = O 1f <E> was OOOO before routine execution DC = 1 if <E> was 1111 before routine execution ZERO ~ E, A4_15 <ARl> unchanged FDV Fast divide Mantissas in pseudo-registers AR2 and ARl are added together so many times until ~irst decimal overflow occurs. Result is placed into A~2. Both exponent words remain unchanged. Each addition without over-flow causes +l increment of <B>.
1st addition: cAR2> + <ARl> + DC ~ AR2 DC = O .if <E> was OOOO before routine execution DC = 1 if <E> was 1111 before routine execution next additions: <AR2> ~ <ARl> ~ AR2 ZERO ~ E
<ARl> unchanged CMX 10's complement of ARl mantissa is placed bac~ to ARl, and ZERO is set into E-register. Exponent word remains unchanged <B> unchanged CMY lO's complement o~ AR2 mantissa.
Otherwise identical to CMY
MDI Mantissa decimal increment.
Mantissa on location <A> is incremented by decimal ONE
on D12 level, result is placed back into the same location, and zero is set into E-reg, Exponent word is unchanged.
When overflow occurs, result mantissa will be l,OOO OOOO OOOO (dec) and OOOl (bin) will be set into E-reg.
<B> unchanged.
N~M Normalization Mantissa in pseudo-register AR2 is rotated to the le~t to get Dl f O. Number of these 4-bit left shifts is stored in Bo_3 in`binary form ~<B4_15>=O) when~BO 3>= 0,1,2,. . . , 11 (dec) ~ <E> = OOOO
When<BO 3>= 12 (dec) ~mantissa is zero, and <E>=OOOl E~ponent word remains unchanged <A> unchanged.
.
~o58~67 The binary codes of all of the above instructions are listed in the following coding table, where * implies the A or B register, D/I means direct/indirect, A/B means A register/B register, Z/C means zero page (base page) current page, H/S means hold test bit/set test bit, and H/C means hold test bit/clear tPst bit. D/I, A/B, Z/C, H/S, and H/C are all coded as 0/1.
CODING TABLE
, , _ MEMORY -O~ AD* D/I O O O A/B Z/C + MEMORY ADDRESS
REFERENCE -1__-- CP* D/I O O 1 A/B Z/C
GROUP -2---- LD* D/I O 1 0 A/B Z/C
-3---- ST* D/I O 1 1 A/B Z/C
, .. _ SHIFT- 07---0 A*R O 1 1 1 A/B-- + SHIFT ~ - O O O O
ROTATE CODE
GROUP 07---2 S*R O 1 1 1 A/B-- - O O 1 0 07---4 S*L O 1 1 1 A/B-- - O 1 0 0 07---6 R*R O 1 1 1 A/B-- - O 1 1 0 ALTER- 07---0 SZ* O 1 1 1 A/B O~ SKIP~ O 1 0 0 0 SGKROUP 07---0 RZ* O 1 1 1 A/B 1CODE O 1 0 0 0 07---0 SI* O 1 1 1 A/8 0 1 1 0 0 0 07---0 RI* O 1 1 1 A/B 1 1 1 0 0 0 07---1 SL* O 1 1 1 A/B H/S H/C 1 0 0 1 07---2 S*M O 1 1 1 A/B H/S H/C 1 0 1 0 07---3 S*P O 1 1 1 A/B H/S H/C 1 0 1 1 ._ _ ... . ._ .
CONTINUED
lOS~7~;7 CODING TABLE - CONTINUED
.. __ __ . ._ .. _ COMP 07-016 EX* O 1 1 1 A/B - - _ _ O 0 1 1 1 0 EXECUTE 070036 DMA 0 1 1 1 O _ _ 0 1 1 1 1 0 DMA 07-056 CM* O 1 1 1 A/B - - _ _ 1 0 1 1 1 0 07-076 TC* O 1 1 1 A/B - - _ _ 1 1 1 1 1 0 .. __ ~_ . _ _ INPUT 1727-- STF 1 1 1 1 _ 1 01 1 1 1 ' SELECT
OUTPUT 1737-- CLF 1 1 1 1 _ 1 11 1 1 1 CODE
17-1-- OT* 1 1 1 1 A/B 1HtCO O 1 1 17-2-- LI* 1 1 1 1 A/B 1H/CO 1 0 1 17-0-- MI* 1 1 1 1 A/B 1H/CO O O
._ _ 171450 NRM 1 1 1 1 . 1 0 0 1 0 1 O O O
10587~7 Each of the 71 basic instructions employed by the calculator is implemented by one or more o* the above-described microinstructions and associated control signals issued by the microprocessor. The manner in which this is accomplished is shown and described in detail in the flow charts o~ Figures 138A-H. Each rectangular box of these flow charts represents a state of RO~ 200 of the microprocessor a~d includes the mnemonic of the microinstructions and con-trol signals stored ln that ROM state. The number at the upper right-hand corner of each of these rectangular boxes represents the number of shift clock pulses required by the microinstructions of that RO~ state. A simplified overview of these detailed flow charts is shown in Figure 7.
PROG~A~MABLE CLO OE
Given a computing system organized to process binary data serially and under control of microinstructio~s stored in RO~ 200 as shown in Figures 3A-B and 136, the Lmplementation of a general purpose instruction set requires that some number of bits be shifted into or out of the storage registers.
Depending on the operation being performed, the number of bits may vary from zero to n, where n is the number of bits in a single machine word~
If each clock period o~ the RO~ clock corresponds to a one bit shift, a count loop must be employed to provide the desired number of shi~ts. A rather large number of such count loops would e~ist in order to implement an entire instruction set. An alternative method is to provide additional hardware wh~ch permits assignment o~ the desired number of shi~ts in a . .
sl~gle state of RO~ 200. Such an arrangement requires a variable cycle time for each state of RO~ 200, but results 1(~58767 in a very substantive saving in total number of ROM states.
To implement a variable number of shift clocks in a single state of the microprocessor, two separate clocks are required. The shift clock is applied to the data storage registers in the memory, the shift register block~ the arith-metic logic unit and the input/output block. The ROM clock is applied to the ROM address flip-flops in the microprocessor, and occurs once ~or each state in the microprogram. The number of shift clock pulses that occur in any given ROM state is determined by a 4-bit clock code sent to the clock decoder from the microprocessor.
If no shift clocks are desired, a separate signal from the microprocessor inhibits the shift clock output, independent of the clock code issued in that state. In this way, any number of shi~ts between and including zero and 16 may be implemented with a 4-bit clock code and an inhibit signal.
This inhibit signal o~fers an additional powerful feature when gated by the qualifier test logic in the micro-processor as shown in Figure 136. The quali~ier test logic includes a 4-bit qualifier code from ROM 3 that selects one of 16 qualifier inputs to the data selector. The data selector output QN (qualifier not met) will be high if the selected qualifier input was low. By using the QN signal to gate the inhibit microinstruction, IQN, the shift clock will be inhibited only when the qualifier is not met. Thus all microinstructions requiring shi~t clocks that are issued in a given ROM state may be either executed or inhibited, depending on the logical state of the qualifier under test.
The ROM clock is applied to the eight J-K flip-flops ~ -402_ - l()S8~67 which address the 256 word microprocessor ROM. Durin~ ~ny given state, the complementing (J-K) inputs to the 4 pri-mary address flip-flops are set up ~y the qualifier code or q-register code. The 4 secondary address flip-flop inputs are determined by the ROM 4 outputs, the BRC microinstruction, and the data selector output QN. Where RO~ cloc~ goes low, the negative edge-triggered flip-flops will cause transi-tion of the ROM address to the next ROM state.
As shown in the block diagram of Figure 139 and the detailed schematic diagram o~ Figures 140A-C, a crystal con-trolled system clock output is in~erted to generate memory clock, ~C~. This signal is again inverted to clock a D
flip-flop ha~ing an output (control clock), which will go low i~ the end-of-count signal (borrow) ~rom the down counter has occurred at the D input. The RO~ clock will also go low at this time, initiating a new ROM state in the microprocessor.
Control clock will normally remaln low for one system clock period, and in turn generates a load signal which is delayed a hal~ period from control clock by means o~ a second D flip-flop. The 4-bit clock code fro~ the microprocessor is pre-set into the counter while the load signal is low.
~s the load signal goes high, ROM clock also goes high, completing the ~ixed interval portion of RO~ clock and shi~t clock as shown in Figure 141. A series o~ clock pulses are now gated onto shift clock, SCK, until the preset counter has counted down to zero, causing control clock to again go low, completing-the RO~ cycle. ;~
The inh bit signal, ~R~, from memory m~y- lengthen the normal ~ixed in~erYal o~ ROM clock by clearing the D flip-~lop and hoiding control clock low. Tllis may occur during ,. ~ ' ~ ~ .
memory refresh or extern~l test oper~tions. In this situation, the counter rem~ins preset and the correct number of shifts will be generated when the inhibit goes away.
SHIFT REGISTER UNIT
As shown in the detailed schematic diagrams of Figures 137A-D and 142A-D, A-register 122, B-register 124, P-register 126, Q-register 128, and E-register 130 comprise bipolar status registers, the contents of which are recir-culated ~hen data is output to the R-bus or the S-bus.
Full control o~ these registers in use and type o~ opera-tions performed is maintained by the microinstructions from the from the microprocessor. The number of bits to be shi$ted in any one ROM state of the microprocessor is determined by the number of shi~t clocks from the clock de-coder. This shi~t clock appears at the shift clock input of each shift register that is enabled by the microprocessor during that RO~ cycle.
ARITE~TIC LOGIC UNIT
The development of complex read-o~ly memory arrays on a single chip ha~e made possible a hardware implementa-tion of central processing units (CPUs) and arithmetic logic units (AL~s) with far ~ewer components than were previously possible. In this application, t~o bipolar read-only memory chips are combined with carry flip-~lops and adapted to perform one-bit binary logic and arithmetic operations as well as ~our-bit binary coded decimal (BCD) arithmetic opera-tions. The two bipolar read-only memory chips may comprise, for example, ~ewlett-Packard 16-pin dual-in-line packaged bipolsr ROMs organized into 256 words by 4-bits and of the same .. ..
type a~ shown and deRcribed in U.S. Pa~ent 3,721,964 issued March 20, 1973.
l(~S8'7~
_ _ . _ . . _ . ... .. ..
The binary/BCD Arithmetic Logic Unit consists of five integrated circuits connected as shown in the block diagram of Figure 143 and the detailed schematic diagram of Figures 142A-D. Specifically, the packages consist of two 1024-~it ROMs, a dual D-type flip-flop and two quad two-inpu~ NAND gates. The function code input '~CD" selects between the binary mode and BCD mode of operation.
In the binary mode, the fu~ction code inputs ACO, ACl, and AC2 select the desired logical iunction or arith-metic operation as give~ i~ Figure 144. The binary input data enters ROM #1 on ths carry, S-bus and R-bus i~put lines, and the binary result appears on the T-bus and binary carry output linesO RO~ ~2 is not used in the binary mode.
ID the BCD mode of operatio~, the two function code lines ACO and ACl are disabled ~rom the Micro-processor and these two lines carry the T02 and T03 bits o~ BCD data from the T-Register.
The ALU ~unctioD code line AC2 is used to select the desired BCD operation. If AC2 is low, the four-bit output ~0~ 2~3 will be the BCD sum of the two 8CD data inputs. If AC2 is high a~d decimal carry has been set, the four-bit output ~0~ 2~3 will be the BC~ Tens Complement of the BCD data from the T-Register. In the BCD mode, the binary carry output wil} be disabled and the decimal carry output will be enabled to RObl Xl.
Although only one-fourth of the a~ailable registers in RO~ ~1 are required ~or the eight binary operations, the concept of adding a second 1024-bit ~QM to perform the BCD
operations grew ~rom several basic concepts: . -1) The least significaut BCD sum-bit, ~0, is always identical to the binary sum bit; therefore, only three additional output~ and ~3 need be generated~ For BCD complement operations, the decimal carry flip-flop defines whether or not the least significant bit should be complemented.
-~05-~OS8~67 2) In formin~ thc "nine's c:ompl~mlellt" ol the T-nc~istcr BCD d~ta in ROM ~1, it can be seen that for ~21 code the secoDd least significant bit TOl is the same beforc and ait~r fcrming the complement. Thus only two bits, T02 and T03 need be complemcntcd prior to input into ROM #2. The ten's complement with add is then found by presetting docimal carry and performing a BCD sum of the tllree most significant digits in ROM #2.
3) With only eight ROM inputs available, some sharing of inputs is required for ROM #1. During binary operations, all four function codes and only one bit of T-Register data is required. During BCD
operations, all four bits of T-Register data and only two function codes are required. Use of two NAND
gates in wire-OR connection with the open collector function codes AC0 and ACl permits sharing of the two inputs.
This arrangement left one input still available to RO~ #2.
By programming this input to always make output DCI true, the micro-instruction UTR can sexve two purposes--placing units on the R-bus and also set decimal carry if BCD is true. When BCD is false, clock is inhibited to decimal carry. This feature permits saving decimal carry information during all binary operations. Similarly, binary carry is saved during the four binary operations AND, IOR, XOR, and ZTT by connecting AC2 such that when AC2 is false the shift clock is inhibited to the binary carry flip-flop.
ID summary, the mode select input "BCD" performs the following functions:
1) Addresses the proper 128 word set of word lines in XOM #1.
2) Enables the T02 and T03 data lines to ROM Xl only in BCD mode.
3) Enables clock to decimal carry flip-flop only in BCD mode.
4) Selects binary carry or decimal carry into ROM #l as appropriate.
5) TC nsfers outputs ~0,1,~2,~3 to A-Re~istcr only in -~06-)S8767 The remaining three ALU function codes select the proper set of word lines in ROM ~1 to perform the eight binary functions listed in Figure 144. In addition, the AC2 input performs the following functions`.
1) Enables clock to binary carry flip-flop only during the four carry-related binary functions and the BCD comp/add function.
2) In the BCD mode, AC2 causes BCD data bit TOO, TO2 and TO3 to convert to nine's complement form.
The ALU has a total of 15 inputs which include 8 data inputs, 2 clock inputs and 5 microinstructions. Four data output lines are required, and two additional output lines from carry flip-flops are available as qual-ifier inputs to the microprocessor. The ALU and shift register mnemonics are listed in the following table:
SHIFT REGISTERS & ALU BOARD MNEMONICS
TRE T-Register to E-Register to R-Bus TO0 Bit 0 of T-Register TBE T-Bus to E-Register to R-Bus TTX - TEST T-Bus to A/B-Register from Tester TTX - I/O T-Bus to A/B-Register from I/O (Board #12) TTX - ROM T-Bus to A/B Register from ~-Processor (Board #13) TTX Logical "OR" of Three TTX Signals AB Status of AB-Flip-Flop AB = O A-Reg. Operation AB = 1 B-Reg. Operation XTR A/B Register to R-Bus UTR Logical "1" to R-Bus TQR Q-Register to Primary Address Flip-Flops AB Complement of AB
TTP T-Bus to P-Register SCK Shift Clock QP0 Qualifier, Bit 0 of P-Register PTR P-Register to R-Bus 1058~67 SHIFT REGISTERS & ALU BOARD MNEMONICS (Continued) Q00 Q-Register Bit 0 QTR Q-Register to R-Bus RCK ROM Clock QAB Q-Register to Ab-Flip-Flop, also clears decimal carry.
SCB Set Binary Carry QDC Qualifier, Decimal Carry BCD Decimal Arithmetic AC2 ALU Operation Code QBC Qualifier, Binary Carry S-BUS Data Bus ACl ALU Operation Code AC0 ALU Operation Code T02 Bit 2 of T-Register T03 Bit 3 of T-Register SDR Signal to Disable ROMs TOl Bit 1 of T-Register T-BUS Data Bus ALU Arithmetic Logic Unit ~ ) Indicates Negative True Signal Figure 145 lists five dual-in-line integrated circuits that may be employed in the ALU. The following table gives an example of how the two ALU ROM chips shown in Figures 142-143 can be constructed to implement the above described ALU functions (in this table each "1" represents a "low" state and each "O"
represents a "high" state):
~)58~7~;7 ROM # 1 / 10~0; 1/ 0000; 2/ ~00~; 3/ 1~0~
4/ 1000; 5/ 0000; 6/ 000~; 7/ 1000 8/ 0000; 9/ ~000; 1~/ ~00~; 11/ 10 12/ 0~00; 13/ 0000; 14/ 00~0; 15/ 10~
16/ 0000; 17/ 1000; 18/ 1000; 19/ 1000 2~/ 00~0; 21/ 10~0; 22/ 1000 j 23/ 1~00 24/ 10~0; 25/ 1000; 26/ 1000; 27/ 100~
28/ 1000; 29/ 1000; 3~/ 1000; 31/ 1000 32/ 1000; 33/ 00~0; 34/ ~0; 35/ 1~00 36/ 1000; 37/ 0~00; 38/ 0000; 39/ 1~00 40/ 0000; 41/ 0000; 42/ 00~0; 43/ 1000 44/ 0000; 45/ 0000; 46/ 00~0; 47/ 1~0~
48/ 0000; 49/ 1000; 50/ 1000; 51/ 1000 52/ 0000; 53/ 1000; 54/ 1000; 55/ 1000 56/ 1000; 57/ 1000; 58/ 1000; S9/ 1000 60/ 1000; 61/ 1000; 62/ 1000; 63/ 1000 64/ 11~0; 65/ 1100; 66/ 1100; 67/ 1100 68/ 1100; 69/ 1100; 70/ 1100; 71/ 1100 72/ 0000; 73/ 0000; 74/ 0000; 75/ 1000 76/ ~000; 77/ ~00~; 78/ 0000; 79/ 1000 80/ 0100;81/ 0100; 82/ 0100; 83/ 1100 84/ 0100; 85/ 0100; 86/ 01~0; 87/ 1100 88/ 0000; 89/ 1000; 90/ 1000; 91/ 0100 92/ 1000; 93/ 010~; 94/ 0100; 95/ 1100 96/ 1100; 97/ 1100; 98/ 1100; 99/ 1100 100/ 1100;101/ 1100; 102/ 11~0; 103/ 110 104/ 0000;105/ 00~0; 106/ 0000; 1~7/ 100~
108/ 0000; 109/ ~000; 110/ 00~; 111/ 1000 112/ 010~; 113/ ~100; 114/ 010~;115/ 11~0 116/ 0100; 117/ 010~; 118/ 0100;119~ 110~
120/ 000~; 121/ 1000; 122/ 1000;123/ 0100 124/ 1000; 125/ 0100; 126/ 0100;127/ 1100 128/ 0000; 129/ 0000; 130/ 0000;131/ 0000 132/ 0000;133/ 0000; 134/ 00~0;135/ 000 136/ 0010;137/ 1010; 138/ 1010;139/ 0110 140/ 1010;141/ 0110; 142/ 0110;143/ 1110 144/ 0001;145/ 1001; 146/ 1001;147/ 0101 148/ 1001;149/ 0101; 150/ ~101;151/ 1101 152/ 0011;153/ 1011; 154/ 1011; 155/ ~111 156/ 1011;157/ 0111; 158/ 0111, 159/ 1111 160/ 0000;161/ 0000; 162/ 0000, 163/ 0000 164/ 00~0;165/ 0000; 166/ 00~0; 167/ 0000 168/ 0010;169/ 1010; 170/ 1010; 171/ 0110 172/ 1010;173/ 0110; 174/ 0110; 175/ 1110 176/ 0000;177/ 0000; 178/ 0000;179/ 0~00 180/ 0000;181/ 0000; 182/ 0~00; 183/ 0000 184/ 0011;185/ 1011; 186/ 1011; 187/ 0111 188/ 1011; 189/ 0111; 190/ 0111; 191/ 1111 192/ 0000; 193/ ~000; 194/ 0000; 195/ 000~
196/ 0000; 197/ 0000; 198/ 0000; 199/ ~000 200/ 1010; 201/ 0010; 202/ 0110; 203/ 1010 204/ 0110; 205/ 1010; 206/ 1110; 207/ 0110 208/ 1011; 2~9/ 001~; 210/ 0111; 211/ 1011 212/ 0111;213/ 1011; 214/ 1111; 215/ 0111 216/ 1001;217/ 0001; 218/ 0101; 219/ 1001 220/ 01~1;221/ 1~01; 222/ 1101; 223/ 0101 224/ ~000;225/ 0~0~; 226/ 0~00; 227/ ~000 228/ 0000;229/ 0000; 230/ 0000; 231/ 0000 232/ 1011;233/ 0011; 234/ 0111; 235/ 1~11 236/ 0111;237/ 1011; 238/ 1111; 239/ 0111 240/ 0000;241/ 0000; 242/ 0000; 243/ 0000 244/ 0000;245/ 00~0; 246/ 0000; 247/ 0000 248/ 1010;249/ 0~10; 250/ 0110; 251/ 1010 252/ 0110;253/ 1010; 254/ -1110;255/ 0110 l(~S1~7~;'7 - ROM #2 / 0000; 1/ 0000; 2/ 0000; 3/ 0000 4/ ~0; 5/ 0~0~; 6/ ~000; 7/ 0000 8/ 0000; 9/ 0000; 10/ 0000; 11/ 0000 12/ ~00; 13/ 0000; 14/ 0000; 15/ 0000 16/ 0000; 17/ 0000; 18/ 0000; 19/ 0000 20/ 0000; 21/ 000~; 22/ 0000; 23/ 0000 24/ 0000; 25/ 0000; 26/ 0000; 27/ 0000 28/ 0000; 29/ 0000; 30/ ~000; 31/ 0000 32/ 0000; 33/ 00~0; 34/ 0000; 35/ 0000 36/ 0000; 37/ 0000; 38/ 0000; 39/ 0000 40/ 0000; 41; 0000; 42/ 0000; 43/ 0000 44/ 0000; 45/ 0000; 46/ 0000; 47/ 0000 48/ 0000; 49/ 0000; 50/ 0000; 51/ 0000 52/ 0000; 53/ 0000; 54/ 0000; 55/ 0000 56/ 0000; 57/ 0000; 58/ 0000; 59/ 0000 60/ 0000; 61/ 0000; 62/ 0000; 63/ 0000 64/ 0000; 65/ 0000; 66/ 00~0; 67/ 0000 68/ 0000; 69/ 0000; 70/ 0000; 71/ 0000 72/ 0000; 73/ 0~00; 74/ 0000; 75/ 0000 76/ 0000; 77/ 0000; 78/ 0000; 79/ 0000 80/ 0000; 81/ ' 0~00;82/ 0000; 83/ 0000 84/ 0000; 85/ 0000; 86/ 0000; 87/ 0000 88/ 0000; 89/ 0000; 90/ 0000; 91/ 0000 92/ 0000; 93/ 0000; 94/ 00~0; 95/ 0000 96/ 0000; 97/ 0000; 98/ 0000; 99/ 0000 100/ 0000; 101/ 0000; 102/ 0000; 103/ 0000 104/ 0000; 105/ 0000; 106/ 0000; 107/ 0000 108/ 00~0; 109/ 0000; 110/ 0000; 111/ 0000 112/ 0000; 113/ 0000; 114/ 0000; 115/ 0000 116/ '0000; 117/ 00~0; 118/ 0000;, 119/ 0000 '120/ 0000; 121/ 0000; 122/ 000~; 123/ 0000 124/ 0000; 125/ 0000; 126/ 0000; 127/ 0000 128/ 1111; 129/ 1101; 130/ 1011; . 131/ 1001 132/ 0111; 133/ 0000; 134/ 0000; 135/ 0000 136/ 1101; 137/ 1011; 138/ 1001; 139/ 0111 14~/ 1110; 141/ 0000; 142/ 0000; 143/ 0000 144/ 1011; 145/ 1001; 146/ 0111; 147/ 1110 148/ 1100; 149/ 0000; 150/ 0000; 151/ 0000 152/ 1001; 153/ 0111; 154/ 1110; 155/ 1100 156/ 1010; 157/ 00~0; 158/ 0000; 159/ 0000 160/ 0111; 161/ 1110; 162/ 1100; 163/ 1010 164/ 1000;165/ 0000; 166/ 0000; 167/ 0000 168/ 0000;169/ 0000; 170/ 0000; 171/ 0000 172/ 0000;173/ 0000; ' 174/ 0000; 175/ 0000 176/ 0000;177/ 0000; 178/ 0000; 179/ 0000 180/ 0000;181/ 0000; 182/ 0000; 183/ 0000 184/ 0000; 185/ 0000; 186/ 0000; ' 187/ ~000 188/,,000.0; 189/,_0000; 190/ 0000; 191/ 0000 192/ 1101; 193/ 1011; 194r'i001; 195/ 01il 196/ 1110; 197/ 0000; ~ 198/ 0000; 199/ 0000 200/ 1011; 201/ 1001; 202/ 0111; 203/ 1110 . 204/ 1100; 205/ 0000; 206/ 0000; 207/ 0000' 208/ 1001; 209/ 0111; 210/ 1110; 211/ 1100 212/ 1010; 213/ 0000; 214/ 0000; 215/ 0000 -'216/ 0111; 217/ 1110; 218/ 1100; 219/ 1010 220/ 1000; 221/ 0000; 222/ 0000; 223/ 0000 224/ 1110; . 225/ 1100; 226/ 1010; 227/ 1000 228/ 0110; 229/ 000B; 230/ 0000; 231/ 0000 232/ 0000; 233/ 0000; 234/ 0000;' 235/ 0000 236/ 0000; 237/ 0000; 238/ 0000; 239/ 0000 240/ 0000; 241/ 0000; 242/ 0000; 243/ 0000 244/ 0000; . 245/ 0000; 246/ 0000; 247/ 0000 , 248/ 0000; 249/ 0000; 250/ 0000; 251/ ~000 252/ 0000; 253/ - 000~; 254/ 0000; 255/ 0~00 -~(~S8';'67 MEMORY UNIT
The calculator uses an all semiconductor memory system. Peripheral circuitry is bipolar and the memory con-sists of n-channel MOS read only memory tROM) and p-channel MOS read/write memory (RWM).
Addressing and physical layout of the memory module is done so that the number of words can be increased ~rom 3K
in the basic machine to 7.5K in the largest machine. The smallest increment o~ memory that can be added is 512 words.
Provisions have been made to contain all add-on RWM ~ithin the memory module. Add-on ROM is external to the memory module, behind the display.
The basic machi~e contains 3E words o~ memory, organized i~to 2K x 16 ROM, 512 ~ 16 and 512 x 6 RW~. The 1~ bit RWM words are divided into 109 user registers (4 words) and 76 words ~or processor use. The 6 bit RW~ ~ords are program steps. The largest machine contains 5E words o~
ROM and 2.5K words o~ RWM, of which 512 words are 16 bit.
Read~Write ~emory As sho~n in Figures 146-150 memory is made up o~ 1024 x 1, dyna~ic, Read/write memory chips (Intel 1103). These devices are P-cha~nel, ~OS using silicon gate technology. To maintain the contents o~ memory, the device must be refreshed every 2 ms. This is accomplished by per~orming a read cycle at a given address. On each chip are 32 re~resh ampli~iers so that each read cycle, 32 cells get refreshed. The entire chip is then re~reshed by cycling through the lower 5 address bits and reading each distinct address. The re~resh period is 20 ~s at least every 2 ms.
Logic levels on all input lines to the RWM chips are . , 1058 ~f~7 O to 1 16v. This includes the 3 clock lines (chip select, Y-enable or write, and precharge), 10 address lines, and i~put data. The output data, however, is a current of 600 ~a or more into lK ohms or less. This low level output is ~'wire-or able~' with other chips to build larger systems.
Read Only Memory As shown in Figure 146, 147, 151, and 152 ROM chips are 4096 bit, n-channel MOS arranged 512 x 8. The devices are static and consume no power ~hen not enabled. Data is retrieved ~rom the ROMs by pulling the chip enable li~e from O to 1 12v (turning the chip on), addressing the desired cells (O or 4v levels) and selecting which output devices are to be enabled (4v or Ov). The output levels are suf-ficient to drive one TTL gate directly, and can be "wire-or/ed" ~or large systems.
~s further shown in Figures 153 and 154A-D, each ROM chip comprises six input bu~fers. These input buf~ers generate both the input and its complement. On the ~asis o~ the 64 possible combinations of the 6-i~puts Io-I5, one o~ the 64 lines in the decoder is selected. The selected line enables one of the vertical lines in the 64 g 64 bit storage array.
For e~a~ple, let Io - I5 ~ O and I5 - I8 be "don't cares".
This means line ~00 (octa-l) is selected.
The two 8 out of 32 select decoders must choose 16 lines from the 84 horizontal lines selected by the vertical line XOO. (The 8 out of 32 select decoder is actually a 2 out of-8 decoder repeated 4 times in each of the sections A - B.) The output irom four MOS FET's a, b, c, and d are "wire or~ed"~ MOS de~ices a', b', c', and d' are also con-nected similarly. I~ I6 and I7 - O, horizontal lines lXX, ' t ' ' ,i ': ' . ~ : ~:
-~ 1058~
2XX, 3XX, 5XX, 6XX, 7XX are groullded in eacll of the four sections ~-B. This insures that MOS FET's b, c, d, b', c', and d' are non-conductive. This allows si~nals on lines OXX
and 4XX to pass into the output sections through transistors a and a'.
The output section contains the output buffer, 1 out of 2 decoder, and the output drivers s. The output butter provides a stage of gain and "wire or's" 4 lines from the storage array. The 1 our of 2 decoder clamps the gates of 2 of the 4 output drivers in each section A-B by enabling either line I8 or its complement ( ~). This disables 1 of 2 signals coming from the output buffer. The output drivers then can be tied together with line (e) for a 512 x 8 organi-zatio Each of the above-listed constants and routines and subroutines of basic instructions employed by the calculator is stored in these ROM chips. This is accomplished by parti-tioning the 0 to 16777 octal addresses of the memory map of Figure 4 into 5121oX 81o blocks which is the capacity of each 4096-bit ROM chip. These blocks are represented in the memory map of Figure 155. The next step is the inversion of the 8 bits (if the input was "1", it is now a "0") and com-plimenting of the address (i.e. once the octal addresses 0 - 16777 are partitioned into 512 x 8 blocks, only the last 3 octal digits are important). For this reason, address 7778 goes to 000,7768 goes to 001, ....... , and 000 goes to 7778.
The sixteen bits of each constant and basic instruc-tion are stored in the 5121o x 81o ROM chips by organizing the ~OM chips into 64 x 64 bit matrices and computing the ~ ()587~7 row and column numbers of eacl bit of each matri~ by operating on each address and the particular bit (15 through 8, or 7 through 0). The column number is computed by subtracting the last two digits of the address from 1008. For example, the column number of address = 18 ~ 8 = 100 D 641o and the column number o~ address 777 - 18 ~ 778 ~ 1. The computation of the row number (referred to as IR in the ~low-chart of Figure 156) can best be described by re~erring to the ~lowchart o~ Figure 156 and the associated table o~
Figure 157. Once the row and column numbers are ~ound it is a simple matter o~ storing in that location o~ the matrix that particular bit (i.e., a "1" or a "0"). A "0" is stored at a designated location by ~orming a metal gate to complete a MOS FET device at that location, and a "1" is stored at a designated location by leaving of~ the metal gate so that a MOS ~ET device is not ~ormed at that location.
M-Register As shown in Figures 146, 147, and 158A-D included on the M-~egister board is the 16 bit Address or ~-Register, all chip enable decoding and bu~ering, and address bu~fers for both RO~ and RWM. The register uses ~our, four bit, serial in and out, parallel in and out shi~t Registers. Upon receipt o~ a TT~ instruction ~rom the microprocessor, serial data from the T-Bus is accepted into the M-register Nothing is done with this data until either a read or write instruction is - received, then one o~ two decoders are enabled. These chip Enable decoders uniquely decode which block o~ 512 words, either ROM or R~, is being addressed. I~ ROM is being addressed, .~ .
the signal is inverted and amplified to +12~. ~or RW~I the Chip Enable enables a gate, which allows a 16 Volt clock -~14-.:
105~767 signal to reach the en~bled RWM chips. The clock wave-form is generated on the control card.
The dynamic characteristic of the RWM chips, requires that all chips be enabled simultaneously during a refresh cycle, to re~resh the entire read/write memory. The buffer circuits in the output of the Chip Enable decoders allow the chip select clock to reach all of the Rl~M chips auring refresh but only those being accessed, during a read or write cycle.
Open collector nand gates with resistor pull-ups are used as buffers for the ROM address lines. Using the open collector gates, the address lines can be pulled above the re-quired 4v level. The nand gates àre enabled during a memory cycle so that the ROM address lines are inhibited at a 5v level. The RNM address lines must pull from Ov to + 16v.
~igh ~oltage, open collector, in~erters with discrete transistor pull-ups are used as buffers for the 5 most significant bits.
- The 5 }east significant address bits are bussed to the control card where they are used in part of the refresh circu~try.
Control A memory cycle consists of a read or write instruction from the processor accompa~ied by 12 clock pulses from the shi~t clock. As shown in Figures 146, 147, 159~-~ and 160, control uses these pulses and instructions to generate the clocks required by the RWM chips. A synchronous 4 bit counter (SN74193) is used to count clock pulses and the 4 outputs are decoded by a 1 of 16 decoder (SN74154) to generate J and K
input to flip-flops. The outputs from the flip-flops are then bui'~ered to become the reguired cloc~ signals (Precharge, Y-enable, chip select).
Re~reshing the read/write memory is also taken care of 105~76~
by the control card. An asta~ multivibr~tor with a repetition rate o~ 500 hz. minimum ~eneratcs a si~nal which allows 3 re-fresh cycle to occur. A flip-~lop generates the actual signal (REF), but only if the astable multivibrator signal is high, there is no read or write cycle in progress and the processor signal, CC~, is high. ~ goes high between processor in-structions, thus it is known that nothing is going to be in-terrupted when REF is generated. REF is then bu~fered by an open collector inverter and given to the processor as T~.
IN~ halts the machine and the re~resh cycle begins.
The same counter used for a memory cycle, is used during refresh to again generate the necessary clocks (Pre-charge and chip select). ~rhen the counter returns to state 0 and REF is present, a second co~nter is advanced one count.
This second counter provides the refresh addresses which go to the RWM only if REF is present. ~hen this counter returns to state 0, it causes REF and ~ to return to preset conditions and the machine continues normal operation.
A ~urther function of the control card is to make the 1024gl me~ory chips appear to the processor like 512 x 2 chips.
This is done by accessing the RWM twice during each memory cycle. Hence, half-way through each refresh or memory cycle a ~lip-~lop changes state to generate one address bit. The M-register thus provides only 9 address bits and the control card 1 bit, independent of the M-register.
Other signals generat-d on the control card, direct the ~low of data in the T-register.
T-Register Data to and from the memory is temporarily stored in the T-register. As shown in Figures 146, 147, and 161A-D four 4-bit, seri~l in and out, parallel in and out shi~t registers - -~16-105876~
make up thc actual T-rcgister~ Thc rc~istcrs have a modc control (TMC) ~vIIicll when low, allows serial data flow and when high, ~llows parallel data flow.
Serial data enters the T-register in the presence of a TTT instruction. Data is serially transmitted to the S-bus during a TTS instruction, and simultaneously recirculated into the T-register to prevent loss of dataO
Parallel data is accepted from either ROM or RWM
during a read cycle. The ROM data is buffered by nand gates and the RWM by sense amplifiers followed by the same nane gates. Multiplexing the RWM means that only one-half the data bits are transmitted between RWM and the R-register during each half of the memory cycle. The first half of the read cycle, the odd bits are loaded into the T-register. To com-plete the transfer these bits must be shifted right one place and the odd bits again loaded from the RWM. This is done by allowing the odd bits to appear as data at the input of the even bits. When new data is clocked into the T-register during the second half of the read cycle, the even inputs are also clocked in, filling the T-register. This isn't done with ROM
since all ROM is transferred 16 bits parallelO
Data is written into memory in a manner similar to the way data is read from RWM. The bits are 16v levels, after buffering, and are written by the odd bits followed by the even bits. The nand gates between the T-register and the 16v buffers are gates from the control card to handle the write multiplexingO
-~17-.
~LOS~7~7 INPUT-OUTPUT CONTROL UNIT
The input-output control unit ~llows the calcu-lator to communicate with the internal input, input-output, and output units and with external peripheral devices. As shown in Figures 140A-C and 162A-D, the input-output control unit is co~tained on two printed circuit boards; the "Control and System Clock" board and the "I/O Register and Gate Interface~ board. A third board, shown in Figure 163, is an I/O motherboard providing room ~or coDDectin~ iour ex-ternal inter~ace cards to the calculator.
The internal input, input-output, and ouput units are distinguished ~rom peripheral devices by the fact that the I/O language set addresses them directly. ~ence each I/O ~nstruction contains an internal peripheral address as part oi its makeup. The five internal directly-addressable input, input-output, and output UDitS are the I/O register, the magnetic card reader, the output printer, the x-, y-, aod z- register display, and the keyboard mode lights.
The external peripheral devices are indirectly addressable and are con~ected via cable to an interface card which is plug~ed iDto the I/O motherboard at the rear of the calculator. The term indirectly addressable i9 de-fiDed here to mean the external peripheral devices are addressed by lines leading irom the ~our most SigD~ iicant bits iD the I/O register, thereby requiri~g an address word to be loaded into the directly addressable I/O register.
I/O CONTROL AND SYSTEM CLOCK SECTION
- The fu~nction oi the I/O Control and System Clock Section is to provide control to the }/O Register and Gate Interface Section. This is ~ccompIished b~ use of an I/O
- lOS~7~
instruction ~set .stored in the main memory of the calculator The microprocessor causes instructions from the memory unit to be loaded into the T-Register and then to be transferred to the Q-Register. The microprocessor deter-mines the type of instruction and causes the proper execution of the instruction. If the instruction is an I/0 type, con-trol is transferred by the microprocessor to the I/0 Control and System Clock Section.
The microprocessor remains in a two state waiting loop while the I/0 Control section is active. Time in the wait loop is between .72 u seconds and 6.5 u seconds.
Bits 5 through 10 from the Q-Register are connected to the I/0 Control section and remain constant during an I/0 instruction execution time. Bits 5 through 8 repre-senting the I/0 instruction code are gated to the I/O
address flip flops and entered on each clock time while the I/O is inactive. The four outputs of the address flip flops are connected to the address input of a 1 of 16 de-coder and represent the starting state address of the I/0 instruction to be executed. When the I/0 Control Section is enabled, the input gates passing bits S through 8 to the I/0 address flip flops are closed and the 1 of 1~ de-coder enabled. This allows the starting state I/0 micro instructions to come from the 1 of 16 decoder. The next state address coming from the closed input gates will be the exit state (1111=178) unless modified by reopening the gates to let the original starting state code through or by modifying the output of one or more of the input gates using a "wire or" connection coming from the 1 of lfi de-coder output. This addres.s is sent to the I/0 address -~ 19-,.... .
105~7~'~
flip flops inputs and cloclccd in on thc leading ed~e of tlle first half clock cycle. The first half clock cycle turns off the 1 of 16 decoder and the address changes. The second half clock cycle enables the 1 of 16 dccoder, allowing the next state micro instruction to appear. (See Figure 164 for the timing described above.) This process continues until the exit state is encountered. On the exit state, the I/O Control is disabled and control is returned to the microprocessor.
The I/O instructions involving the transfer of data between the I/O and the CPU (OT, LI, MI), require 16 passes through the same state (1 pass for each of 16 bits). This is achieved by checking the output of a 16 bit down counter and then decrementing after each pass through the state.
If the counter indicates "O" has not been reached, it causes the starting state address to be reloaded into the address flip flops by opening the input gates. When 16 passes have been indicated by the counter, the input gates are not allowed to open; however, the next state (1111) is modified by the output of the 1 of 16 decoder through a "wire or"
connection on the 2cd bit to give state 1101. This address is input to the I/O address flip flops as in the preceeding paragraph.
The above-described operation of the I/O control section is also illustrated and further described in the flow chart of Figure 165.
Bit 9 is called a hold/clear bit. It allows a clear flag (CLF) to take place or not to take place after execution of the other I/O instructions. (STF excepted) -Bit 10 is used in conjunction with the micro instructions - -~20-.
`` 1058~7t;7 PTR and XTR to give control to the I/O.
The I/O control and programmable clock mnemonics are given in the following table:
CC0 Clock Code Zero CCl " " One CC2 " " Two CC4 " " Four CC8 " " Eight CCT Control Clock to Tester CEM Call Extended Memory CLC Clear Control CLF Clear Flag DRC Data Register Clock EBT Eight Bit Transfer EOW End of Word IIO Inhibit Internal OSC
INH Inhibit Clock IPS Inhibit Primary/Secondary ITS Input to S-Bus MCK Memory Clock POP Power On Pulse PTR P-Reg to R-Bus QFG Qualifier Flag Q5 " Five Q6 " Six Q7 " Seven Q8 " Eight ?9 " Nine Qlo " Ten QRD " ROM Disable RCA ROM Clock Address ~05876'7 I/O CONTROL BOARD MNEMONICS (Continued) RCF ROM Clock Flip Flop SCB Set Carry Bit SCK Shift Clock SCT " " to Tester Service Request Acknowledge STC Set Control STF Set Flag TCK Tester Clock TTO T-Bus to Output TTX T-Bus to A/B Reg.
XTO External OSC
XTR A/B Reg. to R-Bus NOTE:
( ) indicates negative true signal I/O REGISTER AND GATE INTERFACE SECTION
As shown in Figure 162, the directly addressable I/O Register (address Ol) is a 16 bit universal (Parallel in/out, Serial in/out) register that is connected to the calculator processor by the serial-in S-Bus and the serial-out T-Bus. Information is passed non-inverted from the A or B regis-ters bit serial to the I/O Register with the IiO instruction OTX 01. Sixteen ~;
lines connected to the parallel outputs of the I/O Register provide data out -to the internal input, input-output, and output units and to the external output interfaces. (NOTE: each I/O unit or interface may place only 1 TTL
load on the output lines.) Parallel entry to the I/O Register is through 12 party lines con-nected to the 12 least significant parallel inputs. The input lines are negative true with all input l~J~7~7 interfaces tyin~ to the lines tllrough open coll~ctors.
Care must be taken to ins~lre there is no disturbance to the lines while an interace is inactive. Input informa-tion is passed inverted to the A or B Register Bit serial with the I/0 instructions LIX 01 or MIX 01. (Tlle inversion puts positive true information into the A or B register.~
Input information is entered into the I/0 Register in three ways:
a) Service Request.
Entry by the service request method is con-trolled by a service inhibit flip flop. ~Vhen the service inhibit flip flop has been cleared with the I/0 instruction CLF 01~ a service re-quest may be initiated by returning the SSI
(Service Strobe Input) party line to ground through an open collector on the interface.
This signal causes the parallel inputs to be strobed into the I/0 Register and seDds a re-quest for service (QNR) to the microprocessor.
The microprocessor prior to receiving a request for service would have been cycling through various instruction paths and checking for a service request after execution of each instruc-tion. Upon receipt of a request for service, the processor interrupts the sequence of instruc-tions it was doing and loads an address into the M-Register which contains the starting address of the service routine. At the same time a sig-nal, SRA (Service Request Acknowledge), turns off the service inhibit flip flop and also sets -~23-:lOS!3~67 the single service flip Ilop which pcrmits only one service interrupt to the processor per ser-vice strobe input. The single service flip flop is reset when the service strobe is removed.
All lines from an interface using the service re-quest method for entering information are inhib-ited when the Service Inhibit flip flop is set.
b) Return of Channel Flag ~fter Command was Given to an External Peripheral Device.
This method implies the calculator must control the peripheral. That is to say the calculator transmits the indirect address and control en-able (CE0) from the "I/0 Register and gate inter-face" section to the interface with the expecta-tion of information being returned by the peri-pheral through the interface to the I/0 Register.
Because of this expectation, only limited instruc-tions may be performed by the calculator while waiting. The Service Request method must be inhibited during this wait so that input informa-tiO17 iS not destroyed by another peripheral using Service Request.
When a controlled peripheral responds, its flag and data are processed at the interface. The signal CFI (Channel Flag In) causes the loading of parallel data from the interface into the I/0 register and clears the control enable flip flop so that the CE0 signal is removed from the inter-face. The calculator can interrogate the Control Enable flip flop with the instructions SFS 01 -~2~-- .
lQ587~
or SFC 01 to dctermine when data has been loaded in.
c) Giving the I/O Instruction STF 01.
The instruction STF 01 as described in (a) sets the service inhibit flip flop inhibiting the service request mode of entry. The STF 01 instruction also causes a parallel load of the input lines into the I/O Register.
The I/O Register is used to transfer data and con-trol between the calculator and the directly addressable magnetic card reader (address 02). To record information on a card, the control word and data is transferred from the A Register to the I/O Register. The I/O instruction STC02 clocks this information via MLS into a latch located at the card reader. The strobe bit for the recorded data is output to the I/O Register from the B Register. The I/O instruction STF02 clocks the strobe latch located at the card reader via MCR. The I/O instruction STF01 loads status from the card reader into the I/O Register (see l-C).
This status is transferred to the A or B Register where it is processed.
To enter information from the magnetic card reader a control word is transferred from the A-Register to the card reader latch as above. When a strobe is encountered from the card, the card reader sends a signal, MFL, to the I/O Register and gate interface section, which sets the magnetic card flag flip flop. The I/O instruction SFS02 is used to determine the state of the magnetic card flag flip flop. When the flip flop is set~ data is loaded into the I/O Register with the I/O instruction STF01.
~ - :
10587f~7 The dircctly-addressable output printer (address O~) requires 26 bits of parallel information from the calculator.
Sixteen bits come from the I/O Register and lO bits come from a register at the printer. A 16 bit word with "don't cares" in the least 6 significant bits is transferred to the I/O Register with the I/O instruction OTX 01. A second 16 bit word is transferred to the I/O Register with the instruction OTX 04. The lO valid printer bits already in the I/O Register overflow into the lO bit printer register. The significance of the address 0~ in the OTX instruction is that it allows the micro instruction EOW (End of Word) to set the printer enable flip flop after the 16th bit has been transferred.
At the end of the printers response it returns a signal (PTF) to the printer enable flip flop clearing it. The printer enable flip flop can also be cleared with the I/O
instruction CLF 04. The state of the printer enable flip ~-flop is checked with the I/O instructions SFC 0~ or SFS 04. ;
The directly-addressab~e output display (address 08) recieves information from the I/O Register. A 16 bit word is transferred to the I/O Register with the instruction OTX
08. The address 08 allows the display enable flip flop to ~e set with the micro-instruction EOlV after the 16th bit has been transferred. The display enable flip flop sends a signal DEN to the display indicating information is ready in the ~/O Register. The display enable flip flop is cleared with the I/O instruction CLF 08.
The directly-addressable keyboard indicator lights (address 16) are used to indicate the mode for various keys.
The lights are driven from a latch or series of latches which get information from the I/O Register. Information -~26-1~58767 is transferred to tlle I/O Register with the I/O instruction OTX 16. After the 16th bit has been transferred, the micro-instruction EOW and address 16 send a signal KLS which strobes the informatioD from the I/O Register into the keyboard lights latch.
The keyboard does not have an address. It transfers information to the CPU through the I/O Register using the Service Request method described in (a) above. The keyboard is disabled while the service inhibit flip flop is set except for the stop key which when depressed sends the signal STP
which is processed independent of the service inhibit flip flop.
All external peripheral interfaces are indirectly addressed from the four most significant bits in the I/O
Register. Thus to communicate with an external peripheral, an address (0000 excluded) must be loaded into the I/O
Register. Data and status will be loaded at the same time if the peripheral is to act as a receiver. If the peripheral is to act as a transmitter, only the address and status need be loaded. Next, the I/O instruction STC 01 sets the Control Enable Out flip flop. This flip flop sends a signal CEO
to all external interface slots. The CEO signal and the decoded (from the 4 bit address) address allow the interface to command the peripheral. After the peripheral has responded, information given back to the interface by the peripheral is processed to the I/O ~egister in the manner described under (b), "Return of Channel Flag After Command was Given to an External Peripheral Device".
The I/O Register and gating control circuit mnemo-nics are given in the following table:
~()58767 I/O REGISTER AND GATE BOARD
CEO Control Enable Out CFI Channel Flag In CLF Clear Flag CO0, 1,2,3 Code Out DEN Display Enable DI0, 1,2,3,4,5,6,7 Data In DO0, 1,2,3,4,5,6,7 Data Out DRC Data Register Clock EBT Eight Bit Transfer EOW End of Word IOD I/O Data KLS Key Lights Strobe MCR Mag Card Reset MFL Mag Flag MLS Mag Latch Strobe PEN Printer Enable pop Power On Pulse PTF Printer Flag Q0 , Qualifier Bit 0 Ql 1 Q2 " " 2 Q3 " 3 Q4 " " 4 QFG "Flag QNR "Not Request SIH Service Inhibit SI0, 1,2,3 Status In SO0, 1,2,3 Status Out SRA Service Request Acknowledge SSI Service Strobe In STC Set Control SsTF -428- Set Flag I/O l~l~'GIS'rl~,T~ AND GA'l'1~',130A~D (C'ol~lilu T-~us T-~us TTO T Bus to OUtp~lt NOTE:
( ) indicates negative true signal As shown in Figure 166, when addressing a peripheral device~ bits loaded into the 4 most significant locations in the I~O register from the CPU constitute the peripheral address code. As part of the output party line system the address code is routed to all I/O interface slots. Each I/O inter-face card decodes the 4 line address code to a unique single line for use on that particular I/O cardO The binary codes 10 through 15 have been reserved for dedicated peripheral addresses which are used by dedicated keys (from the key-board) and dedicated I/O drivers. Binary codes 1 through 9 are for general use. Code "O" is a non-addressing code and is used in operations that do not involve addressing a specific peripheral. The following table summarizes the address code assignments:
ADDRESS CODE ASSIGNMENTS
RESS CODE
HliHH TYPEWR ITER
_ 13 }lliLII
12 HIILL jCEYBOARD & KEYBOARD-LIiCE PERIPIIERALS
11 iiLllH
. _~
IILIIL . . _. ~
9 liLLII GENERAL USE; ONE OF NINE SEiLECTABLE
. _ .
8 IILLL ..
7 Lilllll ..
. __ 6 LIIIIL ..
LIILII .-4 LIILL _ 2 J LIII. ..
1 LLI II ..
. . .
USl.i) 0N IN'l'l'lll~lll"l' 1/0 lN'l'l~ ACI' Cl~lll)S
,l,l,1, ~rlll.N ~ '''' r"~"(' h" . .~.
_~9_ 10587~7 The general usage codes (1-9) are decoded outputs from a line to 1 of 10 decoder (SN 7~2 for examplc). It is in-tended that the codes 1 through 9 be jumper selectable. This would allow the user to select a code for his system peripllerals or allow him to use more than one of the same peripheral by selecting different address codes.
Since the I/0 register is used to communicate with the internal input, input-output, and output units as well as peripheral devices, a given peripheral's address code will appear randomly in the I/0 register address field with there being no intention of expecting the peripheral to respond:
Therefore, a second piece of information is necessary for the I/0 interface card to form a unique signal which will indicate to the peripheral to respond. This second piece of informa-tion is control information and is described hereinafter.
The I/0 interface cards contain TTL compatible logic - for manipulating control and data from the calculator and/or the peripheral. All I/0 interface cards which are intended to be used with the calculator must provide storage either on the I/0 interface card or in the peripheral. Thus data being transferred from the calculator to the I/0 card must be stored at the instant the peripheral is requested to respond. Like-wise data coming from a peripheral must be stored until the calculator accepts it. This requirement is important and must be considered on all compatible interface cards.
The calculator can supply up to 100 ma. maximum at ~5 volts to each I/0 interface card. Power exceeding this abso-lute maximum must be supplied by the peripheral.
The followin~ table lists the pin assignments for all I/0 lines at the plu~-in slots on the calculator back plane, -~30-10587~;7 as viewcd flom thc rc~r of the calc~ tor, lcft to rigtlt.
EXT~I~NAL I/0 INTERF~C~
PIN ~SSIGN~IEN'l'S
2 +5 B +5 4 USED D ~ a 10/20 5 US~D E USED
. _~
IILIIL . . _. ~
9 liLLII GENERAL USE; ONE OF NINE SEiLECTABLE
. _ .
8 IILLL ..
7 Lilllll ..
. __ 6 LIIIIL ..
LIILII .-4 LIILL _ 2 J LIII. ..
1 LLI II ..
. . .
USl.i) 0N IN'l'l'lll~lll"l' 1/0 lN'l'l~ ACI' Cl~lll)S
,l,l,1, ~rlll.N ~ '''' r"~"(' h" . .~.
_~9_ 10587~7 The general usage codes (1-9) are decoded outputs from a line to 1 of 10 decoder (SN 7~2 for examplc). It is in-tended that the codes 1 through 9 be jumper selectable. This would allow the user to select a code for his system peripllerals or allow him to use more than one of the same peripheral by selecting different address codes.
Since the I/0 register is used to communicate with the internal input, input-output, and output units as well as peripheral devices, a given peripheral's address code will appear randomly in the I/0 register address field with there being no intention of expecting the peripheral to respond:
Therefore, a second piece of information is necessary for the I/0 interface card to form a unique signal which will indicate to the peripheral to respond. This second piece of informa-tion is control information and is described hereinafter.
The I/0 interface cards contain TTL compatible logic - for manipulating control and data from the calculator and/or the peripheral. All I/0 interface cards which are intended to be used with the calculator must provide storage either on the I/0 interface card or in the peripheral. Thus data being transferred from the calculator to the I/0 card must be stored at the instant the peripheral is requested to respond. Like-wise data coming from a peripheral must be stored until the calculator accepts it. This requirement is important and must be considered on all compatible interface cards.
The calculator can supply up to 100 ma. maximum at ~5 volts to each I/0 interface card. Power exceeding this abso-lute maximum must be supplied by the peripheral.
The followin~ table lists the pin assignments for all I/0 lines at the plu~-in slots on the calculator back plane, -~30-10587~;7 as viewcd flom thc rc~r of the calc~ tor, lcft to rigtlt.
EXT~I~NAL I/0 INTERF~C~
PIN ~SSIGN~IEN'l'S
2 +5 B +5 4 USED D ~ a 10/20 5 US~D E USED
12 D0 6 N DI 6
13 D0 7 ~ ~I 7
14 S0 ~ R SI 0
15 S0 1 S SI 1
16 S0 2 T SI 2
17 S0 3 U SI 3
18 C0 0 V C0 1
19 C0 2 W C0 3
20 SSI ' X SIH
21 CE0 Y CFI
22 1 Z STP
Figure 167 lists all I/0 lines with brief definitions and specifications and Figure 163 shows the source and rela-tive relationship of the I/O lines. The output address data lines tCo 0-3) transmit the address code along the party lines to all interface slots. These lines will go high and low ac-cording to information being shifted in or out of the I/0 Register. At anytime a peripheral is addressed the lines will -~31-10587~7 becomc steady 1 instructioll tim~ (8 lls) l~cLoro control il~forma-tion is passed to the I/O interf~ce card or belore data or status is taken from the I/O interface card or before data or status is takcn from thc I/O interface card and will remain constant until the control information is removed. After the control information is removed, the state of the I/O lines become unpredictable until the next addressing takes placeO
Address data coming to the I/O interface card is positive true and each interface may place 1 TTL load on each address line.
The output data lines (DO 0-7) output data from the A or B accumulator in 8 bit bytes from the 8 least significant locations in the I/O register to all interface card slots.
The logic state is positive true (Data = 1 = High). Each interface card may place 1 standard TTL load on each data line.
The output data status lines (SO 0-3) output status data from the A or B accumulator and are driven from the next four locations above the data out positions in the I/O register.
(DO positions = O thru 7; SO positions = 8 thru 11.) These lines are used for sending additional information to a peri-pheral. The logic state is positive true. One standard TTL
load may be placed on each output data status line. (Special drivers, fast data transfer, and interrupt do not make use of SO 3.) The input data lines (DI 0-7) transmit input data in 8 bit bytes to the 8 least significant bit positions of the I/O
register (locations O thru 7) from the I/O interface card.
Each "Data In" line has a lK pull up resistor to +5 volts and under the party line system must be driven low for a logical 1 from open collector gates on each addressed I/O interface -~32-, -- ~0587~;~
card. The logic state is negative true.
The input data status lincs (SI 0-3) receive informa-tion from the I/0 interface cards and transmit it to loca-tions 8 through 11 in the I/0 register. Each line has a lK
pull us resistor to +5 voltsO These lines are used to provide additional information to the calculator about the state of a peripheral. The logic state is negative true.
The negative true "Device Ready" output line (~E~) transmits a control signal, which when combined with an ad-dress code will initiate a peripheral response on the ad-dressed I~0 interface card. Device Ready is controlled by the I/0 interface driver and therefore may look different depending upon the driver. For example, when the calculator wishes to transmit data to the I/0 interface card or to initiate a peripheral response prior to receiving data from the peri-phera~, the calculator causes the "Devlce Ready" output line to go low and stay low until the peripheral response is over and the calculator receives the signal "Device Request" (CFI) from the I/0 interface cardO The "Device Ready" flip-flop always receives a clear signal whenever the I/0 register com-pletes a parallel load.
The "Device Request" party line ~ when driven low from an open collector gate on the I/0 interface card will cause the loading to parallel input information into the 12 least significant locations of the I/0 register. The active state of the line is low (negative true)0 The peripheral flag, indicating to the I/0 interface card the peripheral has received data/control or is ready to input data, is gated through an open collector nand gate onto the Device Request (~FO party line. The open collector gate -~33--- 105~7~7 is enabled by thc I/O intcrrace card's address alld Dcvice Ready (CEO). The Devicc Requcst line is pulled up inside the calculator by a lK resistor to +5 volts.
The Device Request (CFI) signal must stay low until Device Ready (CEO) has been cleared (goes high). At this time data transfer has terminated and peripheral's flag and control must be cleared in preparation for the next passO
Since a parallel load in the I/O register causes the Device Ready flip-flop to receive a clear signal, when a Device Reguest (CFI) is entered, a parallel load takes place and afterward Device Ready (~0 is cleared. The calculator uses Device Request in its general mode of data transfer.
The Half Status output line (STP) is a line that goes low when the STOP key on the calculator is depressed. It will stay low for the duration of the key depression. One standard TTL load may be placed on this line by each I/O
interface card.
The Prevent Interrupt output line (SI~-), when low in-dicates to the I/O inter~ace card that a request for service must not be given to the calculator. One standard TTL load may be placed on this line by each I/O interface card.
The Service Request (Lo) line (SSI)~ when driven low, causes the loading of parallel input information into the 12 ;
least significant locations of the I/O register and causes a CPU interrupt for service. The peripheral's request for service is gated with tl~e Prevent Interrupt (~E~ line onto the Service Request party line through an open collector nand gate~ A
lK pull-up resistor to +5 volts is connected to the line in-side the calculator.
The line 10/20 is used on the I/O interface card to _~3~_ 1t)58~67 differentiate betwcen the present c~lc~lator and other cal-culators, thereby permitting the use of compatible I/O inter-face cards. It is grounded in the case of the present cal-culator and open in the case of others.
The general format for all data transfer consists of 8 bit parallel bytes (this calculator, like the Xewlett-Packard model 9100 calculator uses a 7 bit field). Other data ~ormats are handled by specially developel drivers, such as the ROM plug-in module employed for drivi~g the type-writer.
The state o~ a peripheral is generally ch~cked be~ore attempting an output. This is done by ~irst inhibiting the i~terrupt system. The address o~ the I/O interface card is shifted into the I/O register. The decoded address code en-ables the open collector gates on the I/O interface card. The status of the peripheral is passed to the Status In li~es and loaded into the I/O register with an I/O instruction issued by the calculator. The I/O register information is tra~s-ferred to the A or B accumulator and processed. If the peri-pheral is ready, the output data word consisting of the ad-dress code, output status (if necessary) and the eight bit data byte is formed in the A or B accumulator. The output data word is trans~erred to the I/O re~ister after which the Device Ready (~E~) flip-flop is set. The I/O interface card receives the data, address code and DeYice Ready and a peri-pheral response is in~tiated. The calculator interrogates the state of the Device Ready flip-flop to deter~ine when the I/O
~nter~ace card has received the information a~d the peripheral response is done. The peripheral I/O inter~ace card signals the calculator it is done ~y transmitting the Device Request lOS8~;7 (CIF) signal to the calculator. The output waveforms are shown in Figure 168.
Before inputing data from an I/0 interface card it is necessary to determine if the peripheral has responded and is ready to input data.
After a peripheral response has been initiated, as described previously, the calculator waits for the Device Request (CFI) which loads the data into the I/0 Register and clears the Device Ready (CE0). The calculator checks the state of Device Ready and when it goes false (CE0 = HIGH), the cal-culator knows data is present in the I/0 Register and proceeds to shift it into the A or B accumulators for processing. The input waveforms are shown in Figure 169.
When blocks of data are to be transferred between a peripheral and the calculator, the interrupt is turned off, and transfer rates as high as 100,000 bits/sec may be possible. Before either input or output of a block of data can start, it is necessary for the calculator to check the status of the peripheral to see if it is turned on and ready. Register will remain unchanged during the block transfer. A single I/0 instruction shifts the 8 bit byte of data from the 8 least significant locations in A
or B to the 8 data locations in the I/0 Register; gives Device Ready (CE0 goes low) 120 ns after the shift is completed; and shifts the 8 most significant bits in A or B to the 8 least significant locations in A or B in preparation for the next transfer. (Note the Address and status field in the I/0 Register are not disturbed in the shlfting.) Device Ready stays true (low) until the peripheral has received the data and is ready for more.
The I/0 inter-,, lOS87~;7 face card then returns Device Request (CFI) to the calculator. The receiving of Device Request by the ca1culator causes loading of the parallel input party lines into the input status and input data locations of the I/0 Register, and clears the Device Ready signal (CE0 goes high). The logic sense of Device Ready is observed by the calculator and when it goes false (CE0 = High) the CPU proceeds to output the next eight bit byte of data.
If the output I/0 interface card is not returning information on the input lines all input lines will be high when the loading, described in the preceeding paragraph~ takes place. Therefore, if at the beginning the code in the output status field is being used by the I/0 interface card and must remain something other than all high it will be necessary for the I/0 interface card to receive the output status from the calculator and return it back to the status inputs so that when Device Request occurs the status field does not get changed in the I/0 Register.
Input: After determining if the peripheral is ready to start trans~erring a block of data the calculator turns off the interrupt and shifts the ad-dress code into the I/0 Register. (The Address code remains unchanged during the block transfer.) The Device Ready is given (CE0 = Low) to the calculator when the 8 bit data byte is ready for input. The Device Request signal causes the input data and status to be loaded into the I/0 Register and causes Device Ready to go false (~ = High). The calculator by checking when Device Ready goes false knows the data has been loaded. A
single I/0 instruction shifts the 8 bit data byte from the I/0 Register into the 8 most significant -10587~7 locatiolls in tllc ~ or B accumulatols (shiftillg the ~rcvious information in A or B 8 places to thc rigllt) and causes Device Ready to go true (CE0 = Low) 120 ns after the last bit has been shifted into A or B. As before if output status is to be retained on the I/0 interface card it must be returned to the I/0 ~egister upon each input data transfer.
Wave forms illustrating high speed operations resemble the wave forms for the calculator in Fi~ures 8 and 9.
The interrupt system is controlled by the Service Inhibit flip-flop. An interrupting peripheral is allowed to request service for input from the processor anytime the Pre-vent Interrupt line is disabled (~Da = High). The calculator allows only those peripherals which use the calculator key-codes to interrupt, and these must be user controlled such that only one interrupt at a time is taking place. Data (keycodes) is loaded into the I/0 Register at the instant the Service Request is given by the I/0 interface card (~ = Low) if Prevent Interrupt is disabled (SIH = High) or if Prevent Interrupt having been enabled (~D~ = Low) goes high while Service Request is being givenO At the same time a qualifier is routed to the CPU indicating a request for service is active.
Recognizing the request for service the CPU branches to the service routine which enables Prevent Interrupt (~E = Low) and loads the starting address for the software service routine into the M-Re~ister. After servicing the interrupt entry the Prevent Interrupt is disabled (SIH = High) and the next inter-rupt a'lowed to take placeO The interrupt waveforms are shown in Figure 170.
The following table lists the general I/0 instruction set and the associated codes:
~(~58767 I/O INSTRUCTION SET
.
NAME INSTRUCl`ION INSTRUCTION CODE
EXECUl'ION
TI~IE 15 1~ 13 12 11 10 9 8 7 G 5 ~ 3 2 1 C
-- ____~ ~ ~
STF9 ~s II }I H II - II L II H ll II SEL~CT CD
CLF9 ~s II II II H - H II II H II II
... . _ SFC9 ll S H H H II - H II/C II H ll L
SFS g llS H II H H - H H/C II L H L "
CLC 9 ~s H H H H - H H/C H L H II
.. ___ .
STC 9 ~s H H H H - H H/C H H L L "
.
OT* . 15 ~s H H H H A/B H H/C L L H ll LI* 15 ~s H H H H A/B H HjC L H L H "
. . . . _ . ~
MI* 15 ~s .
-~39-. ~
3LO S ~ ~t>'7 The following describes the function of each I/0 instruction with the 5 allowable select codes.
STF <SC> Set the flag. STF is a 240 ns positive true pulse which accomplishes the following with the various select codes.
STF 0P Not used by the calculator.
STF Pl a. Sets the Service Inhibit flip-flop to the true state (~ = Low; interrupt not allowed).
b. Causes parallel input data and status to be loaded into the I/0 Register.
STF 02 Generates a 240 ns positive true MCR pulse for the magnetic card reader.
STF 04, P8, 16 Not used by the calculator.
CLF <SC> Clear the flag. CLF is a 240 ns positive true pulse which accomplishes the following with the various select codes.
CLF PP Not used by the calculator CLF 01 a. Clears the Service Inhibit flip-flop to the false state. (~ = High; interrupt allowed.) b. Loads address locations in I/0 Register with 0'5. (P = Low) c. Clears Device Ready flip-flop (~ = High).
CLF 02 Clears magnetic card reader flag flip-flop.
CLF P4 Clears Printer Enable flip-flop (PEN = Low).
CLF 08 Clears Display Enable flip-flop (DEN = High).
:lOS87~
CLF 16 Generates a 240 ns positive true KLS pulse.
SFC <SC> H/C Skip if flag clear. SFC is a 240 ns positive true pulse which accomplishes the following with the various select codes. If C is given a 240 ns CLF pulse is given after SFC.
SFC ~0 Causes the next instruction to be skipped if the STOP key has not been depressed.
SFC Pl Causes the next instruction to be skipped if Device Ready is true (CEO = Low).
SFC a2 Causes the next instruction to be skipped if the magnetic card reader flag flip-flop is clear.
SFC 04 Causes the next instruction to be skipped if the printer enable flip-flop is clear. (~ = Low).
SFS <SC> H/C Skip is flag set. SFS is a 240 ns positive true pulse which accomplishes the following with the various codes. If C is given then a Z40 ns CLF
Pulse is issued after SFS.
SFS 00 Causes the next instruction to be skipped if the STOP key is depressed.
SFS 01 Causes the next instruction to be skipped if Device Ready is false (CEO = High).
SFS 02 Causes the next instruction to be skipped if the magnetic card reader flag flip-flop is set.
.. , :. .,:
, . ~ ... .
lOS8767 SFS 04 Causes the next instruction to be skipped if the printer enable flip-flop is set (PEN = High).
CLC <SC> H/C Clear Control. ~ is a 240 ns negative true pulse and is not used by the calculator. If C
is given then a 240 ns positive true CLF pulse is given after CLC.
STC <SC> H/C Set the Control. STC is a 240 ns positive true pulse which accomplishes the following with the various select codes. If C is given a 240 ns CLF pulse is issued after STC.
STC 00 Not used by the calculator.
STC 01 Sets the Device Ready flip-flop (CEO = Low).
STC 02 Generates a 240 ns positive true MLS pulse for the magnetic card reader.
STC 04. P8, 16 Not used by the calculator.
OTX <SC> H/C Output A or B causes data bits from A or B to be shifted to the I/O Register and accomplishes the following with the various select codes. If C
is given, a 240 ns CLF pulse is given after OTX is executed.
OTX 00 The 8 least significant bits in the A or B register are shifted non-inverted to the 8 least sign~ficant locations in the I/O Register, and 120 ns after the 8th shift the Device Ready flip-flop is set (CEO ~ Low). The 8 most significant ~V58767 bits are shifted right 8 places and the least 8 significant bits are recirculated to the 8 most significant locations in the A or B registers.
The 8 most significant bits in the I/O Register are untouched.
OTX 01 Sixteen bits from the A or B register are shifted non-inverted to the I/O Register. The data in A
or B recirculates.
OTX 02 Not used by the calculator.
OTX P4 Same as OTX 01 and in addition, 120 ns after the16th bit has been shifted the printer enable flip-flop is set.
OTX 08 Same as OTX 01 and in addition, 120 ns after the16th bit has been shifted the display enable flip-flop is set.
OTX 16 Same as OTX 01 and ln addition, 120 ns after the16th bit has been shifted the 240 ns KLS signal is generated.
LIX <SC> H/C Load into A or B. Loads data bits from the I/O
Register into the A or B Registers and accomplishes the following with the various select codes. If C is given, a 240 ns CLF pulse is given after LIX
is executed.
LIX 0P The eight least significant bits in the I/O Register are shifted inverted ~o the eight most significant locations of A or B, and 120 ns after the 8th shift the . -.. - ~ . - . .
~1)58'76i7 Device Ready flip-flop is set (CE0 = Low). A
or B is shifted right eight places as the I/0 Register data comes in. The 8 most significant bits in the I/0 Register are untouched.
LIX 01 The 16 bits of the I/0 register are transferred inverted to the A or B register. Data in the I/0 Register is lost.
LIX 02. 04, 08, 16 Not used by the calculator.
MIX <SC> H/Ç Merge into A or B. Merges data from the I/0 Register into A or B registers and accomplishes the following with various select codes. If C is given, a 240 ns CLF pulse is given after MIX is executed.
MIX 00 The eight least significant bits in the I/0 register are merged with the eight least signifi-cant bits of the A or B register and shifted to the 8 most significant locations of A or B; 120 ns after the merge takes place the Device Reaqy flip-flop is set (~ = Low). A or B shifts right 8 places as the data is merged and shifted to the most significant locations. The 8 mDst significant bits of the I/0 Register are untouched.
MIX 01 The 16 bits of the I/0 Register are merged with the 16 bits of the A or B register and contained in the A or B register.
, ~ .- . .
.,., ' . , .~
lOS~7~i7 MIX 02, ~4, 08, 16 Not used by the calculator. Examples of various drivers which transfer data are given below:
Example 1: Typical Subroutine to Get Status of I/O Device.
Calling Sequence:
LDB Select Code JSM Stat Stat STF 1 Turn off the interrupt system.
OTB 1 Load I/O Register with select code.
STF 1 Load I/O Register with status of I/O device.
LIA 1 Load A Register with status information.
CLF 1 Turn on interrup.
RET Return.
Example 2: Typical Subroutine to Output an 8 bit character.
Calling Sequence:
OTA 1 Output 16 bits to the I/O Register.
SFS 1 Loop until I/O flag is set by the JMP *-1 output device.
20 Example 3: High speed output where the calculator is faster than output device.
Calling Sequence:
ST* I -(Number of 16 bit words to be output) +1 ST* J Atdress of first word in the array.
LDB SC Select Code OUT2 JSM STAT Get status of output device RAR 9 and position it.
-44~-los8767 Example 4A: Typical subroutine to input an 8 bit character.
Calling sequence is:
LDB Select code JSM In ... Return is made with the data in the A Register.
IN STF 1 Turn off interrupt system OTB 1 Load I/O Register with the select code STC 1, C Pulse the flag & turn lnterrupt system on JSM STAT Get status off the input device RAR 9 and position it.
SAP ~-2, C If device is busy then continue to loop SAR 7 else position data bits RET Return.
SAP OUT2 If device is busy, continue to loop STF 1 Turn off interrupt system.
OTB 1 Output select code LDB 1 B+Counter for number of words to be output L M J, I Load next data word SEC *+1, C E+0 OTA 0 Output 8 bits from A
SFS 1 Loop until device sets JMP *-1 flag.
SEC *-3, S If E=~ and E~J then loop to output last 8 bits ISZ J Increment array address pointer RIB *-7 Increment count and loop if not finished.
CLF 1 Turn on interrupt system RET Return Example 3B: If the output device is faster than the calculator then fewer in-structions can be used.
, ~
, 10587~
OTA 0 Output first 8 bits OTA 0 Output second 8 bits.
Example 5A: High speed input where the calculator is faster than the input device.
Calling sequence:
ST* I -(Number of 16 bit words to be input) + 1 ST* J Address LDB SC Select code JSM In2 In 2 JSM STAT Get status of input device RAR 9 and position it.
SAP In2 If device is busy, continue to loop STF 1 Turn off interrupt system OTB 1 Output select code STC 1 Command device to read LDB I R:Counter for number of words to be input SEC *+1, C E+0 SFS 1 Loop until input JMP *-1 device sets flag LIA 0 Load 8 bits from I/O Register SEC *-3, S If E=0 and E+l then loop to input last 8 bits STA J, I Save data word in array ISZ J Increment array address pointer RIB *-7 Increment count and loop if not finished.
CLF 1 Turn on interrupt system RET Return Example 5B: If the input device is faster than the calculator then the number of instructions can be reduced.
-447- ~;
LIA ~ Input first 8 bits LIA 0 Input second 8 bits All output I/0 interface cards which are to be fully inter-changeable with both the present and other calculators must have storage either on the I/0 interface card or in the peripheral to which information is being transmitted. Figure 171 illustrates the logic used to interface . an X-Y plotter which has storage on the I/0 interface card.
Blocks (A) and (B) are the storage latches which store information coming from the I/0 register. When the output of gate (C) goes high, data is latched; when low, the outputs of the latch track the inputs. Gates (D) decode the Address code (14 = lllp) and pass it positive true to gate (E).
Device Ready (CE0) is also passed positive ~rue to gate (E). Gates (H) are open collector and pass status and Device Request (CFI) onto the input party lines. An example of a 9810A output would be: Output the address 14 which enables status gates (H) and see if the power is on. If on, output address, status, and data to gates (A), (B), and (D). The output of (C) is low allowing data and status to pass. Next give Device Ready (CE0 = Low) this enables flip-flop (G), clocks flip-flop (F) wh~ch causes (A) and (B) to latch, and sends control to the peripheral. The peripheral acknowledges receipt of control by returning FLAG (FLAG = High) in a busy state this continues to keep (A) and (B) latched and clears control flip-flop (F). When ~-os876q the periph~r~l is donc actill6, thc FLAG is rcturncd to thc not busy state (FL~G = Low) wllicll clocks flip-Llop (G) and causes output at (C) to go low enablillg (A) and (B)o The output of (G) drives the CFI gate which has been enabled from (E) and CFI goes low CF~ is received by the calculator which responds by returning ~ high. This causes the output of (E) to go low, clearing flip-flop (G) and returning C~I
high. This completes 1 output cycle.
All input I/0 interface cards which are to be fully interchangeable with both the present and other calculators must have storage either on the I/0 interface card or in the peripheral from which information is being received. Figure 172 illustrates the logic required on a general purpose interface card with storage.
Block (A) is used to store information coming from the peripheral. (B) stores status coming from the I/0 register which may be needed by the peripheral. The output tracks the input whenever the enable on the latch is low.
Block (C) decodes the address code into one of 10 addresses which are jumper selectable. ~n example of a calculator input would be as follows. The ad~ ess code would be de-coded by (C). The calculator would load status through the open collector input status gates (D). If the peripheral is on and ready, the address code and output status (if necessary) would be sent to (B) and (C). The decoded address is passed, positive true, to gate (E). The enable at (B) is low so that status is passed to the peripheral. The Device Ready is given (-E~ = Low) and comes to (E) positive true. The output of (E) clocks flip-flop (F) through gate (H)u The output of (F) gives control to the peripheral and also enables -44g-:. .
- lOS8767 (A) to receivc data. Tllc pcriplleral respollds in a b~lsy state (FLAG = l~igh). lYhcn data is re~dy to be input the FLAG is driven lo~vO Data is latched when the FLAG goes low in (A). Also when FLAG goes low, (G), having been enabled by the output of (H), is clocked driving (J) from its Q output. (I) is enabled by the output of ~II) and so CFI is driven low. Data is loaded into the I/O
register from open collector gates (I) and CEO driven high as a result of the calculator receiving CFI This clears flip-flop (G) and disables the input gates (I) completing an input cycleO
Figure 173 illustrates the logic required, on an I/O interface board, to input using the interrupt.
A power preset circuit, block (A), will be neces-sary on this card to prevent an interrupt when the peripheral power is turned off or onO This can usually be done by sensing the peripherals' +5 volts and presetting when the voltage drops below 3 to 4 volts.
The calculator must be in a display routine such that the Prevent Interrupt is false (~E = High) before an interrupt can take place. This enables the flip-flop (B) to be clocked from the peripheral FLAG. The clock inputs to (E) and (F) have been high enabling the storage latches prior to th~ receipt of FLAG. FLAG clocks (B) causing (E) and (F) to latch, enabling open collector gates (H) through gates (I) and (J), and drives gate (G) which sends Service Interrupt (~3~ 5 Low) to the calculator.
The calculator responds by loading the data into the I/O
register and returning Prevent Interrupt true (~E = Low).
This clears (B). Prevent Interrupt is roturned ~alse after the entry has been processod and tho cyclc is complctc.
lOS8~67 KEYBOARD INPUT UNIT
The keyboard input unit is shown in Fi~ures 174A-D and 175. It includes a contactless keyboard of the type shown and described in U.S. Patent 3,668,697, issued June 6, 1972.
The contactless keyboard is made up of an array of printed circuit transformers. Each transformer has its secondary and primary interlaced in a spiral coil as shown in Figures 176-177. The secondaries of all the coils are tied in series to form the sense line. The primaries of the coils are arranged in separate pairs. Each coil is connected in series, with opposite polarity, to its pair as shown in Figure 178.
~very pair has a drive and sink line, which i~ being selected and driven by the scanner.
Centered above each coil is a metal disc at the end o~ the key shaft. When a key is depressed the disc proxi-~ates the coil. The disc acts like a shorted turn and re~
duces the coupling of the coil, and unbalances the pair.
This unbalance is ampli~ied by the comparator, when it is greater than the on bias. The comparator triggers the one shot, which turns off the scanner and lowers the on bias.
The scanner remains at its present state, which corresponds to the drive and sink line of the key de~ressed This state is the keycode of the key pressed. When the key is released a spring retracks the key and disc. When the unbalance is less than the new bias~ the comparator turns off and the scanner starts again ready for a new key. The two bias levels give the key mechanical hysteresis.
When two keys are depressed the first one down will 1058~
be entcred, and as long as a key is down no otl~er key can be entered. An exception is when the other key is its pair. In this case the two keys will cancel each other Wllen the first key is released, the second one tvill be entered. When the first key is released, while more than one other key is down, the next key to be entered will be the next in the scan sequence, not necessarily the second key down.
For the keyboard to work each pair of primary coils must be balanced. To balance a pair of coils the following rules should be used when laying out the printed circuit board:
l. Sense lines must run in pairs. The closer the better.
They should be thin traces.
2. The sense windings of a pair of coils can be anywhere on the sense line. For best results they should be close.
30 Drive lines should be in pairs when possible. Drive clamp and source lines should be grouped together well away from the sense lines. When a drive line crosses a sense line it should be at right anglesO
4. Connect to spiral so to add a turn (or part of a turn) not to subtract. Try to duplicate additional turns on a spiral pair. Connect to spiral at a right angle~ from a distance.
5. For a pair of spirals separated by some distance, run the common connection away from the sense line and in the drive grouping.
6. Check each pair of spirals for errors in drive or sense polarity. This can cause either an incorrect code (least digit), or a constant full output. One method to check for proper polarity is to assign current direction for both drive and sense. Then at each spiral check for proper polarity. This is illustrated in Figure 179.
105876~
MAGNETIC CARD READING AND RECORDING lJNIT
The magnetic card reading and recording unit is shown in the block diagram of Figure 180 and in the detailed schematic diagram of Figure 1~1.
The manner in which it interacts with the calculator and operates to record and load secure and unsecure programs and to separately record and load data is shown and described in the block diagram of Figure 182, the flow charts of Figures 60-61 and 63-65, and in the memory map of Figure 62.
Operation of the card reader is largely automatic. It is only necessary to specify the type of operation and the limits desired. These commands are entered via the calculator keyboard. The calculator then determines the necessary commands required to cause the magnetic card reader to perform the desired operation.
Several modes of operation are possible. Programs can be recorded on magnetic cards and loaded back into the calculator. Similarly, program and data information can be recorded and loaded, or data alone. Very long programs or blocks of data can be stored on several cards. The information is loaded back into the calculator by inserting the cards into the reader in the same sequence as they were recorded. The proper linking of the information stored on the cards is automatically performed by the calculator.
Information is stored on the magnetic card in 3 bit bytes. Three traGks record the information and a fourth track provides a timing mark. Two bytes form six bit words in the calculator. The card reader automatically begins and terminates the recording, irrespective of the length of card used.
Different card lengths can be mixed together without affecting --~5~-., ."
- lOSB~67 the OpCl'atiOI~ of tlle lcaclcl. Calcis may l~c intclcil.ll~Dc~ flom one calculator to anotllcrO
No mechanical SWitCIlCS are uscd in tile ca~d readcr, Tlle only movinD part is tllc card drive motor and capstan, l`he mecllanical assembly alld electlonics assembly are modular and can be replaced as separate and independent units in tlle calculator.
,' ' `, ' ' ~ ' ':
lU5~3767~
OUTPUT DISPLAY UNIT
As shown in Figures 183 and 184A-B, the output di~play unit includes three fifteen-character rows of seven-segment light-emitting diode arrays. Each array requires an anode driver for each o~ its seven se~ments and one for the decimal point.
The cathodes are common to all the diodés in one character.
Respective anodes for t~e characters o~ a register are tied together to one driver. A series PNP transistor enables one o~ three sets of eight anode drivers each. The cathodes of a column of three characters are tied together to one o~ fifteen cathode drivers.
The data required to operate the display is as ~ollows: -i. Four bits to determine the column to be enabled.
2. One of three bits to determine the register.
3. Eight bits to determine the diodes of a character to be lighted.
4. A line to enable the display when the data is present .
The duty cycle is less than 1/45 requiring pulses of more current than a character c~uld stand continuously. A
retriggerable one shot is fired at every display enable pulse and will disable the column drivers after l/2 ms. i~ the machine han~s up.
: , .
10587~i7 OUTPUT PRINTER UNIT
Several methods have been described for producing printed characters by thermal means (see particularly U.S.
Patent 3,161, 457 issued to H. Schroeder et al) but they typically employ a rectangular matrix of resistors to form an entire character at once. Commercial versions of this sort s~f printer are marketed by National Cash Register and Texas Instruments. As described in Schroeder's patent, a matrix five elements wide and seven elements high is typically em-ployed.
The output printer unit employed in this calculator isconstructed as ~hown in Figures 185, 186, 187A-B, 188, 189A-D, and l91A-B. It includes a row or print elements distributed linearly acrocs a printing head, as shown in Figure 188, to print a 16-character line. Each print element is an electrical resistor, of a size and ~hape intended to produce a dot on thermally-sensitive paper moved at right angles to the line of print elements. Dots are fonned in the conventional manner by pulsing the resistor element with a pulse of electrical current, which raises its temperatur by joule heating.
Each OI the sixteen characters o~ each line is Iormed in a 5 x 7 dot matri~c. For e~cample, as illustrated in ~igure 192 the letter A is produced by printing the darkened dots in the top row and then stepping down to the next row, etc.
Each line of print contains sixteen 5 x 7 matrices.
The matrices are made OI seven rows ol~ 80 dots spaced in five dot Foups- to produce sixteen characters. The pri~ter pro-duces each line`of print by printing the top row of all six-te-n character8 and then stepping dow~ to print row 2 until all seven rows are printed. Three blank steps are then added - los~7~7 to produce tllc sp~ce b~twoell lines.
Each of tllc seven rows of printing contains 80 dots (5 for each of the sixteen characters) which may or may not be printedO This requires that eighty information bits be sup-plied for each row printed. To accomplish this, each row is split into four groups of twenty dots (four characters).
SSince the I/0 Register of the calculator is only sixteen bits long an extra ten bit shift register is contained in the printer hardware ) Each group of 20 bits is transmitted to the printer along witll the group number by the I/0 Register and is printed when the printer enable signal is given.
The printer then prints that group of dots and returns a printer flag signal to the calculator. The next group of in-formation is then supplied until all 28 groups have been printed. The three step commands are then given to provide the space between linesO
The printer requires the following information to print any group o~ dots:
(1) Dots to be printed, (2) Group number, and (3) Printer enable.
As shown and described in the flow chart of Figure 193, this information is transmitted to the printer through the cal-culator I/0 register. Since the total number of information bits needed is greater than the I/0 registers length, two 16 bit words are transmitted to the printer~ The first 16 bit word contains the dot patterns for characters 1 and 2 as shown in the following table:
-~57-. .
105~7~7 CONT~NT OF I/O R~ISTE~ ~FT]~H~ FIRST LO~DING
Cll~r~cter 2 Cll~ cter 1 I L Hl I I ¦l~ lllL lll I I l}~
¦ Dot~ Dot¦Dot~ Dot ¦ 0 1 0 1 0 1 0 L 0 1 0 C03 C02 C01 C00 S03 S02 S01 S00 D07 D06 D05 D04 D03 D02 DOl D0 0 - Don't Care Character one is contained in bits S02-S00 and DO7, DO6 with the left dot in bit S02 and the right dot in DOG. Character 2 is contained in bit C03-C00 and S03 with the left dot in C03 and the right dot in S03. When the I/O Register is loaded with the second 16 bit word these bits will appear in the internal 10 bit shift register. The second 16 bit word contains the dot pattern for characters 3 and 4 and the group number as shown in the following table:
I/O REGISTER AFTER SECOND LOADING
Character 4 Character 3 Group ~ ~_ ~
L ~ I R H L H _ R H _ 0 1 Dot IDot Dot _ . Dot 0 0 0 0 1 1 C03 C02 C01 C00 S03 S02 S01 S00 D07 D06 D05 D04 D03 D02 DOl D00 .
0 - Don't Care Character 3 is contained in bits S02-SOO and D07, D06 with the left dot in S02 and the right dot in D06, Character 4 is contained in bits C03-C00 and S03 with the left dot in C03 and the right dot in S03. The group number is contained in bits D00 and D02. Groups are numbered as follows:
From Left to Right 1 1, 2, 3, 4 o 0 2 5, 6, 7, 8 0 3 9, 10, 11, 12 1 0 4 13, 14, 15, 16 When group 4 is detected the printer automatically steps to the next line. The time interval between printer enable and the return of printer ~lag is extendcd to allow the system 30to physically move~
l()S87tj7 The printin~ spccd is ~iven il~ the follo~Yin~ table:
Group 1 8 ms Group 2 8 ms Group 3 8 ms Group 4 18 ms Row 1 42 ms Ro~ 2 42 ms Row 3 42 ms Row 4 42 ms Row 5 42 ms Row 6 42 ms Row 7 42 ms Space18 ms Space 18 ms Space 18 ms Total Time to Print 1 line 348 ms Lines per second 2.87 ms As shown in Figures 185-186, paper is loaded into t$e output printer unit by li~ting the w~re bucket cover 220 and placing a roll of paper 222 with the free end into the paper bucket formed by the front and rear bucket halves, 224 and 226 respectively. The only care needed by the operator is to be ~ure that the paper uprolls foxward from the bottom. The ~ire bucket cover pcrforms a dual function o~ keeping the free end of the paper in the bucket while loading and af~er the paper is }oaded prevents the free end ~rom relaading itsel throug~ the mechanism.
3~ - -10587~i7 Thc ~vci{rl~t ol tl~e pal)cr t.hCll StletCIl('S thc r~ )Cr belts 228 a1~c1 tlle ro]l oi p;l1)cl rolls fol\v.~ld ~ i] it rcsts agai11st thc pap~l ~uidc 230. Tlle p;lpCl' 1'0115 f~rward d~1c to the "do~vl)hil]" slopc ~L thc bc]t fro1n tllc top o~ the rear idl~r pullcy 232 to 1;he botlo1n of the papcr gl1i(1c.
Wit11 the roll of p.~per in thc pOSitiOII d~scri~c~ above tl~e belts moving Ior~var(1, t1-c Irce cnd ol the paper i9 COlI-straincd by the ~el-ts, pa])er guidc a11d roll to movc belo~v thc paper guide and bet~ve~11 it and thc bclts.
Thc belts are drive11 by tlle drivc pulloy 234 which is in turn driveJI by a gear set Iro1n thc p]aten 236. The platen is driven by the motor 238 via a belt and gear set.
The dia1neter a1ld speed o~ the platen is such that its sur-~ace speed is approximately 5% faster t11an 1:11nt ~F 1~ t~
to ir.sure that t11e paper is always under tension after loading is completed. The drive and rear idler pulleys are crowned so that the belts ~vill bc sel~-centering. The ~ront idler pulley 270 is flat and serves to keep the lower portion of the belt out o~ t11e bucket area.
The print head 242 is pressed against the paper and platen by means of a spring, hence it is necessary to remove the print head from the platen w1lile loading paper. This ~s accomplished by the head li~ter and paper deflector 244 such that when it is rotated on its axis it cams the print head of~ the platen and positions a small plate in the path o~ the paper which guides the paper up and between the platen and print head.
The paper is guided through the mechanism while loading and while the printer is working by edgc guiding the paper. Ordinarily paper docs not lend itsel~ well to edge guiding due to its very low compressive strength. To over-come this the paper is bent around the convex bottom sur-face of the paper guide and the belt, which is under tension, is very near tho edge thereby preventing the paper ~rom buckling. The relationship of the paper, pnper guide and belts can be seen by looking at Section AA of Figure 186.
When selccting materials for the various parts of the loading mec1la11is1n it is important to be sure that the coefficients o~ friction between the various parts are compatible. The C.F. between the paper and paper guide should be low relative to the C.F. between the paper and belts in order that thc belts can drive the paper throug1l the mechanis1n. Similarly, the C.F. between the paper and platen should be hig1l relative to the C.F. between print head and paper in order that the paper can be driven througll while printing. In addition, the drag introduced by the belt and paper guide due to the paper moving faster than~the belt ~vhile printing must not be so great as to tear the paper or impose an impossible load on thc motor.
-- lOS~7f~7 The ri~ht h~lf of top panel 90 of l:he calculator housin~ is hinged at the back and provided with a handle 246 at the front so that it may readily be raised by the user and stopped at an oblique uprigllt pOsitiOll to expose and facili-tate replenishment of the supply of thermal-sensitive paper for the output printer unit and also to serve as a music stand for holding operating or program-running instructions or any other material the user desired. A transparent plastic retainer is mounted on the underside of the hinged right half of the top panel 90 to hold such materialO
-4~1-lV~ 7 POWER SUPPLY
The power supply system employed in the calculator -is constructed as sh~wn in Figures 194-196 and 197A-B~ As shown in Figure 194, a centertapped transformer secondary is connected to terminals 2-3, 2-1, 2-2, and 2-4. The AC voltage from the transformer is rectified by diodes CRl and CR2 and ~iltered by capacitor Cl. The output o~ this rectifier/filter circuit is nominally 18 volts DC at 2.7 amps with a 2 volt peak to peak ripple.
Ql and Q2 serve as a switch to connect the ~ive volt output bus to the 18 volt unregulated supply through inductors Ll and L2. CR3 serve~ to clamp the input o~ Ll to ground when Ql and Q2 are switched o~. Current flow in Ll and L2 are substantially constant and equal to the load current.
Loss in high current transistor Q2 is mi~imized be-cause Q2 can be completely saturated. Loss in driver tran-sistor Ql is minimized because Ql can also be saturated. Re-sistor R7 limits the ma~imum drive current to Q2. Losses in R7 can be minimized by proper positioning o~ the tap on Ll consistent with transistor parameters and circuit r~quire-ments.
ICl is a linear di~ierential ampli~ier ~ntegrated circuit to drive Ql and Q2. Any di~erential ampli~ier with æu~icient volt~ge capability and bandwidth will ~ork. Since the ampli~ier employed is linear, R7 and R4 have been included in the circuit to provide su~icient hysteresis ~or reliable switching. This hysteresis stabilizes the switching ~requency and thus stabiiizes the switching losses.
Because hysteresis has been added to the circuit, a signi~icant ripple signal (~t the switching ~requency) must -46~-105~7~7 be present on tho ~eedb~ck signal to the mplifier, This need for a ripple sigllal limits the amount of capacity that can appear between tlle output of Ll and ground. L2 serves to isolate this point from the rest o~ the system. The amount of capacity that can appear between the output of LZ and ground is essentially unlimited and significantly reduces power supply ripple, and greatly improves response to load transients.
The second winding o~ L2 is a path ~or the feedback from the remote sensing. The required ripple signal is added to the $eedback signal by transformer action in L2. Another possible configuration is shown in Figure 198.
The power supply also includes an overvoltage crowbar circuit (Qr, CR4, and R9) and a short circuit shut-down circuit (using Q5). In the event that the +5 volt bus is grounded, or the crowbar is triggered, Q5 saturates and locks ICl of~.
The resistor R8 ma~es a current generator of ICl. Re-sistors R5 and R6 discharge the bases o~ Ql and Q2 respectively.
IC2 and ~ts assoclated components generate a "power on pulse"
to initialize the instrument. I~l ts referenced and powered ~rom an external +12 volt supply. Powering the IC ~rom ~12 rather than the unregulated ~18 reduces power dissipation in ICl.
The l24 volt supply o~ Figure 196 is referenced by the +16 volt supply with the amplifier common returning to 112 VoltB to minimize power loss and voltage stress in ICl of F~gure lg6. Thè ~12 volt supply of Figure 197A references the -12, ~5, and l16 supplies directly. The +12 amplifier ICl of Figure 197A may be biased either from the unregulated supply - . . - ~ ~
1~358~f~7 for th~ +12 volt supply or Lrom tllc operating +lG volt supply.
Diodes CR5 and CR6 dctcrmine the appropriate sourcc. Tllis provides a grcater power supply margin for the +12 volt supply.
Similarly the +1~ volt amplifier is biased from the +20 to give that supply greater margill.
All supplies except the +20 volt supply are current limited. The +24 volt supply is current limited at a value greater than the rating of its series fuse. If a short circuit occurs in the +24 volt supply, it will current limit until the fuse opens. The average current from this supply is 1.1 amps with transients to 2 ampsO The current limit is set to 2.5 amps. There is not sufficient thermal capacity available to allow Ql of Figure 196 to carry sustained short circuit current so the fuse has been included to protect the various power supply components. All supplies except the +20 volt supply are crowbar protected against over-voltage.
-46~-.
10587ti7 TYPEWRITER I~TERFACE
This interface couples the Facit-Od~lner model 3841 output typewriter to the calculator.
The unit mounts directly on the back of the typewriter.
Communications with the calculator are made through about five feet o~ cable which is terminated by t~e I/O plug containing a board for buffering and some logic.
Referring to Figures l99~-B and 200A-C, charactersfrom the calculator appear on the data lines as ASCII codes. These codes are recoded by a ROM into the si~ bit Facit*typewriter code ~or the 46 type bars, and one bit for upper case shift Functions such as space, tab, line feed, etc. are recoded for easy recognition in the interface since each Lunction must be driven by a separate line. A data latch after the RO~
holds codes for processing. If new data arri~es during this processing, the two codes are compared to determine if they both drive t~e same type bar and if the~ are both numbers.
Non-repeating numbers can be typed at 14.5 characters per second, otherwise typing speed is 12 characters per second (reduce these speeds 17~ for 50HZ operation). Codes in the latch are gated to the program solenoids or the function solenoids by the control logic.
To understand the coding, notice that two blocks of codes on the Facit typewriter code map are empty. If all function codes are put in these bloc~s, they can be identified by control logic by testing for (~-4) Each function code puts a l on one of fiYe lines and this line opens the correct solenoid gate.~Bit 8 is used to discriminate between two sets of function gates. In the czse of a program solenoid code, bit 8 identifies numerals.
* trade mark lQ58'7~7 The control clock is provided ~y a sync. pulse which is generated in the typewriter by a vaned wheel attached to the end of the main drive shaft. The vanes interrupt a light beam. When a type cycle is initiated, a modulo eight counter counts sync. pulses and the count is decoded by a 1 or 8 decoder. At each of the eight states, combinational logic can enable solenoid gates, set or clear flag ~lip-flops or change the counter to state zero, or state 6, or inhibit the counter.
Figure 167 lists all I/0 lines with brief definitions and specifications and Figure 163 shows the source and rela-tive relationship of the I/O lines. The output address data lines tCo 0-3) transmit the address code along the party lines to all interface slots. These lines will go high and low ac-cording to information being shifted in or out of the I/0 Register. At anytime a peripheral is addressed the lines will -~31-10587~7 becomc steady 1 instructioll tim~ (8 lls) l~cLoro control il~forma-tion is passed to the I/O interf~ce card or belore data or status is taken from the I/O interface card or before data or status is takcn from thc I/O interface card and will remain constant until the control information is removed. After the control information is removed, the state of the I/O lines become unpredictable until the next addressing takes placeO
Address data coming to the I/O interface card is positive true and each interface may place 1 TTL load on each address line.
The output data lines (DO 0-7) output data from the A or B accumulator in 8 bit bytes from the 8 least significant locations in the I/O register to all interface card slots.
The logic state is positive true (Data = 1 = High). Each interface card may place 1 standard TTL load on each data line.
The output data status lines (SO 0-3) output status data from the A or B accumulator and are driven from the next four locations above the data out positions in the I/O register.
(DO positions = O thru 7; SO positions = 8 thru 11.) These lines are used for sending additional information to a peri-pheral. The logic state is positive true. One standard TTL
load may be placed on each output data status line. (Special drivers, fast data transfer, and interrupt do not make use of SO 3.) The input data lines (DI 0-7) transmit input data in 8 bit bytes to the 8 least significant bit positions of the I/O
register (locations O thru 7) from the I/O interface card.
Each "Data In" line has a lK pull up resistor to +5 volts and under the party line system must be driven low for a logical 1 from open collector gates on each addressed I/O interface -~32-, -- ~0587~;~
card. The logic state is negative true.
The input data status lincs (SI 0-3) receive informa-tion from the I/0 interface cards and transmit it to loca-tions 8 through 11 in the I/0 register. Each line has a lK
pull us resistor to +5 voltsO These lines are used to provide additional information to the calculator about the state of a peripheral. The logic state is negative true.
The negative true "Device Ready" output line (~E~) transmits a control signal, which when combined with an ad-dress code will initiate a peripheral response on the ad-dressed I~0 interface card. Device Ready is controlled by the I/0 interface driver and therefore may look different depending upon the driver. For example, when the calculator wishes to transmit data to the I/0 interface card or to initiate a peripheral response prior to receiving data from the peri-phera~, the calculator causes the "Devlce Ready" output line to go low and stay low until the peripheral response is over and the calculator receives the signal "Device Request" (CFI) from the I/0 interface cardO The "Device Ready" flip-flop always receives a clear signal whenever the I/0 register com-pletes a parallel load.
The "Device Request" party line ~ when driven low from an open collector gate on the I/0 interface card will cause the loading to parallel input information into the 12 least significant locations of the I/0 register. The active state of the line is low (negative true)0 The peripheral flag, indicating to the I/0 interface card the peripheral has received data/control or is ready to input data, is gated through an open collector nand gate onto the Device Request (~FO party line. The open collector gate -~33--- 105~7~7 is enabled by thc I/O intcrrace card's address alld Dcvice Ready (CEO). The Devicc Requcst line is pulled up inside the calculator by a lK resistor to +5 volts.
The Device Request (CFI) signal must stay low until Device Ready (CEO) has been cleared (goes high). At this time data transfer has terminated and peripheral's flag and control must be cleared in preparation for the next passO
Since a parallel load in the I/O register causes the Device Ready flip-flop to receive a clear signal, when a Device Reguest (CFI) is entered, a parallel load takes place and afterward Device Ready (~0 is cleared. The calculator uses Device Request in its general mode of data transfer.
The Half Status output line (STP) is a line that goes low when the STOP key on the calculator is depressed. It will stay low for the duration of the key depression. One standard TTL load may be placed on this line by each I/O
interface card.
The Prevent Interrupt output line (SI~-), when low in-dicates to the I/O inter~ace card that a request for service must not be given to the calculator. One standard TTL load may be placed on this line by each I/O interface card.
The Service Request (Lo) line (SSI)~ when driven low, causes the loading of parallel input information into the 12 ;
least significant locations of the I/O register and causes a CPU interrupt for service. The peripheral's request for service is gated with tl~e Prevent Interrupt (~E~ line onto the Service Request party line through an open collector nand gate~ A
lK pull-up resistor to +5 volts is connected to the line in-side the calculator.
The line 10/20 is used on the I/O interface card to _~3~_ 1t)58~67 differentiate betwcen the present c~lc~lator and other cal-culators, thereby permitting the use of compatible I/O inter-face cards. It is grounded in the case of the present cal-culator and open in the case of others.
The general format for all data transfer consists of 8 bit parallel bytes (this calculator, like the Xewlett-Packard model 9100 calculator uses a 7 bit field). Other data ~ormats are handled by specially developel drivers, such as the ROM plug-in module employed for drivi~g the type-writer.
The state o~ a peripheral is generally ch~cked be~ore attempting an output. This is done by ~irst inhibiting the i~terrupt system. The address o~ the I/O interface card is shifted into the I/O register. The decoded address code en-ables the open collector gates on the I/O interface card. The status of the peripheral is passed to the Status In li~es and loaded into the I/O register with an I/O instruction issued by the calculator. The I/O register information is tra~s-ferred to the A or B accumulator and processed. If the peri-pheral is ready, the output data word consisting of the ad-dress code, output status (if necessary) and the eight bit data byte is formed in the A or B accumulator. The output data word is trans~erred to the I/O re~ister after which the Device Ready (~E~) flip-flop is set. The I/O interface card receives the data, address code and DeYice Ready and a peri-pheral response is in~tiated. The calculator interrogates the state of the Device Ready flip-flop to deter~ine when the I/O
~nter~ace card has received the information a~d the peripheral response is done. The peripheral I/O inter~ace card signals the calculator it is done ~y transmitting the Device Request lOS8~;7 (CIF) signal to the calculator. The output waveforms are shown in Figure 168.
Before inputing data from an I/0 interface card it is necessary to determine if the peripheral has responded and is ready to input data.
After a peripheral response has been initiated, as described previously, the calculator waits for the Device Request (CFI) which loads the data into the I/0 Register and clears the Device Ready (CE0). The calculator checks the state of Device Ready and when it goes false (CE0 = HIGH), the cal-culator knows data is present in the I/0 Register and proceeds to shift it into the A or B accumulators for processing. The input waveforms are shown in Figure 169.
When blocks of data are to be transferred between a peripheral and the calculator, the interrupt is turned off, and transfer rates as high as 100,000 bits/sec may be possible. Before either input or output of a block of data can start, it is necessary for the calculator to check the status of the peripheral to see if it is turned on and ready. Register will remain unchanged during the block transfer. A single I/0 instruction shifts the 8 bit byte of data from the 8 least significant locations in A
or B to the 8 data locations in the I/0 Register; gives Device Ready (CE0 goes low) 120 ns after the shift is completed; and shifts the 8 most significant bits in A or B to the 8 least significant locations in A or B in preparation for the next transfer. (Note the Address and status field in the I/0 Register are not disturbed in the shlfting.) Device Ready stays true (low) until the peripheral has received the data and is ready for more.
The I/0 inter-,, lOS87~;7 face card then returns Device Request (CFI) to the calculator. The receiving of Device Request by the ca1culator causes loading of the parallel input party lines into the input status and input data locations of the I/0 Register, and clears the Device Ready signal (CE0 goes high). The logic sense of Device Ready is observed by the calculator and when it goes false (CE0 = High) the CPU proceeds to output the next eight bit byte of data.
If the output I/0 interface card is not returning information on the input lines all input lines will be high when the loading, described in the preceeding paragraph~ takes place. Therefore, if at the beginning the code in the output status field is being used by the I/0 interface card and must remain something other than all high it will be necessary for the I/0 interface card to receive the output status from the calculator and return it back to the status inputs so that when Device Request occurs the status field does not get changed in the I/0 Register.
Input: After determining if the peripheral is ready to start trans~erring a block of data the calculator turns off the interrupt and shifts the ad-dress code into the I/0 Register. (The Address code remains unchanged during the block transfer.) The Device Ready is given (CE0 = Low) to the calculator when the 8 bit data byte is ready for input. The Device Request signal causes the input data and status to be loaded into the I/0 Register and causes Device Ready to go false (~ = High). The calculator by checking when Device Ready goes false knows the data has been loaded. A
single I/0 instruction shifts the 8 bit data byte from the I/0 Register into the 8 most significant -10587~7 locatiolls in tllc ~ or B accumulatols (shiftillg the ~rcvious information in A or B 8 places to thc rigllt) and causes Device Ready to go true (CE0 = Low) 120 ns after the last bit has been shifted into A or B. As before if output status is to be retained on the I/0 interface card it must be returned to the I/0 ~egister upon each input data transfer.
Wave forms illustrating high speed operations resemble the wave forms for the calculator in Fi~ures 8 and 9.
The interrupt system is controlled by the Service Inhibit flip-flop. An interrupting peripheral is allowed to request service for input from the processor anytime the Pre-vent Interrupt line is disabled (~Da = High). The calculator allows only those peripherals which use the calculator key-codes to interrupt, and these must be user controlled such that only one interrupt at a time is taking place. Data (keycodes) is loaded into the I/0 Register at the instant the Service Request is given by the I/0 interface card (~ = Low) if Prevent Interrupt is disabled (SIH = High) or if Prevent Interrupt having been enabled (~D~ = Low) goes high while Service Request is being givenO At the same time a qualifier is routed to the CPU indicating a request for service is active.
Recognizing the request for service the CPU branches to the service routine which enables Prevent Interrupt (~E = Low) and loads the starting address for the software service routine into the M-Re~ister. After servicing the interrupt entry the Prevent Interrupt is disabled (SIH = High) and the next inter-rupt a'lowed to take placeO The interrupt waveforms are shown in Figure 170.
The following table lists the general I/0 instruction set and the associated codes:
~(~58767 I/O INSTRUCTION SET
.
NAME INSTRUCl`ION INSTRUCTION CODE
EXECUl'ION
TI~IE 15 1~ 13 12 11 10 9 8 7 G 5 ~ 3 2 1 C
-- ____~ ~ ~
STF9 ~s II }I H II - II L II H ll II SEL~CT CD
CLF9 ~s II II II H - H II II H II II
... . _ SFC9 ll S H H H II - H II/C II H ll L
SFS g llS H II H H - H H/C II L H L "
CLC 9 ~s H H H H - H H/C H L H II
.. ___ .
STC 9 ~s H H H H - H H/C H H L L "
.
OT* . 15 ~s H H H H A/B H H/C L L H ll LI* 15 ~s H H H H A/B H HjC L H L H "
. . . . _ . ~
MI* 15 ~s .
-~39-. ~
3LO S ~ ~t>'7 The following describes the function of each I/0 instruction with the 5 allowable select codes.
STF <SC> Set the flag. STF is a 240 ns positive true pulse which accomplishes the following with the various select codes.
STF 0P Not used by the calculator.
STF Pl a. Sets the Service Inhibit flip-flop to the true state (~ = Low; interrupt not allowed).
b. Causes parallel input data and status to be loaded into the I/0 Register.
STF 02 Generates a 240 ns positive true MCR pulse for the magnetic card reader.
STF 04, P8, 16 Not used by the calculator.
CLF <SC> Clear the flag. CLF is a 240 ns positive true pulse which accomplishes the following with the various select codes.
CLF PP Not used by the calculator CLF 01 a. Clears the Service Inhibit flip-flop to the false state. (~ = High; interrupt allowed.) b. Loads address locations in I/0 Register with 0'5. (P = Low) c. Clears Device Ready flip-flop (~ = High).
CLF 02 Clears magnetic card reader flag flip-flop.
CLF P4 Clears Printer Enable flip-flop (PEN = Low).
CLF 08 Clears Display Enable flip-flop (DEN = High).
:lOS87~
CLF 16 Generates a 240 ns positive true KLS pulse.
SFC <SC> H/C Skip if flag clear. SFC is a 240 ns positive true pulse which accomplishes the following with the various select codes. If C is given a 240 ns CLF pulse is given after SFC.
SFC ~0 Causes the next instruction to be skipped if the STOP key has not been depressed.
SFC Pl Causes the next instruction to be skipped if Device Ready is true (CEO = Low).
SFC a2 Causes the next instruction to be skipped if the magnetic card reader flag flip-flop is clear.
SFC 04 Causes the next instruction to be skipped if the printer enable flip-flop is clear. (~ = Low).
SFS <SC> H/C Skip is flag set. SFS is a 240 ns positive true pulse which accomplishes the following with the various codes. If C is given then a Z40 ns CLF
Pulse is issued after SFS.
SFS 00 Causes the next instruction to be skipped if the STOP key is depressed.
SFS 01 Causes the next instruction to be skipped if Device Ready is false (CEO = High).
SFS 02 Causes the next instruction to be skipped if the magnetic card reader flag flip-flop is set.
.. , :. .,:
, . ~ ... .
lOS8767 SFS 04 Causes the next instruction to be skipped if the printer enable flip-flop is set (PEN = High).
CLC <SC> H/C Clear Control. ~ is a 240 ns negative true pulse and is not used by the calculator. If C
is given then a 240 ns positive true CLF pulse is given after CLC.
STC <SC> H/C Set the Control. STC is a 240 ns positive true pulse which accomplishes the following with the various select codes. If C is given a 240 ns CLF pulse is issued after STC.
STC 00 Not used by the calculator.
STC 01 Sets the Device Ready flip-flop (CEO = Low).
STC 02 Generates a 240 ns positive true MLS pulse for the magnetic card reader.
STC 04. P8, 16 Not used by the calculator.
OTX <SC> H/C Output A or B causes data bits from A or B to be shifted to the I/O Register and accomplishes the following with the various select codes. If C
is given, a 240 ns CLF pulse is given after OTX is executed.
OTX 00 The 8 least significant bits in the A or B register are shifted non-inverted to the 8 least sign~ficant locations in the I/O Register, and 120 ns after the 8th shift the Device Ready flip-flop is set (CEO ~ Low). The 8 most significant ~V58767 bits are shifted right 8 places and the least 8 significant bits are recirculated to the 8 most significant locations in the A or B registers.
The 8 most significant bits in the I/O Register are untouched.
OTX 01 Sixteen bits from the A or B register are shifted non-inverted to the I/O Register. The data in A
or B recirculates.
OTX 02 Not used by the calculator.
OTX P4 Same as OTX 01 and in addition, 120 ns after the16th bit has been shifted the printer enable flip-flop is set.
OTX 08 Same as OTX 01 and in addition, 120 ns after the16th bit has been shifted the display enable flip-flop is set.
OTX 16 Same as OTX 01 and ln addition, 120 ns after the16th bit has been shifted the 240 ns KLS signal is generated.
LIX <SC> H/C Load into A or B. Loads data bits from the I/O
Register into the A or B Registers and accomplishes the following with the various select codes. If C is given, a 240 ns CLF pulse is given after LIX
is executed.
LIX 0P The eight least significant bits in the I/O Register are shifted inverted ~o the eight most significant locations of A or B, and 120 ns after the 8th shift the . -.. - ~ . - . .
~1)58'76i7 Device Ready flip-flop is set (CE0 = Low). A
or B is shifted right eight places as the I/0 Register data comes in. The 8 most significant bits in the I/0 Register are untouched.
LIX 01 The 16 bits of the I/0 register are transferred inverted to the A or B register. Data in the I/0 Register is lost.
LIX 02. 04, 08, 16 Not used by the calculator.
MIX <SC> H/Ç Merge into A or B. Merges data from the I/0 Register into A or B registers and accomplishes the following with various select codes. If C is given, a 240 ns CLF pulse is given after MIX is executed.
MIX 00 The eight least significant bits in the I/0 register are merged with the eight least signifi-cant bits of the A or B register and shifted to the 8 most significant locations of A or B; 120 ns after the merge takes place the Device Reaqy flip-flop is set (~ = Low). A or B shifts right 8 places as the data is merged and shifted to the most significant locations. The 8 mDst significant bits of the I/0 Register are untouched.
MIX 01 The 16 bits of the I/0 Register are merged with the 16 bits of the A or B register and contained in the A or B register.
, ~ .- . .
.,., ' . , .~
lOS~7~i7 MIX 02, ~4, 08, 16 Not used by the calculator. Examples of various drivers which transfer data are given below:
Example 1: Typical Subroutine to Get Status of I/O Device.
Calling Sequence:
LDB Select Code JSM Stat Stat STF 1 Turn off the interrupt system.
OTB 1 Load I/O Register with select code.
STF 1 Load I/O Register with status of I/O device.
LIA 1 Load A Register with status information.
CLF 1 Turn on interrup.
RET Return.
Example 2: Typical Subroutine to Output an 8 bit character.
Calling Sequence:
OTA 1 Output 16 bits to the I/O Register.
SFS 1 Loop until I/O flag is set by the JMP *-1 output device.
20 Example 3: High speed output where the calculator is faster than output device.
Calling Sequence:
ST* I -(Number of 16 bit words to be output) +1 ST* J Atdress of first word in the array.
LDB SC Select Code OUT2 JSM STAT Get status of output device RAR 9 and position it.
-44~-los8767 Example 4A: Typical subroutine to input an 8 bit character.
Calling sequence is:
LDB Select code JSM In ... Return is made with the data in the A Register.
IN STF 1 Turn off interrupt system OTB 1 Load I/O Register with the select code STC 1, C Pulse the flag & turn lnterrupt system on JSM STAT Get status off the input device RAR 9 and position it.
SAP ~-2, C If device is busy then continue to loop SAR 7 else position data bits RET Return.
SAP OUT2 If device is busy, continue to loop STF 1 Turn off interrupt system.
OTB 1 Output select code LDB 1 B+Counter for number of words to be output L M J, I Load next data word SEC *+1, C E+0 OTA 0 Output 8 bits from A
SFS 1 Loop until device sets JMP *-1 flag.
SEC *-3, S If E=~ and E~J then loop to output last 8 bits ISZ J Increment array address pointer RIB *-7 Increment count and loop if not finished.
CLF 1 Turn on interrupt system RET Return Example 3B: If the output device is faster than the calculator then fewer in-structions can be used.
, ~
, 10587~
OTA 0 Output first 8 bits OTA 0 Output second 8 bits.
Example 5A: High speed input where the calculator is faster than the input device.
Calling sequence:
ST* I -(Number of 16 bit words to be input) + 1 ST* J Address LDB SC Select code JSM In2 In 2 JSM STAT Get status of input device RAR 9 and position it.
SAP In2 If device is busy, continue to loop STF 1 Turn off interrupt system OTB 1 Output select code STC 1 Command device to read LDB I R:Counter for number of words to be input SEC *+1, C E+0 SFS 1 Loop until input JMP *-1 device sets flag LIA 0 Load 8 bits from I/O Register SEC *-3, S If E=0 and E+l then loop to input last 8 bits STA J, I Save data word in array ISZ J Increment array address pointer RIB *-7 Increment count and loop if not finished.
CLF 1 Turn on interrupt system RET Return Example 5B: If the input device is faster than the calculator then the number of instructions can be reduced.
-447- ~;
LIA ~ Input first 8 bits LIA 0 Input second 8 bits All output I/0 interface cards which are to be fully inter-changeable with both the present and other calculators must have storage either on the I/0 interface card or in the peripheral to which information is being transmitted. Figure 171 illustrates the logic used to interface . an X-Y plotter which has storage on the I/0 interface card.
Blocks (A) and (B) are the storage latches which store information coming from the I/0 register. When the output of gate (C) goes high, data is latched; when low, the outputs of the latch track the inputs. Gates (D) decode the Address code (14 = lllp) and pass it positive true to gate (E).
Device Ready (CE0) is also passed positive ~rue to gate (E). Gates (H) are open collector and pass status and Device Request (CFI) onto the input party lines. An example of a 9810A output would be: Output the address 14 which enables status gates (H) and see if the power is on. If on, output address, status, and data to gates (A), (B), and (D). The output of (C) is low allowing data and status to pass. Next give Device Ready (CE0 = Low) this enables flip-flop (G), clocks flip-flop (F) wh~ch causes (A) and (B) to latch, and sends control to the peripheral. The peripheral acknowledges receipt of control by returning FLAG (FLAG = High) in a busy state this continues to keep (A) and (B) latched and clears control flip-flop (F). When ~-os876q the periph~r~l is donc actill6, thc FLAG is rcturncd to thc not busy state (FL~G = Low) wllicll clocks flip-Llop (G) and causes output at (C) to go low enablillg (A) and (B)o The output of (G) drives the CFI gate which has been enabled from (E) and CFI goes low CF~ is received by the calculator which responds by returning ~ high. This causes the output of (E) to go low, clearing flip-flop (G) and returning C~I
high. This completes 1 output cycle.
All input I/0 interface cards which are to be fully interchangeable with both the present and other calculators must have storage either on the I/0 interface card or in the peripheral from which information is being received. Figure 172 illustrates the logic required on a general purpose interface card with storage.
Block (A) is used to store information coming from the peripheral. (B) stores status coming from the I/0 register which may be needed by the peripheral. The output tracks the input whenever the enable on the latch is low.
Block (C) decodes the address code into one of 10 addresses which are jumper selectable. ~n example of a calculator input would be as follows. The ad~ ess code would be de-coded by (C). The calculator would load status through the open collector input status gates (D). If the peripheral is on and ready, the address code and output status (if necessary) would be sent to (B) and (C). The decoded address is passed, positive true, to gate (E). The enable at (B) is low so that status is passed to the peripheral. The Device Ready is given (-E~ = Low) and comes to (E) positive true. The output of (E) clocks flip-flop (F) through gate (H)u The output of (F) gives control to the peripheral and also enables -44g-:. .
- lOS8767 (A) to receivc data. Tllc pcriplleral respollds in a b~lsy state (FLAG = l~igh). lYhcn data is re~dy to be input the FLAG is driven lo~vO Data is latched when the FLAG goes low in (A). Also when FLAG goes low, (G), having been enabled by the output of (H), is clocked driving (J) from its Q output. (I) is enabled by the output of ~II) and so CFI is driven low. Data is loaded into the I/O
register from open collector gates (I) and CEO driven high as a result of the calculator receiving CFI This clears flip-flop (G) and disables the input gates (I) completing an input cycleO
Figure 173 illustrates the logic required, on an I/O interface board, to input using the interrupt.
A power preset circuit, block (A), will be neces-sary on this card to prevent an interrupt when the peripheral power is turned off or onO This can usually be done by sensing the peripherals' +5 volts and presetting when the voltage drops below 3 to 4 volts.
The calculator must be in a display routine such that the Prevent Interrupt is false (~E = High) before an interrupt can take place. This enables the flip-flop (B) to be clocked from the peripheral FLAG. The clock inputs to (E) and (F) have been high enabling the storage latches prior to th~ receipt of FLAG. FLAG clocks (B) causing (E) and (F) to latch, enabling open collector gates (H) through gates (I) and (J), and drives gate (G) which sends Service Interrupt (~3~ 5 Low) to the calculator.
The calculator responds by loading the data into the I/O
register and returning Prevent Interrupt true (~E = Low).
This clears (B). Prevent Interrupt is roturned ~alse after the entry has been processod and tho cyclc is complctc.
lOS8~67 KEYBOARD INPUT UNIT
The keyboard input unit is shown in Fi~ures 174A-D and 175. It includes a contactless keyboard of the type shown and described in U.S. Patent 3,668,697, issued June 6, 1972.
The contactless keyboard is made up of an array of printed circuit transformers. Each transformer has its secondary and primary interlaced in a spiral coil as shown in Figures 176-177. The secondaries of all the coils are tied in series to form the sense line. The primaries of the coils are arranged in separate pairs. Each coil is connected in series, with opposite polarity, to its pair as shown in Figure 178.
~very pair has a drive and sink line, which i~ being selected and driven by the scanner.
Centered above each coil is a metal disc at the end o~ the key shaft. When a key is depressed the disc proxi-~ates the coil. The disc acts like a shorted turn and re~
duces the coupling of the coil, and unbalances the pair.
This unbalance is ampli~ied by the comparator, when it is greater than the on bias. The comparator triggers the one shot, which turns off the scanner and lowers the on bias.
The scanner remains at its present state, which corresponds to the drive and sink line of the key de~ressed This state is the keycode of the key pressed. When the key is released a spring retracks the key and disc. When the unbalance is less than the new bias~ the comparator turns off and the scanner starts again ready for a new key. The two bias levels give the key mechanical hysteresis.
When two keys are depressed the first one down will 1058~
be entcred, and as long as a key is down no otl~er key can be entered. An exception is when the other key is its pair. In this case the two keys will cancel each other Wllen the first key is released, the second one tvill be entered. When the first key is released, while more than one other key is down, the next key to be entered will be the next in the scan sequence, not necessarily the second key down.
For the keyboard to work each pair of primary coils must be balanced. To balance a pair of coils the following rules should be used when laying out the printed circuit board:
l. Sense lines must run in pairs. The closer the better.
They should be thin traces.
2. The sense windings of a pair of coils can be anywhere on the sense line. For best results they should be close.
30 Drive lines should be in pairs when possible. Drive clamp and source lines should be grouped together well away from the sense lines. When a drive line crosses a sense line it should be at right anglesO
4. Connect to spiral so to add a turn (or part of a turn) not to subtract. Try to duplicate additional turns on a spiral pair. Connect to spiral at a right angle~ from a distance.
5. For a pair of spirals separated by some distance, run the common connection away from the sense line and in the drive grouping.
6. Check each pair of spirals for errors in drive or sense polarity. This can cause either an incorrect code (least digit), or a constant full output. One method to check for proper polarity is to assign current direction for both drive and sense. Then at each spiral check for proper polarity. This is illustrated in Figure 179.
105876~
MAGNETIC CARD READING AND RECORDING lJNIT
The magnetic card reading and recording unit is shown in the block diagram of Figure 180 and in the detailed schematic diagram of Figure 1~1.
The manner in which it interacts with the calculator and operates to record and load secure and unsecure programs and to separately record and load data is shown and described in the block diagram of Figure 182, the flow charts of Figures 60-61 and 63-65, and in the memory map of Figure 62.
Operation of the card reader is largely automatic. It is only necessary to specify the type of operation and the limits desired. These commands are entered via the calculator keyboard. The calculator then determines the necessary commands required to cause the magnetic card reader to perform the desired operation.
Several modes of operation are possible. Programs can be recorded on magnetic cards and loaded back into the calculator. Similarly, program and data information can be recorded and loaded, or data alone. Very long programs or blocks of data can be stored on several cards. The information is loaded back into the calculator by inserting the cards into the reader in the same sequence as they were recorded. The proper linking of the information stored on the cards is automatically performed by the calculator.
Information is stored on the magnetic card in 3 bit bytes. Three traGks record the information and a fourth track provides a timing mark. Two bytes form six bit words in the calculator. The card reader automatically begins and terminates the recording, irrespective of the length of card used.
Different card lengths can be mixed together without affecting --~5~-., ."
- lOSB~67 the OpCl'atiOI~ of tlle lcaclcl. Calcis may l~c intclcil.ll~Dc~ flom one calculator to anotllcrO
No mechanical SWitCIlCS are uscd in tile ca~d readcr, Tlle only movinD part is tllc card drive motor and capstan, l`he mecllanical assembly alld electlonics assembly are modular and can be replaced as separate and independent units in tlle calculator.
,' ' `, ' ' ~ ' ':
lU5~3767~
OUTPUT DISPLAY UNIT
As shown in Figures 183 and 184A-B, the output di~play unit includes three fifteen-character rows of seven-segment light-emitting diode arrays. Each array requires an anode driver for each o~ its seven se~ments and one for the decimal point.
The cathodes are common to all the diodés in one character.
Respective anodes for t~e characters o~ a register are tied together to one driver. A series PNP transistor enables one o~ three sets of eight anode drivers each. The cathodes of a column of three characters are tied together to one o~ fifteen cathode drivers.
The data required to operate the display is as ~ollows: -i. Four bits to determine the column to be enabled.
2. One of three bits to determine the register.
3. Eight bits to determine the diodes of a character to be lighted.
4. A line to enable the display when the data is present .
The duty cycle is less than 1/45 requiring pulses of more current than a character c~uld stand continuously. A
retriggerable one shot is fired at every display enable pulse and will disable the column drivers after l/2 ms. i~ the machine han~s up.
: , .
10587~i7 OUTPUT PRINTER UNIT
Several methods have been described for producing printed characters by thermal means (see particularly U.S.
Patent 3,161, 457 issued to H. Schroeder et al) but they typically employ a rectangular matrix of resistors to form an entire character at once. Commercial versions of this sort s~f printer are marketed by National Cash Register and Texas Instruments. As described in Schroeder's patent, a matrix five elements wide and seven elements high is typically em-ployed.
The output printer unit employed in this calculator isconstructed as ~hown in Figures 185, 186, 187A-B, 188, 189A-D, and l91A-B. It includes a row or print elements distributed linearly acrocs a printing head, as shown in Figure 188, to print a 16-character line. Each print element is an electrical resistor, of a size and ~hape intended to produce a dot on thermally-sensitive paper moved at right angles to the line of print elements. Dots are fonned in the conventional manner by pulsing the resistor element with a pulse of electrical current, which raises its temperatur by joule heating.
Each OI the sixteen characters o~ each line is Iormed in a 5 x 7 dot matri~c. For e~cample, as illustrated in ~igure 192 the letter A is produced by printing the darkened dots in the top row and then stepping down to the next row, etc.
Each line of print contains sixteen 5 x 7 matrices.
The matrices are made OI seven rows ol~ 80 dots spaced in five dot Foups- to produce sixteen characters. The pri~ter pro-duces each line`of print by printing the top row of all six-te-n character8 and then stepping dow~ to print row 2 until all seven rows are printed. Three blank steps are then added - los~7~7 to produce tllc sp~ce b~twoell lines.
Each of tllc seven rows of printing contains 80 dots (5 for each of the sixteen characters) which may or may not be printedO This requires that eighty information bits be sup-plied for each row printed. To accomplish this, each row is split into four groups of twenty dots (four characters).
SSince the I/0 Register of the calculator is only sixteen bits long an extra ten bit shift register is contained in the printer hardware ) Each group of 20 bits is transmitted to the printer along witll the group number by the I/0 Register and is printed when the printer enable signal is given.
The printer then prints that group of dots and returns a printer flag signal to the calculator. The next group of in-formation is then supplied until all 28 groups have been printed. The three step commands are then given to provide the space between linesO
The printer requires the following information to print any group o~ dots:
(1) Dots to be printed, (2) Group number, and (3) Printer enable.
As shown and described in the flow chart of Figure 193, this information is transmitted to the printer through the cal-culator I/0 register. Since the total number of information bits needed is greater than the I/0 registers length, two 16 bit words are transmitted to the printer~ The first 16 bit word contains the dot patterns for characters 1 and 2 as shown in the following table:
-~57-. .
105~7~7 CONT~NT OF I/O R~ISTE~ ~FT]~H~ FIRST LO~DING
Cll~r~cter 2 Cll~ cter 1 I L Hl I I ¦l~ lllL lll I I l}~
¦ Dot~ Dot¦Dot~ Dot ¦ 0 1 0 1 0 1 0 L 0 1 0 C03 C02 C01 C00 S03 S02 S01 S00 D07 D06 D05 D04 D03 D02 DOl D0 0 - Don't Care Character one is contained in bits S02-S00 and DO7, DO6 with the left dot in bit S02 and the right dot in DOG. Character 2 is contained in bit C03-C00 and S03 with the left dot in C03 and the right dot in S03. When the I/O Register is loaded with the second 16 bit word these bits will appear in the internal 10 bit shift register. The second 16 bit word contains the dot pattern for characters 3 and 4 and the group number as shown in the following table:
I/O REGISTER AFTER SECOND LOADING
Character 4 Character 3 Group ~ ~_ ~
L ~ I R H L H _ R H _ 0 1 Dot IDot Dot _ . Dot 0 0 0 0 1 1 C03 C02 C01 C00 S03 S02 S01 S00 D07 D06 D05 D04 D03 D02 DOl D00 .
0 - Don't Care Character 3 is contained in bits S02-SOO and D07, D06 with the left dot in S02 and the right dot in D06, Character 4 is contained in bits C03-C00 and S03 with the left dot in C03 and the right dot in S03. The group number is contained in bits D00 and D02. Groups are numbered as follows:
From Left to Right 1 1, 2, 3, 4 o 0 2 5, 6, 7, 8 0 3 9, 10, 11, 12 1 0 4 13, 14, 15, 16 When group 4 is detected the printer automatically steps to the next line. The time interval between printer enable and the return of printer ~lag is extendcd to allow the system 30to physically move~
l()S87tj7 The printin~ spccd is ~iven il~ the follo~Yin~ table:
Group 1 8 ms Group 2 8 ms Group 3 8 ms Group 4 18 ms Row 1 42 ms Ro~ 2 42 ms Row 3 42 ms Row 4 42 ms Row 5 42 ms Row 6 42 ms Row 7 42 ms Space18 ms Space 18 ms Space 18 ms Total Time to Print 1 line 348 ms Lines per second 2.87 ms As shown in Figures 185-186, paper is loaded into t$e output printer unit by li~ting the w~re bucket cover 220 and placing a roll of paper 222 with the free end into the paper bucket formed by the front and rear bucket halves, 224 and 226 respectively. The only care needed by the operator is to be ~ure that the paper uprolls foxward from the bottom. The ~ire bucket cover pcrforms a dual function o~ keeping the free end of the paper in the bucket while loading and af~er the paper is }oaded prevents the free end ~rom relaading itsel throug~ the mechanism.
3~ - -10587~i7 Thc ~vci{rl~t ol tl~e pal)cr t.hCll StletCIl('S thc r~ )Cr belts 228 a1~c1 tlle ro]l oi p;l1)cl rolls fol\v.~ld ~ i] it rcsts agai11st thc pap~l ~uidc 230. Tlle p;lpCl' 1'0115 f~rward d~1c to the "do~vl)hil]" slopc ~L thc bc]t fro1n tllc top o~ the rear idl~r pullcy 232 to 1;he botlo1n of the papcr gl1i(1c.
Wit11 the roll of p.~per in thc pOSitiOII d~scri~c~ above tl~e belts moving Ior~var(1, t1-c Irce cnd ol the paper i9 COlI-straincd by the ~el-ts, pa])er guidc a11d roll to movc belo~v thc paper guide and bet~ve~11 it and thc bclts.
Thc belts are drive11 by tlle drivc pulloy 234 which is in turn driveJI by a gear set Iro1n thc p]aten 236. The platen is driven by the motor 238 via a belt and gear set.
The dia1neter a1ld speed o~ the platen is such that its sur-~ace speed is approximately 5% faster t11an 1:11nt ~F 1~ t~
to ir.sure that t11e paper is always under tension after loading is completed. The drive and rear idler pulleys are crowned so that the belts ~vill bc sel~-centering. The ~ront idler pulley 270 is flat and serves to keep the lower portion of the belt out o~ t11e bucket area.
The print head 242 is pressed against the paper and platen by means of a spring, hence it is necessary to remove the print head from the platen w1lile loading paper. This ~s accomplished by the head li~ter and paper deflector 244 such that when it is rotated on its axis it cams the print head of~ the platen and positions a small plate in the path o~ the paper which guides the paper up and between the platen and print head.
The paper is guided through the mechanism while loading and while the printer is working by edgc guiding the paper. Ordinarily paper docs not lend itsel~ well to edge guiding due to its very low compressive strength. To over-come this the paper is bent around the convex bottom sur-face of the paper guide and the belt, which is under tension, is very near tho edge thereby preventing the paper ~rom buckling. The relationship of the paper, pnper guide and belts can be seen by looking at Section AA of Figure 186.
When selccting materials for the various parts of the loading mec1la11is1n it is important to be sure that the coefficients o~ friction between the various parts are compatible. The C.F. between the paper and paper guide should be low relative to the C.F. between the paper and belts in order that thc belts can drive the paper throug1l the mechanis1n. Similarly, the C.F. between the paper and platen should be hig1l relative to the C.F. between print head and paper in order that the paper can be driven througll while printing. In addition, the drag introduced by the belt and paper guide due to the paper moving faster than~the belt ~vhile printing must not be so great as to tear the paper or impose an impossible load on thc motor.
-- lOS~7f~7 The ri~ht h~lf of top panel 90 of l:he calculator housin~ is hinged at the back and provided with a handle 246 at the front so that it may readily be raised by the user and stopped at an oblique uprigllt pOsitiOll to expose and facili-tate replenishment of the supply of thermal-sensitive paper for the output printer unit and also to serve as a music stand for holding operating or program-running instructions or any other material the user desired. A transparent plastic retainer is mounted on the underside of the hinged right half of the top panel 90 to hold such materialO
-4~1-lV~ 7 POWER SUPPLY
The power supply system employed in the calculator -is constructed as sh~wn in Figures 194-196 and 197A-B~ As shown in Figure 194, a centertapped transformer secondary is connected to terminals 2-3, 2-1, 2-2, and 2-4. The AC voltage from the transformer is rectified by diodes CRl and CR2 and ~iltered by capacitor Cl. The output o~ this rectifier/filter circuit is nominally 18 volts DC at 2.7 amps with a 2 volt peak to peak ripple.
Ql and Q2 serve as a switch to connect the ~ive volt output bus to the 18 volt unregulated supply through inductors Ll and L2. CR3 serve~ to clamp the input o~ Ll to ground when Ql and Q2 are switched o~. Current flow in Ll and L2 are substantially constant and equal to the load current.
Loss in high current transistor Q2 is mi~imized be-cause Q2 can be completely saturated. Loss in driver tran-sistor Ql is minimized because Ql can also be saturated. Re-sistor R7 limits the ma~imum drive current to Q2. Losses in R7 can be minimized by proper positioning o~ the tap on Ll consistent with transistor parameters and circuit r~quire-ments.
ICl is a linear di~ierential ampli~ier ~ntegrated circuit to drive Ql and Q2. Any di~erential ampli~ier with æu~icient volt~ge capability and bandwidth will ~ork. Since the ampli~ier employed is linear, R7 and R4 have been included in the circuit to provide su~icient hysteresis ~or reliable switching. This hysteresis stabilizes the switching ~requency and thus stabiiizes the switching losses.
Because hysteresis has been added to the circuit, a signi~icant ripple signal (~t the switching ~requency) must -46~-105~7~7 be present on tho ~eedb~ck signal to the mplifier, This need for a ripple sigllal limits the amount of capacity that can appear between tlle output of Ll and ground. L2 serves to isolate this point from the rest o~ the system. The amount of capacity that can appear between the output of LZ and ground is essentially unlimited and significantly reduces power supply ripple, and greatly improves response to load transients.
The second winding o~ L2 is a path ~or the feedback from the remote sensing. The required ripple signal is added to the $eedback signal by transformer action in L2. Another possible configuration is shown in Figure 198.
The power supply also includes an overvoltage crowbar circuit (Qr, CR4, and R9) and a short circuit shut-down circuit (using Q5). In the event that the +5 volt bus is grounded, or the crowbar is triggered, Q5 saturates and locks ICl of~.
The resistor R8 ma~es a current generator of ICl. Re-sistors R5 and R6 discharge the bases o~ Ql and Q2 respectively.
IC2 and ~ts assoclated components generate a "power on pulse"
to initialize the instrument. I~l ts referenced and powered ~rom an external +12 volt supply. Powering the IC ~rom ~12 rather than the unregulated ~18 reduces power dissipation in ICl.
The l24 volt supply o~ Figure 196 is referenced by the +16 volt supply with the amplifier common returning to 112 VoltB to minimize power loss and voltage stress in ICl of F~gure lg6. Thè ~12 volt supply of Figure 197A references the -12, ~5, and l16 supplies directly. The +12 amplifier ICl of Figure 197A may be biased either from the unregulated supply - . . - ~ ~
1~358~f~7 for th~ +12 volt supply or Lrom tllc operating +lG volt supply.
Diodes CR5 and CR6 dctcrmine the appropriate sourcc. Tllis provides a grcater power supply margin for the +12 volt supply.
Similarly the +1~ volt amplifier is biased from the +20 to give that supply greater margill.
All supplies except the +20 volt supply are current limited. The +24 volt supply is current limited at a value greater than the rating of its series fuse. If a short circuit occurs in the +24 volt supply, it will current limit until the fuse opens. The average current from this supply is 1.1 amps with transients to 2 ampsO The current limit is set to 2.5 amps. There is not sufficient thermal capacity available to allow Ql of Figure 196 to carry sustained short circuit current so the fuse has been included to protect the various power supply components. All supplies except the +20 volt supply are crowbar protected against over-voltage.
-46~-.
10587ti7 TYPEWRITER I~TERFACE
This interface couples the Facit-Od~lner model 3841 output typewriter to the calculator.
The unit mounts directly on the back of the typewriter.
Communications with the calculator are made through about five feet o~ cable which is terminated by t~e I/O plug containing a board for buffering and some logic.
Referring to Figures l99~-B and 200A-C, charactersfrom the calculator appear on the data lines as ASCII codes. These codes are recoded by a ROM into the si~ bit Facit*typewriter code ~or the 46 type bars, and one bit for upper case shift Functions such as space, tab, line feed, etc. are recoded for easy recognition in the interface since each Lunction must be driven by a separate line. A data latch after the RO~
holds codes for processing. If new data arri~es during this processing, the two codes are compared to determine if they both drive t~e same type bar and if the~ are both numbers.
Non-repeating numbers can be typed at 14.5 characters per second, otherwise typing speed is 12 characters per second (reduce these speeds 17~ for 50HZ operation). Codes in the latch are gated to the program solenoids or the function solenoids by the control logic.
To understand the coding, notice that two blocks of codes on the Facit typewriter code map are empty. If all function codes are put in these bloc~s, they can be identified by control logic by testing for (~-4) Each function code puts a l on one of fiYe lines and this line opens the correct solenoid gate.~Bit 8 is used to discriminate between two sets of function gates. In the czse of a program solenoid code, bit 8 identifies numerals.
* trade mark lQ58'7~7 The control clock is provided ~y a sync. pulse which is generated in the typewriter by a vaned wheel attached to the end of the main drive shaft. The vanes interrupt a light beam. When a type cycle is initiated, a modulo eight counter counts sync. pulses and the count is decoded by a 1 or 8 decoder. At each of the eight states, combinational logic can enable solenoid gates, set or clear flag ~lip-flops or change the counter to state zero, or state 6, or inhibit the counter.
Claims (10)
1. An electronic calculator comprising:
keyboard input means including a plurality of keys for entering information, including programs and control commands, into the calculator, each of the plurality of keys having a mnemonic representation;
memory means for storing information, including programs, that has been entered into the calculator;
processing means, coupled to the keyboard input means and memory means, for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the mnemonic representations of the keys of the keyboard input means;
the keyboard input means including a key-log control key for selecting a key-log mode of calculator operation;
the processing means being responsive to selection of the key-log mode of calculator operation and to subsequent actuation of a key of the keyboard input means for causing the printer means to print the mnemonic representation of the actuated key.
keyboard input means including a plurality of keys for entering information, including programs and control commands, into the calculator, each of the plurality of keys having a mnemonic representation;
memory means for storing information, including programs, that has been entered into the calculator;
processing means, coupled to the keyboard input means and memory means, for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the mnemonic representations of the keys of the keyboard input means;
the keyboard input means including a key-log control key for selecting a key-log mode of calculator operation;
the processing means being responsive to selection of the key-log mode of calculator operation and to subsequent actuation of a key of the keyboard input means for causing the printer means to print the mnemonic representation of the actuated key.
2. An electronic calculator as in claim 1 wherein:
each of the plurality of keys of the keyboard input means has a numeric representation; and the processing means is responsive to selection of the key-log mode of calculator operation and to subsequent actuation of a key of the keyboard input means for causing the printer means to print both the numeric and mnemonic representations of that actuated key,
each of the plurality of keys of the keyboard input means has a numeric representation; and the processing means is responsive to selection of the key-log mode of calculator operation and to subsequent actuation of a key of the keyboard input means for causing the printer means to print both the numeric and mnemonic representations of that actuated key,
3. An electronic calculator as in claim 2 wherein:
the memory means stores the numeric and mnemonic representations of the plurality of keys of the keyboard input means; and the processing means includes a key-log flag and means for alternately setting and clearing the key-log flag in response to each actuation of the key-log key, the pro-cessing means being responsive to actuation of a key of the keyboard input means, following setting of the key-log flag, for causing the printer means to print both the numeric and mnemonic representations of that actuated key stored in the memory means.
the memory means stores the numeric and mnemonic representations of the plurality of keys of the keyboard input means; and the processing means includes a key-log flag and means for alternately setting and clearing the key-log flag in response to each actuation of the key-log key, the pro-cessing means being responsive to actuation of a key of the keyboard input means, following setting of the key-log flag, for causing the printer means to print both the numeric and mnemonic representations of that actuated key stored in the memory means.
4. An electronic calculator as in claim 2 wherein the processing means is operative for causing the printer means to print the numeric representation of each actuated key of the keyboard input means, the numeric results of information processed by the processing means, and a mark distinguishing each numeric representation from each computed numeric result.
5. An electronic calculator as in claim 1 wherein:
a program stored in the memory means comprises a plurality of program steps, each program step having a mnemonic representation; and the processing means is responsive to a print con-trol command entered from the keyboard input means for caus-ing the printer means to print the mnemonic representation of every program step of a program stored in the memory means.
a program stored in the memory means comprises a plurality of program steps, each program step having a mnemonic representation; and the processing means is responsive to a print con-trol command entered from the keyboard input means for caus-ing the printer means to print the mnemonic representation of every program step of a program stored in the memory means.
6. An electronic calculator as in claim 5 wherein:
each program step of a program stored in the memory means is associated with a separate numeric address; and the processing means is responsive to entry of a print control command for causing the printer means to print the numeric address and the mnemonic representation of each program step of a program stored in the memory means in the form of a program listing.
each program step of a program stored in the memory means is associated with a separate numeric address; and the processing means is responsive to entry of a print control command for causing the printer means to print the numeric address and the mnemonic representation of each program step of a program stored in the memory means in the form of a program listing.
7. An electronic calculator as in claim 1 wherein:
the keyboard input means includes a plurality of nonalphabetic keys; and the processing means is operative for redefining the plurality of nonalphabetic keys to be alphabetic keys.
the keyboard input means includes a plurality of nonalphabetic keys; and the processing means is operative for redefining the plurality of nonalphabetic keys to be alphabetic keys.
8. An electronic calculator as in claim 7 wherein the keyboard input means includes control means for selecting a normal mode of calculator operation in which the user may enter numbers into the calculator and initiate nonalphabetic functions to be performed by the calculator and for selecting an alphanumeric mode of calculator operation in which the printer means is operative for selectively printing any of the alphabetic characters A-Z and any of the numeric characters 0-9, individually and in messages.
9. An electronic calculator comprising:
keyboard input means including a plurality of keys for entering information, including control commands and a program comprising program steps, into the calculator, each program step having a numeric and a mnemonic representation;
memory means for storing information, including a program comprising program steps, that has been entered into the calculator, each stored program step having a separate numeric address;
processing means, coupled to the keyboard input means and memory means, for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the numeric and mnemonic representations of each program step comprising a program stored in the memory means;
the keyboard input means including a list control key for entering a list control command into the calculator;
the processing means being responsive to entry of a list control command for causing the printer means to print a program listing comprising the numeric and mnemonic re-presentations of each program step comprising a program stored in the memory means together with the corresponding numeric address of each such program step.
keyboard input means including a plurality of keys for entering information, including control commands and a program comprising program steps, into the calculator, each program step having a numeric and a mnemonic representation;
memory means for storing information, including a program comprising program steps, that has been entered into the calculator, each stored program step having a separate numeric address;
processing means, coupled to the keyboard input means and memory means, for processing information stored in the memory means to perform selected functions; and printer means, coupled to the processing means, for printing the numeric results of information processed by the processing means and the numeric and mnemonic representations of each program step comprising a program stored in the memory means;
the keyboard input means including a list control key for entering a list control command into the calculator;
the processing means being responsive to entry of a list control command for causing the printer means to print a program listing comprising the numeric and mnemonic re-presentations of each program step comprising a program stored in the memory means together with the corresponding numeric address of each such program step.
10. An electronic calculator as in claim 9 wherein the numeric and mnemonic representations of each program step comprising a program are stored in the memory means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CA291,275A CA1058767A (en) | 1971-06-15 | 1977-10-31 | Programmable calculator with printout of key actuation |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US153437A US3859635A (en) | 1971-06-15 | 1971-06-15 | Programmable calculator |
CA144,658A CA1020285A (en) | 1971-06-15 | 1972-06-14 | Programmable calculator |
CA291,275A CA1058767A (en) | 1971-06-15 | 1977-10-31 | Programmable calculator with printout of key actuation |
Publications (1)
Publication Number | Publication Date |
---|---|
CA1058767A true CA1058767A (en) | 1979-07-17 |
Family
ID=27162072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CA291,275A Expired CA1058767A (en) | 1971-06-15 | 1977-10-31 | Programmable calculator with printout of key actuation |
Country Status (1)
Country | Link |
---|---|
CA (1) | CA1058767A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108333359A (en) * | 2018-05-07 | 2018-07-27 | 浙江亿联康医疗科技有限公司 | A kind of portable glucose meter |
-
1977
- 1977-10-31 CA CA291,275A patent/CA1058767A/en not_active Expired
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108333359A (en) * | 2018-05-07 | 2018-07-27 | 浙江亿联康医疗科技有限公司 | A kind of portable glucose meter |
CN108333359B (en) * | 2018-05-07 | 2024-02-20 | 浙江亿联康医疗科技有限公司 | Portable blood glucose meter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1080854A (en) | Programmable calculator with definable keys | |
Shaw | JOSS: A designer's view of an experimental on-line computing system | |
US4180854A (en) | Programmable calculator having string variable editing capability | |
CA1080851A (en) | Programmable calculator | |
US4063221A (en) | Programmable calculator | |
US3971925A (en) | Adaptable programmed calculator having provision for plug-in keyboard and memory modules | |
US4012725A (en) | Programmable calculator | |
US3328763A (en) | Electronic desk-type computer | |
US4028538A (en) | Programmable calculator employing algebraic language | |
Rice et al. | SYMBOL: A major departure from classic software dominated von Neumann computing systems | |
CA1046644A (en) | Programmable calculator | |
CA1094690A (en) | Programmable calculator | |
US4412300A (en) | Programmable calculator including alphabetic output capability | |
US4126898A (en) | Programmable calculator including terminal control means | |
GB1223499A (en) | Improvements in or relating to electronic accounting apparatus | |
CA1058767A (en) | Programmable calculator with printout of key actuation | |
US4322816A (en) | Programmable calculator having structure for controlling an x-y plotter | |
US4366553A (en) | Electronic computing apparatus employing basic language | |
CA1058766A (en) | Programmable calculator with external magnetic record member | |
US4178633A (en) | Programmable calculator including multifunction keys | |
CA1058761A (en) | Electronic calculator with editing capability | |
CA1058762A (en) | Electronic calculator with directly and indirectly addressed registers | |
CA1058760A (en) | Programmable calculator with definable keys | |
US4203152A (en) | Programmable calculator including key-log printing means | |
US4480305A (en) | Programmable calculator including editing capability |