home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / finance / xact.zip / X11SHARE.DOC < prev    next >
Text File  |  1990-03-01  |  69KB  |  1,934 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                  Shareware XACT-11C
  9.  
  10.  
  11.  
  12.  
  13.                            The Hewlett-Packard Compatible
  14.  
  15.                                 Scientific Calculator
  16.  
  17.                                     USER'S MANUAL
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.                                 CalcTech Incorporated
  38.  
  39.                         13629 Bellevue-Redmond Rd., Suite 202
  40.  
  41.                                  Bellevue, WA. 98005
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.                           Sales, 9:00AM-5:00PM Pacific time
  50.                                     206-643-1682
  51.  
  52.                       Tech Support,Info Line,24 Hour Voice Mail
  53.                                     206-527-9950
  54.  
  55.  
  56.  
  57.                                 Description
  58.  
  59.  
  60.      This shareware version of XACT-11C is not a demo program!   It is
  61.      a  complete,  full  featured  Scientific  Calculator  for  MS-DOS
  62.      computers,  equivalent to  the  Hewlett-Packard  HP-11C  handheld
  63.      calculator.
  64.  
  65.      Since  it  is  a  shareware  program,  you  may make  copies  and
  66.      distribute them to your friends and co-workers, on bulletin board
  67.      systems, and so on.  However, you may not modify this  program or
  68.      documentation in any  manner,  nor may you distribute the program
  69.      or documentation for profit (handling fees are OK).
  70.  
  71.  
  72.                              License Agreement
  73.  
  74.      THE SOFTWARE HEREIN ARE PROVIDED  "AS IS" WITHOUT WARRANTY OF ANY
  75.      KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
  76.      THE IMPLIED  WARRANTIES  OF  MERCHANTABILITY  AND  FITNESS  FOR A
  77.      PARTICULAR PURPOSE.   THE  ENTIRE  RISK  AS  TO  THE  QUALITY AND
  78.      PERFORMANCE OF THE PROGRAMS IS WITH YOU.
  79.  
  80.      IN  NO  EVENT  SHALL CALCTECH OR ANY OF IT'S OFFICERS, DIRECTORS,
  81.      SHAREHOLDERS, EMPLOYEES,  AFFILIATES,  OWNERS,  OR  OTHER RELATED
  82.      PARTIES BE LIABLE  TO  YOU  OR  ANY OTHER THIRD PARTY FOR DAMAGES
  83.      INCLUDING ANY  LOST PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR
  84.      CONSEQUENTIAL DAMAGES ARISING OUT OF  THE USE OF OR THE INABILITY
  85.      TO USE THIS PRODUCT OR AS TO THE PERFORMANCE OF THIS PRODUCT EVEN
  86.      IF WE HAVE  BEEN  ADVISED  OF  THE POSSIBILITY OF SUCH DAMAGES IN
  87.      ADVANCE.
  88.  
  89.      SOME STATES DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY
  90.      FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES SO  THE  ABOVE LIMITATION
  91.      OR EXCLUSION MAY NOT APPLY TO YOU.
  92.  
  93.      THIS  AGREEMENT  IS  GOVERNED  BY   THE  LAWS  OF  THE  STATE  OF
  94.      WASHINGTON.
  95.  
  96.  
  97.  
  98.                            Trademarks/Copyrights
  99.  
  100.      HP-11C, HP-12C, and HP-16C are trademarks of Hewlett-Packard
  101.      PC-DOS, IBM-PC, PC-XT, PC-AT and PS/2 are trademarks of IBM.
  102.      MS-DOS, Microsoft, and Word are trademarks of Microsoft Corp.
  103.      Tornado Notes is a trademark of Micro Logic Corp.
  104.      Hotline is a trademark of General Information, Inc.
  105.  
  106.      (C)Copyright 1986-1989, 1990 by CalcTech Inc.  Specifications
  107.      herein are subject to change without notice.
  108.  
  109.  
  110.                                    - 2 -
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.                  Registration & Commercial Version Upgrade
  120.  
  121.  
  122.  
  123.      When  you register XACT-11C for only  $28.00  +  $4.00  shipping,
  124.      we'll mail you the COMMERCIAL  VERSION UPGRADE to the program. It
  125.      contains a number of features  not  available  in  this shareware
  126.      version including:
  127.  
  128.  
  129.          o  TSR RAM-Resident (Pop-Up) capability
  130.          o  Mouse Support
  131.          o  Import/Export data from an application
  132.          o  Full programming. Programs may be saved as disk files.
  133.          o  Simulated tape which may be viewed, printed, stamped
  134.             with messages, and saved to disk.
  135.          o  Typeset printed user's manual
  136.          o  Discounts on future upgrades and notice of new products
  137.  
  138.  
  139.      Or, you may  wish  to  register  all three XACT calculators:  the
  140.      XACT-11C SCIENTIFIC, XACT-12C FINANCIAL, and XACT-16C PROGRAMMER,
  141.      for only  $48.00 + $4.00 shipping, and receive COMMERCIAL VERSION
  142.      UPGRADES for all three calculators.
  143.  
  144.      Why not register today?
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.                                    - 3 -
  168.  
  169.  
  170.  
  171.                XACT SERIES CALCULATORS - REGISTRATION ORDER FORM
  172.  
  173.  
  174.      +------+----------------------------------------+----------+----------+
  175.      | Quan |  Description                           |  Price   |  Total   |
  176.      +======+========================================+==========+==========+
  177.      |      |                                        |          |          |
  178.      |      |  XACT-11C Scientific Calculator        |  $28.00  |          |
  179.      +======+========================================+==========+==========+
  180.      |      |                                        |          |          |
  181.      |      |  XACT-12C Financial Calculator         |  $28.00  |          |
  182.      +======+========================================+==========+==========+
  183.      |      |                                        |          |          |
  184.      |      |  XACT-16C Programmer's Calculator      |  $28.00  |          |
  185.      +======+========================================+==========+==========+
  186.      |      |  SPECIAL OFFER!                        |          |          |
  187.      |      |  All 3  (XACT-11C, XACT-12C, XACT-16C) |  $48.00  |          |
  188.      +======+========================================+==========+==========+
  189.                        |                                        |          |
  190.                        | WA. state residents add 8.1% sales tax |          |
  191.                        +========================================+==========+
  192.                                             |                   |          |
  193.      Mail this form to:                     | Shipping/Handling |  $4.00   |
  194.                                             +===================+==========+
  195.      CalcTech, Inc.                                      Total  |          |
  196.      13629 Bellevue-Redmond Rd. Suite 202               Amount  |          |
  197.      Bellevue, WA.  98005                             Enclosed  +==========+
  198.      (206) 643-1682
  199.  
  200.  
  201.      Your Name: ______________________________  Phone: _____________________
  202.  
  203.      Company (if applicable)________________________________________________
  204.  
  205.      Address: ______________________________________________________________
  206.  
  207.      City: ________________________________  State __________ Zip __________
  208.  
  209.  
  210.  
  211.  
  212.      [ ] Check Enclosed   [ ] VISA         [ ] Mastercard
  213.  
  214.      Credit card #:____________________________________ Exp. Date: ____/____
  215.  
  216.      Signature: ____________________________________________________________
  217.  
  218.      Cardholder's name: ____________________________________________________
  219.  
  220.  
  221.  
  222.  
  223.  
  224.                                    - 4 -
  225.  
  226.  
  227.  
  228.  
  229.           ! ! ! !   P L E A S E    R E A D    T H I S   ! ! ! !
  230.  
  231.  
  232.      This  user's  manual  contains  complete  documentation  for  the
  233.      COMMERCIAL VERSION of XACT-11C.  As such, several of the features
  234.      described  within  this  manual will not be  available  with  the
  235.      SHAREWARE VERSION of the program included on this disk.
  236.  
  237.  
  238.      We have included documentation for the COMMERCIAL VERSION UPGRADE
  239.      so that should you find benefit from the use  of  these  programs
  240.      and decide to register (and we  hope  you will), you would have a
  241.      good idea of what to  expect from the COMMERCIAL VERSION UPGRADE.
  242.      Please  note  that  this  is  not the actual  commercial  version
  243.      documentation  but rather a disk based  "reprint".    Should  you
  244.      decide to register,  you  will receive a complete typeset printed
  245.      manual of the product(s).
  246.  
  247.  
  248.      XACT SERIES  CALCULATORS are shareware, not freeware.  Payment is
  249.      voluntary and on the "honor system".  We ask  that  you  register
  250.      the  product(s) if after a short period of  use,  you  find  them
  251.      useful in your work.  We hope that you appreciate the "try before
  252.      you buy" concept and that you will register.
  253.  
  254.  
  255.      Anyone who has ever  purchased  expensive  (or  even inexpensive)
  256.      software can attest to  the  frustration  of  being "burned" by a
  257.      lousy product.  We  think  XACT  SERIES CALCULATORS are excellent
  258.      products  but  we're  giving  you  the opportunity to  judge  for
  259.      yourself.  If you agree, please take a moment to register.
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.                                    - 5 -
  282.                              TABLE OF CONTENTS
  283.  
  284.  
  285.  
  286.      Section  Title                                                 Page
  287.  
  288.      1   Getting Started  ..........................................  8
  289.  
  290.      1.1      Introduction .........................................  8
  291.      1.2      Other Guides .........................................  8
  292.      1.3      System Requirements ..................................  9
  293.      1.4      Installing XACT-11C and Making Backups ...............  9
  294.      1.5      Command Line Options & Changing Hot Keys .............  9
  295.  
  296.      2   Loading XACT-11C .......................................... 10
  297.  
  298.      2.1      XACT-11C Shareware Version ........................... 10
  299.      2.2      XACT-11C as a RAM Resident Program ................... 10
  300.      2.3      XACT-11C as a Removable RAM Resident Program ......... 10
  301.      2.4      XACT-11C as a Standalone DOS Program ................. 11
  302.      2.5      Keyboard Conventions ................................. 11
  303.      2.6      Function Keys ........................................ 11
  304.      2.7      Prefix Keys .......................................... 12
  305.      2.8      Entering Numbers ..................................... 12
  306.      2.9      Short Cut Keys ....................................... 12
  307.  
  308.      3   Basic Operations .......................................... 13
  309.  
  310.      3.1      Setting the Display Format ........................... 13
  311.      3.2      Arithmetic Calculations and RPN ...................... 13
  312.      3.3      Clearing Numbers ..................................... 14
  313.      3.4      Negative Numbers ..................................... 15
  314.      3.5      Mathematical Operations .............................. 15
  315.      3.6      Percentage Operations ................................ 15
  316.      3.7      Exponential Notation ................................. 16
  317.      3.8      Memory Storage Registers ............................. 17
  318.      3.9      Stack Operations ..................................... 17
  319.      3.10     The LastX Register ................................... 17
  320.      3.11     The Index Register and Using Memories Indirectly ..... 18
  321.  
  322.      4   Scientific Functions ...................................... 19
  323.  
  324.      4.1      Trigonometric Functions .............................. 19
  325.      4.2      Angle Conversions .................................... 19
  326.      4.3      Polar/Rectangular Conversions ........................ 20
  327.      4.4      Permutations and Combinations ........................ 20
  328.      4.5      Random Numbers ....................................... 20
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.                                    - 6 -
  339.      Section  Title                                                 Page
  340.  
  341.      5   Features (Commercial Version) ............................. 21
  342.  
  343.      5.1      Getting Help ......................................... 21
  344.      5.2      Viewing the Tape ..................................... 21
  345.      5.3      Feeding a Result ..................................... 21
  346.      5.4      Stamping the Tape .................................... 21
  347.      5.5      Printing the Tape .................................... 22
  348.      5.6      Storing the Tape ..................................... 22
  349.      5.7      Loading a Program .................................... 22
  350.      5.8      Storing a Program .................................... 22
  351.      5.9      Importing Data from an Application ................... 23
  352.  
  353.      6   Programming ............................................... 24
  354.  
  355.      6.1      Entering a Program into XACT-11C ..................... 24
  356.      6.2      Labels in Programs ................................... 25
  357.      6.3      Using Subroutines .................................... 25
  358.      6.4      Returning from a Program or Subroutine ............... 26
  359.      6.5      Entering Data and the Run/Stop Key ................... 26
  360.      6.6      The [GoTo] Instruction ............................... 26
  361.      6.7      Branching Using the Index Register ................... 27
  362.      6.8      Program Loops Using the Index Register ............... 27
  363.      6.9      Program Loops and Branches Using the X and Y Registers 28
  364.      6.10     Branching on Flags Set/Clear ......................... 29
  365.      6.11     The Single Step Instruction .......................... 29
  366.      6.12     Moving to a Program Line Number ...................... 30
  367.      6.13     Inserting and Deleting Program Lines ................. 30
  368.  
  369.      7   Statistical Calculations .................................. 31
  370.  
  371.      7.1      Entering and Removing Numbers ........................ 31
  372.      7.2      Statistical Mean ..................................... 31
  373.      7.3      Standard Deviation ................................... 32
  374.      7.4      Linear Estimate ...................................... 32
  375.      7.5      Linear Regression .................................... 33
  376.  
  377.      Appendix / Error Conditions ................................... 34
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.                                    - 7 -
  396.      1 Getting Started
  397.  
  398.  
  399.  
  400.      1.1 Introduction
  401.  
  402.      XACT-11C is a software emulation  of  the  famous Hewlett-Packard
  403.      HP-11C.  If you are familiar with the HP-11C, you will  find that
  404.      you  already  know how to use XACT-11C.    If  not,  you'll  find
  405.      XACT-11C easy to  learn  and  use.   It will become an invaluable
  406.      tool in your work.
  407.  
  408.      XACT-11C  is a RAM resident program  (Commercial  Version).    It
  409.      remains loaded in your computer's memory ready to "pop-up" at the
  410.      activation of a "hot key", even if you're running another program
  411.      at  the  time. XACT-11C can also be  run  as  a  stand-alone  DOS
  412.      program, if desired.
  413.  
  414.      If you are already familiar with DOS and with the HP-11C, you may
  415.      only need to read Chapters 2 and 3.    This  will  provide enough
  416.      information to get you started.
  417.  
  418.      If you are new to DOS and/or the HP-11C, you may wish to read, or
  419.      at least skim, Chapters 1 through 6.
  420.  
  421.      NOTE:
  422.  
  423.      A number of  the  function  keys  on  the  XACT-11C  use graphics
  424.      characters to represent them.  Because this  disk-based shareware
  425.      documentation is printed  in  ASCII text mode, some function keys
  426.      cannot be accurately shown in this file.  We've tried our best to
  427.      emulate the look of the graphics  symbols  and to make it easy to
  428.      infer  which  functions  are  intended  from the context  of  the
  429.      Documentation.
  430.  
  431.  
  432.  
  433.      1.2 Other Guides
  434.  
  435.      There are a number  of  guides  and  references available for the
  436.      HP-11C  that  can  be  used  with  XACT-11C  as  well.  These are
  437.      generally available in bookstores and other places where Hewlett-
  438.      Packard calculators are sold.   Some  of  these  publications are
  439.      listed below.
  440.  
  441.      "HP-11C  Owner's  Handbook  and  Problem  Solving  Guide"  Covers
  442.      general  operations, functions, applications, and programming  of
  443.      the HP-11C.  Published by the Hewlett-Packard Company.
  444.  
  445.      Grapevine Publishing, Inc. P.O. Box  118,  Corvallis,  OR, 97339,
  446.      also has a number of publications about the HP-11C.
  447.  
  448.  
  449.  
  450.  
  451.  
  452.                                    - 8 -
  453.      1.3 System Requirements
  454.  
  455.      To operate the XACT-11C calculator, you will need an IBM PC,  PC-
  456.      XT, PC-AT, PS/2, or close compatible equipped with  at  least the
  457.      following:
  458.  
  459.         256K RAM
  460.         One floppy disk drive
  461.         PC-DOS or MS-DOS version 2.00 or later
  462.  
  463.  
  464.  
  465.      1.4 Installing XACT-11C and Making Backups
  466.  
  467.      You should make a copy of the programs contained on  the XACT-11C
  468.      diskette for backup purposes. Use  the DOS "copy" command to copy
  469.      all the files to another diskette or to your hard disk. There may
  470.      be  a  file  named README.DOC on your disk.  If  so,  you  should
  471.      examine it using your word processor or the DOS "type" command.
  472.  
  473.  
  474.  
  475.      1.5 Command Line Options/Changing Hot-Keys (Commercial Version)
  476.  
  477.      A command line option  is  an  additional  command typed when you
  478.      first  load  XACT-11C.    There  are  several  of  these  options
  479.      available.   For example, if you wish to  save  memory  space  by
  480.      running  XACT-11C in non RAM-Resident mode,  you  would  use  the
  481.      nopop command line option, i.e.:
  482.  
  483.          x11   /nopop  [ENTER]
  484.  
  485.      ([ENTER] means press  the  ENTER  key).   You can also change the
  486.      invocation "hot-key" using a command line  option.  Valid hot-key
  487.      definitions are  Alt-Shift-S  (default),  Alt-S,  and Alt-Ctrl-S.
  488.      For example, to change the invocation "hot-key" from it's default
  489.      setting of Alt-Shift-S to Alt-S,  and  also  change  the tapefile
  490.      name to test.txt in the \bin directory:
  491.  
  492.          x11   /alt-s   /tapefile=\bin\test.txt
  493.  
  494.      The  following  is  a  list  of available command  line  options:
  495.      (Commercial Version only)
  496.  
  497.          /nopop       Run XACT-11C in non RAM Resident mode.
  498.          /mono        Force XACT-11C into monochrome mode.
  499.          /tapefile=   Name of file used to save the tape.
  500.          /alt-s       Change the invocation key to Alt-S.
  501.          /alt-ctrl-s  Change the invocation key to Alt-Ctrl-S.
  502.          /sci         Start up XACT-11C in scientific notation.
  503.          /nomouse     Disable mouse operation.
  504.  
  505.  
  506.  
  507.  
  508.  
  509.                                    - 9 -
  510.      2 Loading XACT-11C
  511.  
  512.  
  513.  
  514.      2.1 XACT-11C shareware version
  515.  
  516.      To load the Shareware XACT-11C, at the DOS prompt type:
  517.  
  518.          x11share  [ENTER]
  519.  
  520.  
  521.  
  522.      2.2 XACT-11C as a RAM Resident program  (Commercial Version)
  523.  
  524.      To load XACT-11C, at the DOS prompt type:
  525.  
  526.          x11  [ENTER]
  527.  
  528.      You will see  the  copyright  message  appear on the screen.  The
  529.      computer  will then return to the DOS prompt  and  appear  as  if
  530.      nothing had happened.    However, the XACT-11C calculator has now
  531.      been loaded into your computer's memory and is ready to pop-up at
  532.      the activation of the hot key.  To activate XACT-11C, press:
  533.  
  534.          Alt-Shift-S
  535.  
  536.      XACT-11C  will  now  appear  on  your  screen,  ready to  perform
  537.      calculations.  To exit from XACT-11C, press the Esc key.
  538.  
  539.  
  540.  
  541.      2.3 XACT-11C as a  Removable  RAM-Resident  Program   (Commercial
  542.      Version)
  543.  
  544.      When XACT-11C is loaded  as  a RAM Resident program as in section
  545.      2.1 above, it remains loaded in your computer's memory until your
  546.      computer is rebooted  or  powered  off.   There is another way to
  547.      install  XACT-11C in such a way that it  may  be  removed  memory
  548.      without rebooting.   To  do  so,  you must use the TSRADD.COM and
  549.      TSRDROP.COM utilities provided.  Using  this  method,  to install
  550.      XACT-11C, you would type at the DOS prompt:
  551.  
  552.          tsradd x11 [ENTER]
  553.          x11 [ENTER]
  554.  
  555.      In fact, you may load RAM-Resident programs from other vendors as
  556.      well  using  the  TSRADD.COM utility.  For example, to load other
  557.      vendor's TSR's such as Tornado Notes and Hotline, you would type:
  558.  
  559.          tsradd tn [ENTER]
  560.          tn [ENTER]
  561.          tsradd hotline [ENTER]
  562.          hotline [ENTER]
  563.  
  564.  
  565.  
  566.                                    - 10 -
  567.      If you aren't running these programs from your current directory,
  568.      be sure to provide  a  complete pathname, or use the PATH command
  569.      provided with DOS.
  570.  
  571.      To remove your  memory  resident  programs,  use  the TSRDROP.COM
  572.      utility.  It is necessary to drop your TSR's in the reverse order
  573.      that they were added.  When you run TSRDROP.COM, the utility will
  574.      prompt you with  the  next  TSR  to be removed from memory. Press
  575.      ENTER to confirm the drop or Esc to exit the utility.
  576.  
  577.  
  578.  
  579.      2.4 XACT-11C as a Stand Alone Program  (Commercial Version)
  580.  
  581.      XACT-11C defaults to being a RAM Resident program,  but  can also
  582.      be run as a stand-alone DOS program.  To run XACT-11C as a stand-
  583.      alone program, type:
  584.  
  585.         x11 /nopop
  586.  
  587.  
  588.      2.5 Keyboard Conventions
  589.  
  590.      Throughout this manual, XACT-11C function keys are denoted within
  591.      a  box.    For example, the function key for the sine function is
  592.      shown as [SIN].  In the case of  function  keys  which  require a
  593.      prefix key (discussed in the next section), the prefix key is not
  594.      given in this manual since it can easily be determined.
  595.  
  596.      Keys on the PC keyboard are listed in this  manual  using  single
  597.      quotes  such as 'a'.  Numbers to be  entered  into  XACT-11C  are
  598.      shown in normal type.
  599.  
  600.  
  601.  
  602.      2.6 Function Keys
  603.  
  604.      XACT-11C has approximately 70 different function keys arranged in
  605.      the same ordering as  on  the HP-11C.  Function keys are arranged
  606.      in  groups of up to 3 functions per key; an upper, a lower and  a
  607.      middle  function  all  correspond to one function key.  The upper
  608.      and  lower  functions  are invoked by first pressing a prefix key
  609.      (discussed in the next  section)  and then the function key.  The
  610.      middle function does not require the use of a prefix key.  The PC
  611.      keystroke corresponding to function key is  shown  immediately to
  612.      the left of the function box.
  613.  
  614.      The  first  row  of function keys use the PC keys F1 through F10.
  615.      The second through  fourth  rows use the alphabetic characters as
  616.      arranged left to right on your PC keyboard.
  617.  
  618.      For  example,  the  [SIN]  function  on  XACT-11C  is invoked  by
  619.      pressing the letter 'e' on the PC keyboard.  Likewise,  the [RCL]
  620.  
  621.  
  622.  
  623.                                    - 11 -
  624.      function is invoked  by  pressing  the  letter  'b'.    The [e^x]
  625.      function is invoke by pressing F2.
  626.  
  627.  
  628.  
  629.      2.7 Prefix Keys
  630.  
  631.      The left shift key and the right shift  key  on  the  PC keyboard
  632.      operate as prefix keys.  They  are  equivalent  to the gold [ f ]
  633.      key and the blue [  g ] key on the HP-11C.  Prefix keys allow you
  634.      to activate the  upper  and  lower  functions  assigned  to  a PC
  635.      function key.  For  example,  to  invoke  the [HYP] function, you
  636.      would press and release the left shift key, and  then  press  the
  637.      letter 'w'.  Likewise, to  invoke the [HYP-1] function, you would
  638.      press and release the  right  shift key and then press the letter
  639.      'w'.  To invoke  the  [LOG] function, press and release the right
  640.      shift key, and then press F3.
  641.  
  642.  
  643.  
  644.      2.8 Entering Numbers
  645.  
  646.      To enter numbers into  XACT-11C,  use  the  numeric keypad on the
  647.      right  side of your keyboard or the  numbers  on  the  typewriter
  648.      portion of the keyboard.
  649.  
  650.  
  651.  
  652.      2.9 Short Cut Keys
  653.  
  654.      You can use the Enter key  on  the  PC, (also known as the Return
  655.      key) as the XACT-11C [ENTER] key  as  a short cut. Also, the '+',
  656.      '-', '*', and '/' keys adjacent to the numeric keypad function as
  657.      you would expect.
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.                                    - 12 -
  681.      3. BASIC OPERATIONS
  682.  
  683.      3.1 Setting the Display Format
  684.  
  685.      When you first start  it  up,  XACT-11C  defaults to displaying 4
  686.      digits  to  the  right  of  the  decimal  point.   To change this
  687.      setting, you can use  the  [Fix], the [Sci] or the [Eng] function
  688.      keys followed by  a number from 0 to 9 (enter numbers  using  the
  689.      numeric keypad).  This number  represents  the  number  of digits
  690.      displayed  to the right of the decimal point. The  [Fix] function
  691.      is used to  display  numbers in fixed (non-exponential  notation)
  692.      format.  A number will not be displayed  in  exponential notation
  693.      unless  it  is  too large to be displayed.  The [Sci] function is
  694.      used  to  display  numbers  in  scientific notation.   The  [Eng]
  695.      (Engineering)  display  function  is  much  like  the  scientific
  696.      format  except  that  the  exponent  displayed will always  be  a
  697.      multiple of 3 (kilo).
  698.  
  699.      Note that the  display    format  does   not affect the number of
  700.      digits used to perform calculations, only the way  in  which they
  701.      are displayed.  If you were  using  a 2 digit display format, the
  702.      number  12.006  would  be shown on the display as 12.01.  In this
  703.      example, the display  has  been  rounded  to  2  digits  past the
  704.      decimal point.    However,  the  internal  representation  of the
  705.      number is still kept as 12.006,  and  this value would be used in
  706.      subsequent calculations.
  707.  
  708.      To round the number internally to match the number in the display
  709.      use the [Rnd] key.  In the above example, if  the  [Rnd] key were
  710.      pressed, the internal  value  12.006 would be converted to 12.01.
  711.      To set the display format  for scientific notation, use the [Sci]
  712.      function  key,  again  followed by a number between 0 and 9.  For
  713.      engineering notation (the exponent is a multiple of  3),  use the
  714.      [Eng] function key followed by a number between 0 and 9.
  715.  
  716.  
  717.      3.2 Arithmetic Calculations and RPN
  718.  
  719.      You may already  be  familiar with Reverse Polish Notation (RPN).
  720.      RPN is a type of calculator logic that eliminates  the  need  for
  721.      the  equals  key  and  the  use of parenthesis  in  computations.
  722.      Instead,  multiple  operands  are  entered  into  the  calculator
  723.      separated by the [ENTER] key.  For example, to add the  numbers 3
  724.      and 4:
  725.  
  726.      Keystroke                Display        Comment
  727.      ================================================================
  728.         3  [ENTER]            3.00
  729.         4  [ + ]              7.00           Add 3 + 4
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.                                    - 13 -
  738.      The result, 7.00 is now displayed.  To multiply this result by 5:
  739.  
  740.      Keystroke                Display        Comment
  741.      ================================================================
  742.         5  [ * ]              35.00          7.00*5.00
  743.  
  744.  
  745.      The way that XACT-11C performs  these calculations with RPN is by
  746.      using a stack.  The stack consists of 4 registers:  X,  Y, Z, and
  747.      T.
  748.  
  749.      Any number displayed is said to be in the X  register.   When the
  750.      [ENTER]  key is pressed, a number in the  X  Register  is  pushed
  751.      into the Y Register and the previous number in the Y  Register is
  752.      pushed  into  the  Z  Register.    The  previous  number in the Z
  753.      register is pushed into the T  Register.   T stands for "Top" and
  754.      represents the top of  the  stack of numbers.  The previous value
  755.      of  the T register is lost.  When a function key such as the  [+]
  756.      key  is pressed, the value held in the Y register is added to the
  757.      X register  and  this  result  is  now  stored in the X register.
  758.      Pressing  [ENTER]  does  one  other  thing, it leaves  the  stack
  759.      disabled.  This means that a number entered after the [ENTER] key
  760.      has  been pressed is not pushed on the stack, it remains in the X
  761.      register.  When a calculator function key is pressed, it utilizes
  762.      numbers on the stack to  perform the function. Depending upon the
  763.      function, it may alter  the  X and/or Y registers, and also leave
  764.      the stack enabled or disabled.
  765.  
  766.      Most operations leave the stack "enabled" so that the next number
  767.      entered will first  push  the  stack.   The [ENTER] and the [CLx]
  768.      functions are the most notable exceptions to this rule.
  769.  
  770.  
  771.  
  772.      3.3 Clearing Numbers
  773.  
  774.      You can  clear  a  number  in  the  display by pressing the [CLx]
  775.      function  key.  The calculator is now  ready  to  accept  another
  776.      entry.  Unlike other calculators, XACT-11C does not require a key
  777.      for clearing a number  and  a different key for clearing the last
  778.      entry.  Whether you have made a mistake  in  adding  a  series of
  779.      numbers, or simply wish to start a new calculation, use the [CLx]
  780.      function  key.    The [Bksp] key  will  clear  a  number  in  two
  781.      different manners.    If  you  are  in  the process on entering a
  782.      number, but have not pressed a function  key yet, the  [Bksp] key
  783.      will clear the last numeric digit entered.  On the other hand, if
  784.      the most recent key pressed was a function key (for  example, the
  785.      [e^x] key), pressing [Bksp]  works  just  like  the [CLx] key, it
  786.      clears the number in the x register.
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.                                    - 14 -
  795.      XACT-11C  also  contains  other  function  keys    to  clear  the
  796.      following:
  797.  
  798.          [S]     Clear Sum.  Used to clear the statistical registers
  799.                  when perform statistics calculations.
  800.          [Prgm]  Clear Program.  Used to clear the program memory when
  801.                  programming XACT-11C.
  802.          [Reg]   Clear Registers.  Used to clear all registers;
  803.          [Prfx]  Clear the [ f ] or [ g ] prefix keys.
  804.  
  805.  
  806.  
  807.      3.4 Negative Numbers
  808.  
  809.      To  change  the  sign of a number in the display, press the [ChS]
  810.      (Change Sign) function key.  The [ChS] function  will  toggle the
  811.      sign of the  value in the display.  The [ChS] key is also used to
  812.      change the sign of an exponent if you    are  using   exponential
  813.      notation.
  814.  
  815.  
  816.  
  817.      3.5 Mathematical Operations
  818.  
  819.      XACT-11C contains a large number  of  commonly  used mathematical
  820.      functions.
  821.  
  822.  
  823.          [x^2]       Square of a number.
  824.          [ x ]       Square root of a number.
  825.          [Ln]        Natural log of a number.
  826.          [Log]       Base 10 log of a number.
  827.          [10^x]      Raise 10 to the value in the x register
  828.          [e^x]       Exponential of a number.
  829.          [1/X]       Reciprocal of a number.
  830.          [Intg]      Return the integer portion of a number.
  831.          [Frac]      Return the fractional portion of a number.
  832.          [y^x]       Raise a number to a power of another number.
  833.  
  834.  
  835.  
  836.      3.6 Percentage Operations
  837.  
  838.      Use the [ % ] key to calculate the percent amount of a number and
  839.      the [D%] to calculate  the  difference  in  percent one number is
  840.      from another.
  841.  
  842.      Determine the total amount you would  pay  for a $39.95  radio if
  843.      the sales tax is 8.1%.
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.                                    - 15 -
  852.  
  853.      Keystroke                Display        Comment
  854.      ================================================================
  855.  
  856.      39.95 [ENTER]            39.9500
  857.      8.1 [ % ]                3.2360         Sales tax
  858.      [ + ]                    43.1860        Total paid.
  859.  
  860.      You would pay $43.19 including sales tax.
  861.  
  862.  
  863.      What is 20% of $3500.00?
  864.  
  865.      Keystroke                Display        Comment
  866.      ================================================================
  867.      3500 [ENTER]             3500.00
  868.      20 [ % ]                 700.00
  869.  
  870.  
  871.      Example: Gasoline prices fell last month from an average of $1.09
  872.      to $.98.  What percent difference does this represent?
  873.  
  874.      Keystroke                Display        Comment
  875.      ================================================================
  876.      1.09 [ENTER]             1.0900
  877.      .98 [D%]                 -10.0917
  878.  
  879.      Gasoline prices have fallen 10.09%.
  880.  
  881.  
  882.  
  883.      3.7 Exponential Notation
  884.  
  885.      Use  exponential  notation  to  enter  very large or  very  small
  886.      numbers into XACT-11C.   The  [EEx] function key is used to enter
  887.      an  exponent.    For  example,  to  enter  the   number   12  E09
  888.      (12,000,000,000) type:
  889.  
  890.      Keystroke                Display        Comment
  891.      ================================================================
  892.      12 [EEx] 9               12.0000  +09
  893.  
  894.      Likewise, to enter the number 12-09, type:
  895.  
  896.      Keystroke                Display        Comment
  897.      ================================================================
  898.      [CLx]                    0.0000
  899.      12 [EEx] 9               12.0000 +09
  900.      [ChS]                    12.0000 -09
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.                                    - 16 -
  909.      3.8 Memory Storage Registers
  910.  
  911.      XACT-11C contains 20 different memory storage registers,  used to
  912.      perform  storage  and  memory  arithmetic  calculations.    These
  913.      memories will  retain their values until your computer is powered
  914.      off or re-booted.  Memory registers in XACT-11C  are  referred to
  915.      as R0-R9 (for register 0 through  9), and R.0  through  R.9.  For
  916.      example, to store the value 20.3 in memory register 2, type:
  917.  
  918.      Keystroke                Display        Comment
  919.      ================================================================
  920.      20.3 [Sto] 2             20.3000
  921.  
  922.      To add the number 9.6 to the contents of register 2, type:
  923.  
  924.      Keystroke                Display        Comment
  925.      ================================================================
  926.      9.6 [Sto] [ + ] 2        9.6000
  927.  
  928.      Now, if you wish to view the contents of memory register 2, type:
  929.  
  930.      Keystroke                Display        Comment
  931.      ================================================================
  932.      [Rcl] 2                  29.9000
  933.  
  934.      Memory register 2 contains the value 29.90.
  935.  
  936.  
  937.  
  938.      3.9 Stack Operations
  939.  
  940.      The  [x<>y]  function  exchanges the contents  of  the  X  and  Y
  941.      registers.    The   [R|] function rolls down the stack.    The  T
  942.      register is copied into the Z register.  The Z register is copied
  943.      into the Y  register,  and  the  Y  register is copied into the X
  944.      register.  The X register is "rolled around" into the T register.
  945.  
  946.  
  947.      3.10 The LastX Register
  948.  
  949.      The [LSTx] function key  is  not technically a part of the stack.
  950.      It is used to recover  numbers entered just before a mathematical
  951.      operation  was  performed  on the stack.  The number recovered is
  952.      held  in  a register referred to as  the  LastX  register.    For
  953.      example,  assume  you  meant  to  add  the  numbers  12 and 5 but
  954.      accidentally pressed 6 instead of  5.
  955.  
  956.      Keystroke                Display        Comment
  957.      ================================================================
  958.      12 [ENTER]               12.00
  959.      6 [ + ]                  18.00         Wrong value
  960.      [Lstx]                   6.00
  961.      [ - ]                    12.00         Subtract
  962.      5 [ + ]                  17.00         Correct result
  963.  
  964.  
  965.                                    - 17 -
  966.      3.11 The Index Register and Using Memories Indirectly
  967.  
  968.      Memories  can  also  be  accessed  indirectly  using   the  Index
  969.      register.  The index register is accessed with  the  [I] function
  970.      key.    A  number may be stored in the index register using [Sto]
  971.      [I] and recalled from the index register using [Rcl] [I].   Also,
  972.      the [x<>I] function key  is  used to exchange the X register with
  973.      the Index register in the same fashion as the [x<>y] function key
  974.      is used to exchange the X and Y registers.  For example:
  975.  
  976.      Keystroke                Display        Comment
  977.      ================================================================
  978.      5 [Sto] [ I ]            5.0000         Register I= 5
  979.      20 [Sto] [(i)]           20.0000        Register 5 = 20
  980.      [CLx]                    0.0000         Clear X reg
  981.      [Rcl] 5                  20.0000        Reg 5 = 20
  982.  
  983.      In the above example, the  Indirect Index Register [(i)] was used
  984.      to store a number indirectly.  The memory  register  accessed was
  985.      determined by the contents  of  the  [I]  register.  Memories can
  986.      also be  recalled indirectly using the operation [Rcl] [(i)], and
  987.      exchanged  with  the  X  register  indirectly  using  the  [x(i)]
  988.      function.
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.                                    - 18 -
  1023.      4. SCIENTIFIC FUNCTIONS
  1024.  
  1025.      XACT-11C provides a  rich  set  of  scientific  and trigonometric
  1026.      functions to choose from.  Each of these will be described below.
  1027.  
  1028.  
  1029.  
  1030.      4.1 Trigonometric Functions
  1031.  
  1032.      XACT-11C  contains  a complete set  of  trigonometric  functions,
  1033.      including hyperbolics.  Trig functions can be displayed in either
  1034.      Degrees by pressing  the  [Deg] function key; Radians by pressing
  1035.      the [Rad] function key, or Grads by pressing  the  [Grd] function
  1036.      key.  The available trig functions are as follows:
  1037.  
  1038.  
  1039.          [Sin]       Sine function
  1040.          [Cos]       Cosine function
  1041.          [Tan]       Tangent function
  1042.          [Sin-1]     Arc Sine function
  1043.          [Cos-1]     Arc Cosine function
  1044.          [Tan-1]     Arc Tangent function
  1045.  
  1046.      In  addition,  the  [Hyp] or the [Hyp-1] functions can be pressed
  1047.      prior to pressing [Sin], [Cos], or [Tan] functions to compute the
  1048.      hyperbolic or inverse hyperbolics of these functions.
  1049.  
  1050.  
  1051.      Keystroke                Display        Comment
  1052.      ================================================================
  1053.      [Deg]                                   Degree mode
  1054.      30 [Sin]                 0.5000         Sine of 30 degrees
  1055.      [Rad]                    0.5000         Use radian mode.
  1056.      [Pi]                     3.1416
  1057.      [Cos]                   -1.0000         Cosine of Pi radians
  1058.      [Deg]                   -1.0000         Use degree mode.
  1059.      1 [Tan-1]               45.0000         Arc Tangent of 1
  1060.  
  1061.  
  1062.  
  1063.      4.2 Angle Conversions
  1064.  
  1065.      Use XACT-11C to convert from  Degrees to Radians and from Radians
  1066.      to Degrees with the [->Rad] and [->Deg] functions respectively.
  1067.  
  1068.      You can  also  convert  from  fractional  degrees  (or fractional
  1069.      hours)  to  minutes  and  seconds  with the [->H.ms] key and from
  1070.      minutes  and  seconds  to  fractional  degrees    with the  [->H]
  1071.      function key
  1072.  
  1073.      Keystroke                Display        Comment
  1074.      ================================================================
  1075.      60 [Rad]                 1.0472         Convert to radians
  1076.      1.333 [H.ms]             1.1959         1 hr 19 min 59 sec
  1077.  
  1078.  
  1079.                                    - 19 -
  1080.      4.3 Polar/Rectangular Conversions
  1081.  
  1082.      XACT-11C can convert between  polar  and  rectangular coordinates
  1083.      with  the  [->P]  and  [->R]  functions  respectively.  For polar
  1084.      coordinates,  the  magnitude  "r"  is  placed/returned  in  the y
  1085.      register, and the angle theta is placed in the x register.  Theta
  1086.      may be in degrees, radians, or grads depending upon the trig mode
  1087.      set.  For rectangular coordinates,  the y coordinate is placed in
  1088.      the y register and the x coordinate in the x register.
  1089.  
  1090.      Keystroke                Display        Comment
  1091.      ================================================================
  1092.      1 [ENTER]
  1093.      1.3                      1.3000         x = 1.3, y = 1.0
  1094.      [->P]                    1.6401         magnitude "r" = 1.6401
  1095.      [x<>y]                   37.5686        theta = 37.5686 degrees
  1096.  
  1097.  
  1098.  
  1099.      4.4 Permutations and Combinations
  1100.  
  1101.      XACT-11C can calculate the two most common probability functions.
  1102.      Combinations are the number groups of y items, taken in groups of
  1103.      x, without regard to their order.  Permutations are the number of
  1104.      different changes in position possible  within a group of y where
  1105.      the group size is x.
  1106.  
  1107.      For   example,   the  number  of   different   permutations   and
  1108.      combinations of the  group  1  through  7 inclusive, taken 3 at a
  1109.      time are:
  1110.  
  1111.      Keystroke                Display        Comment
  1112.      ================================================================
  1113.      7 [ENTER]                7.0000
  1114.      3 [Cy,x]                 35.0000        combinations
  1115.      7 [ENTER]                7.0000
  1116.      3 [Py,x]                 210.0000       permutations
  1117.  
  1118.  
  1119.  
  1120.      4.5 Random Numbers
  1121.  
  1122.      XACT-11C will generate a  different  random  number each time the
  1123.      [Ran#] function key is pressed.  The generated number will  be in
  1124.      the range 0 < n  < 1.  In addition, a random number "seed" may be
  1125.      planted by storing  an  arbitrary  number  between 0 and 1 in the
  1126.      Random number generator register.
  1127.  
  1128.      Keystroke                Display        Comment
  1129.      ================================================================
  1130.      [Ran#]                   0.4100         Random number
  1131.      [Ran#]                   0.1847         Random number
  1132.      .123 [Sto] [Ran#]        0.1230         An arbitrary seed.
  1133.      [Ran#]                   0.6334         Random number with seed
  1134.  
  1135.  
  1136.                                    - 20 -
  1137.      5. Features  (Commercial Version only)
  1138.  
  1139.  
  1140.  
  1141.      5.1 Getting Help
  1142.  
  1143.      A Help menu is available when you are working with XACT-11C.   To
  1144.      obtain  help  press:
  1145.  
  1146.          Alt-F1
  1147.  
  1148.      An information screen will appear in a window.  The help menu can
  1149.      be removed by pressing F1 again.
  1150.  
  1151.  
  1152.  
  1153.      5.2 Viewing the Tape
  1154.  
  1155.      XACT-11C provides a  simulated  tape display which keeps a record
  1156.      of your  calculations  as  you  perform  them.   To view the tape
  1157.      press:
  1158.  
  1159.         Alt-F2
  1160.  
  1161.      The tape will appear in a window.  To remove  the  tape, press F2
  1162.      again.
  1163.  
  1164.  
  1165.  
  1166.      5.3 Feeding a Result
  1167.  
  1168.      To  feed  the  result  of  a calculation into the program  you're
  1169.      running  press:
  1170.  
  1171.          Alt-F3
  1172.  
  1173.      The calculator will disappear and  the number in the display will
  1174.      be fed to your application.
  1175.  
  1176.  
  1177.  
  1178.      5.4 Stamping the Tape
  1179.  
  1180.      To stamp a message on the simulated tape press:
  1181.  
  1182.          Alt-F4
  1183.  
  1184.      The message will appear on the tape as  well  as  the  printer or
  1185.      tape disk file if either of these options are being used.
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.                                    - 21 -
  1194.      5.5 Printing the Tape
  1195.  
  1196.      To print the tape as you make calculations press:
  1197.  
  1198.          Alt-F5
  1199.  
  1200.      To turn off printing, press F5 again.
  1201.  
  1202.  
  1203.  
  1204.      5.6 Storing the Tape
  1205.  
  1206.      The simulated tape may be  saved  to  a  disk  file  as  you make
  1207.      calculations.   Each  time you  use  XACT-11C,  calculations  are
  1208.      appended to the tape file.  To store the tape, press
  1209.  
  1210.          Alt-F6
  1211.  
  1212.      The  tape will be saved under the name  X11.TAP  in  the  current
  1213.      directory.  If   you  change  directories,  a different tape file
  1214.      with the same name  will    be    used.    If  you  wish to use a
  1215.      different name for your  tape  file, use  the command line option
  1216.      /tapefile=filename where filename  is  any  valid    DOS filename
  1217.      which can include a path.  (see section 1.6).
  1218.  
  1219.  
  1220.  
  1221.      5.7 Loading a Program
  1222.  
  1223.      To load a program previously saved press:
  1224.  
  1225.          Alt-F7
  1226.  
  1227.      A window  will  appear  requesting  a  file  name.  Enter the DOS
  1228.      filename  of the program you wish to retrieve.
  1229.  
  1230.  
  1231.  
  1232.      5.8 Storing a Program
  1233.  
  1234.      XACT-11C  allows  you  to save programs as disk files.  To save a
  1235.      program  on disk, press:
  1236.  
  1237.          Alt-F8
  1238.  
  1239.      A window will appear prompting you for comments.  You   can enter
  1240.      up   to 3 lines of comments, associated with the program you  are
  1241.      saving.  Press  the  Esc key after you have entered any comments.
  1242.      Another window will  appear  prompting you for a filename.  Enter
  1243.      any  valid DOS filename.
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.                                    - 22 -
  1251.      5.9 Importing Data from an Application
  1252.  
  1253.      You can "import" data from the screen of the previous program you
  1254.      were running before  popping-up  XACT-11C.  For instance, you may
  1255.      be working with a spreadsheet or word-processing program and wish
  1256.      to  add  a  series of numbers from the display screen.  To import
  1257.      data, press:
  1258.  
  1259.          Alt-F9
  1260.  
  1261.      You will see the screen you were working  with  before popping-up
  1262.      XACT-11C.    However,  you  have  not returned to  your  previous
  1263.      program.  Use the up, down, left, or right arrow keys to move the
  1264.      cursor to a number on the screen  you wish to import. Then, press
  1265.      F9 again to import the number into   XACT-11C.    It  will appear
  1266.      just  as if you had typed it in by hand.  If  you  now  press  F9
  1267.      again, you'll see the cursor will have moved down a row.  This is
  1268.      to help facilitate the importing of a "column" of  numbers.    If
  1269.      you wish to accept the data where the cursor rests,   again press
  1270.      F9. If not, use the arrow keys to move to the desired  location.
  1271.  
  1272.      It isn't possible to import data  from  a screen if the screen is
  1273.      in graphics  mode.    In  this  case,  XACT-11C will sound a beep
  1274.      indicating  that it can't import a number.    One  commonly  used
  1275.      program which utilizes graphics mode is Microsoft Word.    If you
  1276.      use  Word, you should use text mode.   Pressing  Alt-F9  in  Word
  1277.      allows you to switch between graphics and text modes.
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.                                    - 23 -
  1308.      6. PROGRAMMING
  1309.  
  1310.      Programming  XACT-11C  is  a  process  whereby  you  "teach"  the
  1311.      calculator a series of keystrokes, similar to the  way  you would
  1312.      normally enter the keystrokes if  you  were  computing  a problem
  1313.      manually.  In addition,  you  can  have  a program take different
  1314.      actions in a program  based  upon  values contained in registers.
  1315.      For example, the program could  take a different course of action
  1316.      if the value contained in the X register is less-than-or-equal-to
  1317.      the value  in  the  Y  register.    This is known as "conditional
  1318.      branching".    Programming  also  allows  you  to   repeat  given
  1319.      keystroke sequences a certain number of times.  This is  known as
  1320.      "looping".
  1321.  
  1322.      If  you  are  interested  in  advanced  programming  features  of
  1323.      XACT-11C, we suggest you  obtain  a  copy  of the "HP-11C Owner's
  1324.      Handbook and Problem Solving Guide"
  1325.  
  1326.  
  1327.  
  1328.      6.1 Entering a Program into XACT-11C
  1329.  
  1330.      To begin entering a new  program  into  XACT-11C,  the calculator
  1331.      must be placed in  Program  mode  by  pressing the [P/R] function
  1332.      key.   When in program mode,  subsequent  keystrokes  are  simply
  1333.      stored  in  the  calculator's  internal  memory.  The  [P/R]  key
  1334.      toggles between program and run modes.
  1335.  
  1336.      Keystroke                Display        Comment
  1337.      ================================================================
  1338.      [P/R]                    000-           Program mode
  1339.      [P/R]                    (as before)    Run mode.
  1340.  
  1341.      When first entering program mode,  the  display  shows  the value
  1342.      000.  This  represents  the current program line  number  of  the
  1343.      program    you  are entering.  Line 000- is special  in  that  it
  1344.      always represents  the beginning  of program memory.  Let's enter
  1345.      a very simple program:
  1346.  
  1347.      Keystroke             Display        Comment
  1348.      ================================================================
  1349.      [P/R]                 000-           Program mode
  1350.      [Prgm]                000-           Clear program memory
  1351.      [Lbl] [ A ]           001- 42 21 11  Label begins program
  1352.      1                     002-        1
  1353.      0                     003-        0
  1354.      [ENTER]               004-       36
  1355.      4                     005-        4
  1356.      [ + ]                 006-       10
  1357.      [Rtn]                 007-    43 32  Return from program
  1358.      [P/R]                                Run mode
  1359.  
  1360.      The  program simply adds the numbers 10+4  and  finishes.    When
  1361.      XACT-11C  is in program mode, the numbers to  the  right  of  the
  1362.  
  1363.  
  1364.                                    - 24 -
  1365.      program line are a code which represents which  key  was pressed.
  1366.      The first digit of the number indicates the row  and  the  second
  1367.      indicates the column  of  where  the  key  is  positioned  on the
  1368.      XACT-11C screen.    If  you  think  of  all the keystrokes on the
  1369.      calculator face as being in a  table  with 4 rows and 10 columns,
  1370.      each key can be identified as being in a certain row  and column.
  1371.      For  example the [ENTER] key is located in Row 3, Column 6.  Thus
  1372.      in  instruction  line  03-    the display contains the value  36.
  1373.      Likewise the [ + ] key is in  row  1,  column  10, so the display
  1374.      shows 10.]
  1375.  
  1376.      To run the program:
  1377.  
  1378.      Keystroke                Display        Comment
  1379.      ================================================================
  1380.      [ A ]                    14.0000        Program result.
  1381.  
  1382.      Be sure to use the [ A ] function key mapped to the number '1' on
  1383.      the PC keyboard, not the letter 'A' on the PC keyboard.
  1384.  
  1385.  
  1386.  
  1387.      6.2 Labels In Programs
  1388.  
  1389.      There are 15 labels  available  in programming, 0-9 and A-E.  The
  1390.      previous example used the  label  [ A ] to identify the beginning
  1391.      of  the  program.   An alphabetic label is always used to begin a
  1392.      program.    Both  alphabetic  and  numeric labels can be used  as
  1393.      labels  within a program.  Labels are also  used  as  targets  of
  1394.      [Gto] (go to) and [Gsb]  (go to subroutine) instructions.  Labels
  1395.      can also be used to separate programs in XACT-11C's memory;  as a
  1396.      way  of keeping multiple programs in memory  at  the  same  time,
  1397.      although this is generally  not  necessary  since programs may be
  1398.      saved as disk files.
  1399.  
  1400.  
  1401.  
  1402.      6.3 Using Subroutines
  1403.  
  1404.      A program can call a subroutine from within the program  when the
  1405.      [Gsb] instruction is used within  the program.  For instance, the
  1406.      instruction  [Gsb]  5  will  transfer  control  to   the  program
  1407.      instruction  immediately    following  the  instruction  [Lbl]  5
  1408.      contained elsewhere within the program.  Control will transfer to
  1409.      the  label  that  identifies  the  subroutine.    Subroutines can
  1410.      "nest",  that  is  one subroutine may call another which may call
  1411.      another, and so on.    The maximum level of subroutine nesting is
  1412.      4.
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.                                    - 25 -
  1422.      6.4 Returning from a Program or Subroutine
  1423.  
  1424.      The last instruction in a program  must  always be a [Rtn].  This
  1425.      tells the program to reset it's program line number  to  000  (go
  1426.      back to the beginning) and stop executing.  The [Rtn] instruction
  1427.      is  also the last instruction in a subroutine.    In  this  case,
  1428.      after  the  execution  of  the  [Rtn]  instruction,   control  is
  1429.      transferred  back  to the instruction  following  the  subroutine
  1430.      call.
  1431.  
  1432.  
  1433.  
  1434.      6.5 Entering Data and the Run/Stop Key
  1435.  
  1436.      There  are  generally  2 ways to get data into a  program.    The
  1437.      easiest  is  to  use  the  [Sto]  instruction  to store  data  in
  1438.      registers prior to running  the  program.    Then the program can
  1439.      contain [Rcl] instructions  to  fetch the data from the register.
  1440.      The second method is required when there is more data to be input
  1441.      than available storage registers.    It  involves using the [R/S]
  1442.      (run/stop) function key.  When  this  key  is  encountered during
  1443.      program execution, the program  stops.    At  this point, you can
  1444.      enter  new  data  and then press the [R/S] key.  The program will
  1445.      begin running again.
  1446.  
  1447.      Let's write a program to solve the equation z= 1/(x+y)  using the
  1448.      [R/S] key to allow us to enter both the x and y variables.
  1449.  
  1450.      Keystroke           Display             Comment
  1451.      ================================================================
  1452.      [P/R]
  1453.      [Prgm]                                  Clear program memory
  1454.      [Lbl] [ A ]         001-  42 21 11      Beginning of program
  1455.      [ENTER]             002-        36      x value
  1456.      [R/S]               003-        31      Stop to accept y value
  1457.      [ + ]               004-        10      Add x + y
  1458.      [1/x]               005-        15      Invert
  1459.      [Rtn]               006-     43 32      End of program
  1460.      [P/R]                                   Return to run mode.
  1461.  
  1462.      Now, to execute the program where x= 3 and y= 4:
  1463.  
  1464.      Keystroke                Display        Comment
  1465.      ================================================================
  1466.      3 [ A ]                  3.0000         Waiting for y input.
  1467.      4 [R/S]                  0.1429         Result
  1468.  
  1469.  
  1470.  
  1471.      6.6 The [Goto] Instruction
  1472.  
  1473.      The  [Gto]  instruction  can be used to unconditionally jump to a
  1474.      location  in the program  identified  with  a  [Lbl] instruction.
  1475.  
  1476.  
  1477.  
  1478.                                    - 26 -
  1479.      For example, let's write a program that will keep  track  of  the
  1480.      sum of the squares of a group of numbers we wish  to enter.
  1481.  
  1482.      Keystroke            Display            Comment
  1483.      ================================================================
  1484.      [P/R]
  1485.      [Prgm]                                  Clear program memory
  1486.      [Lbl] [ A ]          001-   42 21 11    Beginning of program
  1487.      0                    002-          0
  1488.      [ENTER]              003-         36    Clear x register
  1489.      [Lbl] 2              004-    42 21 2    Label used for looping
  1490.      [R/S]                005-         31    Stop to accept input
  1491.      [x^2]                006-      43 11    Square the input value
  1492.      [ + ]                007-         10    Add to sum of squares
  1493.      [Gto] 2              008-       22 2    Branch to label
  1494.      [P/R]
  1495.  
  1496.      To calculate the sum of the squares of 3, 7, 11, and 15:
  1497.  
  1498.      Keystroke                Display        Comment
  1499.      ================================================================
  1500.      [ A ]                    0.0000         Waiting for 1st value
  1501.      3 [R/S]                  9.0000
  1502.      7 [R/S]                 58.0000
  1503.      11 [R/S]               179.0000
  1504.      15 [R/S]               404.0000
  1505.  
  1506.  
  1507.  
  1508.      6.7 Branching Using the Index Register
  1509.  
  1510.      In the previous example, we used a [Gto] instruction to branch to
  1511.      a label, in this case, label  2.  As previously  mentioned, there
  1512.      are  15  available labels, 0-9 and  A-E.  You can  also  use  the
  1513.      index register [I] to indirectly branch to a label, or indirectly
  1514.      call  a  subroutine.   If the  [I]  register  contains  a  number
  1515.      representing a label, the  instructions  [Gto]  [I] and [Gsb] [I]
  1516.      will  indirectly  branch   to   a  label  or  indirectly  call  a
  1517.      subroutine.
  1518.  
  1519.  
  1520.  
  1521.      6.8 Program Loops Using the Index Register
  1522.  
  1523.      XACT-11C   contains  2  instructions  that  first  increment   or
  1524.      decrement a special value contained  in  the  index  register and
  1525.      either execute or  skip the next program line depending  upon the
  1526.      condition met.   These instructions are [Isg] (increment and skip
  1527.      if greater), and [Dse] (decrement and skip less  than  or equal).
  1528.      They  can  be  used to control loops where the number of times to
  1529.      execute the loop is contained in the index register.
  1530.  
  1531.      Looping with the index register requires placing a special "coded
  1532.      value" in the index register.  This value is of the form:
  1533.  
  1534.  
  1535.                                    - 27 -
  1536.            aaaaa.bbbcc
  1537.  
  1538.      In  the encoding, aaaaa represents a starting  value  of  a  loop
  1539.      counter  and will default to 0  if  it  is  not  included.   This
  1540.      value is incremented    or  decremented  each  time  the  flow of
  1541.      execution of the program encounters an [Isg] or [Dse] instruction
  1542.      respectively.   The value contained in  aaaaa  is  then  compared
  1543.      against the value in bbb.  In the case of the  [Isg] instruction,
  1544.      if the value aaaaa is greater than bbb, the  instruction  in  the
  1545.      program code which follows the [Isg] instruction will be skipped,
  1546.      and program  execution  will    begin  immediately  following the
  1547.      skipped  instruction.     Likewise  in  the  case  of  the  [Dse]
  1548.      instruction, if the value aaaa is less than or equal to the value
  1549.      bbb, the same skipping over event will occur.
  1550.  
  1551.      In the encoding, the value cc represents the  count  to increment
  1552.      or decrement by each time the loop is executed.
  1553.  
  1554.      For  example, if we wanted to execute  a  group  of  instructions
  1555.      within a loop 10 times where  the  loop counter begins at 10, and
  1556.      decrements by steps of 1 until  it  reaches 0, we would place the
  1557.      value  10.00001  in  the index register.    Notice  that  in  the
  1558.      encoding, aaaaa= 10, bbb= 000, and cc= 01.   A  program  fragment
  1559.      using this loop is shown below:
  1560.  
  1561.      10.00001
  1562.      [Sto] [ I ]
  1563.      [Lbl] [ A ]
  1564.  
  1565.         (Instructions within loop)
  1566.      [Dse]
  1567.      [Gto] [ A ]
  1568.  
  1569.         (Instructions after loop)
  1570.  
  1571.  
  1572.  
  1573.      6.9 Program Loops and Branches Using the X and Y Registers
  1574.  
  1575.      XACT-11C can also  make  "conditional  tests"  based  upon values
  1576.      contained  in    the X and Y registers.  There  are  8  different
  1577.      possible conditions in all.   These  functions  each  execute the
  1578.      next instruction in the  program  if  the  condition is true, and
  1579.      skip over it  if  the  condition  is false.  The instructions are
  1580.      defined as:
  1581.  
  1582.         [x<=y]     true if x less than or equal to y
  1583.         [x<0]      true if x less than 0
  1584.         [x>y]      true if x greater than y
  1585.         [x>0]      true if x greater than 0
  1586.         [x<>y]     true if x not equal to y
  1587.         [x<>0]     true if x not equal to 0
  1588.         [x=y]      true if x equal to y
  1589.         [x=0]      true if x equal to 0
  1590.  
  1591.  
  1592.                                    - 28 -
  1593.      6.10 Branching On Flags Set/Clear
  1594.  
  1595.      XACT-11C contains two flags  which  can be set (1) or cleared (0)
  1596.      and then may  be  later  tested  and a conditional jump may occur
  1597.      depending on the state of the  flags.    The flags are Flag 0 and
  1598.      Flag  1.  The flags are set or cleared with the [SF] or the  [CF]
  1599.      function  keys respectively.  To set flag  1,  for  example,  you
  1600.      would press [SF] 1. You may  test  the  status of a flag with the
  1601.      [F?] function key within a program.  Again, follow this  key with
  1602.      either 0 or 1 depending on  which  flag  you wish to test. If the
  1603.      flag was set, the instruction in memory immediately following the
  1604.      [F?] will be executed.  If  not,  the program will skip over this
  1605.      instruction line number and  proceed  with  execution at the next
  1606.      line number.
  1607.  
  1608.      The example below illustrates a program fragment  utilizing flags
  1609.      testing:
  1610.  
  1611.  
  1612.            (Program instructions)
  1613.      [Lbl] 3
  1614.      [SF] 0
  1615.      [Gto] B
  1616.  
  1617.            (Program instructions)
  1618.  
  1619.      [Lbl] 4
  1620.      [CF] 0
  1621.      [Gto] B
  1622.  
  1623.            (Program instructions)
  1624.  
  1625.      [Lbl] B
  1626.      [F?] 0      (test to see if flag 0 is set)
  1627.      [Gto] C     (transfer control to label C if flag 0 set)
  1628.      [Gto] D     (transfer control to label D if flag 0 clear)
  1629.  
  1630.      If  the program executes at label 3, flag 0 is set and control is
  1631.      transferred to label B.  At this point,  since  flag  0  was set,
  1632.      control  will transfer to label C.   Similarly,  if  the  program
  1633.      executes at label 4, flag 0 is cleared, and thus, when control is
  1634.      transferred to label B, the flag test will fail.  This will cause
  1635.      the [Gto] D  instruction to be executed.
  1636.  
  1637.  
  1638.  
  1639.      6.11 The Single-Step Instruction
  1640.  
  1641.      The [SST] (single-step) instruction can be used in either program
  1642.      mode or run mode.    In program mode, pressing [SST] will display
  1643.      the next program  line  number  in  a  program.  In run mode, the
  1644.      [SST] function can be used to execute a  program  one  step  at a
  1645.      time.  This is useful for program debugging.   The  [BST]  (back-
  1646.      step) instruction works like  the  [SST]  instruction  in program
  1647.  
  1648.  
  1649.                                    - 29 -
  1650.      mode except that it displays  the previous program line number in
  1651.      a program.  The  [BST]  instruction does not operate in run mode,
  1652.      that is, it won't back-step  execution of a program, only display
  1653.      the previous program line number.
  1654.  
  1655.  
  1656.  
  1657.      6.12 Moving to a Program Line Number
  1658.  
  1659.      You can move to a specific line number in either program  mode or
  1660.      run  mode.    Press [Gto] [.]  nnn  where nnn is a 3 digit number
  1661.      between  0  and 203.  In run  mode,  pressing  [R/S]  will  begin
  1662.      execution at that line number.
  1663.  
  1664.  
  1665.  
  1666.      6.13 Inserting and Deleting Program Lines
  1667.  
  1668.      XACT-11C can edit an  existing  program  by inserting or deleting
  1669.      lines  within the program.   To  do  this, you must be in program
  1670.      mode  and  move  to the line number where you wish  to  make  the
  1671.      insertion/deletion using the [Gto] [.] nnn instruction  where nnn
  1672.      is the  line  number  (described  ]  in  section 6.12 above).  To
  1673.      insert a line, simply enter the instruction for the line you wish
  1674.      to insert.  The insertion  will happen immediately  following the
  1675.      line and all other line numbers will be pushed ahead in memory.
  1676.  
  1677.      To delete a line, move to the line you wish  to  delete and press
  1678.      the [<-] function key.
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.                                    - 30 -
  1707.      7. STATISTICAL CALCULATIONS
  1708.  
  1709.  
  1710.  
  1711.      XACT-11C  can  perform  common statistical calculations including
  1712.      mean and standard deviation using it's built-in  capabilities. In
  1713.      addition, programs can be written to perform  complex statistical
  1714.      analysis.
  1715.  
  1716.  
  1717.  
  1718.      7.1 Entering and Removing Numbers.
  1719.  
  1720.  
  1721.      The [S+] function  key  is  used  to  enter a new number into the
  1722.      statistical  registers.    XACT-11C    can  be  used  to  perform
  1723.      statistical operations using both  one  and  two variables.  When
  1724.      using  one  variable,  that variable is  referred  to  as  the  X
  1725.      variable.  With two variable  analysis,  the  second  variable is
  1726.      referred to as the Y variable.
  1727.  
  1728.      When entering  single variable numbers, enter the number and then
  1729.      press the [S+] function  key.    Continue  this process until all
  1730.      numbers have been entered.
  1731.  
  1732.      With two variables,  first  key  in  the Y variable and press the
  1733.      [ENTER] key, then enter the X variable and press the [S+] key.
  1734.  
  1735.      When the [S+] function key is used, memory registers 1  through 6
  1736.      will  hold  intermediate  values.  You can use the [Rcl] function
  1737.      key to view these values, or to use them within  a  program.  The
  1738.      values contained in registers 1 through 6 are summarized below:
  1739.  
  1740.         R0   contains the value N, the number of data values
  1741.              (or data pairs) entered thus far.
  1742.         R1   contains the sum of all the X variable values.
  1743.         R2   contains the sum of the squares of all the X variable  values.
  1744.         R3   contains the sum of all the Y variable values.
  1745.         R4   contains the sum of the squares of all the Y variable  values.
  1746.         R5   contains the sum of the products of the X variable  values
  1747.              and the Y variable values.
  1748.  
  1749.      To  remove an incorrectly entered value, you  can  use  the  [S-]
  1750.      function key.  Simply re-enter the incorrect value and then press
  1751.      the [S-] function key.
  1752.  
  1753.  
  1754.  
  1755.      7.2 Statistical Mean
  1756.  
  1757.      Example: Suppose you are a  teacher  with  5  students. Student's
  1758.      scores on their  last test were 80, 63, 77, 94, and 79.  Find the
  1759.      mean  of the test results.
  1760.  
  1761.  
  1762.  
  1763.                                    - 31 -
  1764.      Keystroke                Display        Comment
  1765.      ================================================================
  1766.      [S]                                     Clear statistics
  1767.      80 [S+]                  1.0000         1st score
  1768.      63 [S+]                  2.0000         2nd score
  1769.      77 [S+]                  3.0000         3rd score
  1770.      94 [S+]                  4.0000         4th score
  1771.      79 [S+]                  5.0000         5th score
  1772.      [xbar]                  78.6000         Mean
  1773.  
  1774.      The mean of the test scores is 78.6.
  1775.  
  1776.  
  1777.  
  1778.      7.3 Standard Deviation
  1779.  
  1780.      XACT-11C can be used to  calculate the standard deviation of both
  1781.      x and y variables using the [S] function key.
  1782.  
  1783.      Example:   Assume  a  set  of  students  test scores for math and
  1784.      English tests are as follows:
  1785.  
  1786.      Student       Math       English
  1787.      =================================
  1788.         1          59         64
  1789.         2          66         69
  1790.         3          88         82
  1791.         4          70         51
  1792.  
  1793.      Calculate the standard deviation for the students results.
  1794.  
  1795.      Keystroke                Display        Comment
  1796.      ================================================================
  1797.      [S]                                     Clear registers
  1798.      59 [ENTER] 64 [S+]       1.0000         1st student
  1799.      66 [ENTER] 69 [S+]       2.0000         2nd student
  1800.      88 [ENTER] 82 [S+]       3.0000         3rd student
  1801.      70 [ENTER] 51 [S+]       4.0000         4th student
  1802.      [S]                      12.8193        Math standard deviation
  1803.      [x<>y]                   12.3659        English std. deviation
  1804.  
  1805.      The standard deviation for  the  student's  math scores was 12.82
  1806.      and for the English scores was 12.37.
  1807.  
  1808.  
  1809.  
  1810.      7.4 Linear Estimate
  1811.  
  1812.      Using values entered  for  x  and  y variables, you can compute a
  1813.      "best  guess"  for  either variable, given a sample value for the
  1814.      other one.
  1815.  
  1816.      Example: Using the above  data  for  student test scores, compute
  1817.      an estimate for a student's  English score given that the student
  1818.  
  1819.  
  1820.                                    - 32 -
  1821.      has  a math score of 80.  Compute the correlation coefficient for
  1822.      this  value.
  1823.  
  1824.      Keystroke                Display        Comment
  1825.      ================================================================
  1826.      80 [y,r]                 78.8692        Math score estimate
  1827.      [x<>y]                    0.6235        correlation coefficient
  1828.  
  1829.  
  1830.  
  1831.      7.5 Linear Regression
  1832.  
  1833.      Linear regression is a method used for determining the "best fit"
  1834.      straight  line equation for a set  of  paired  statistical  data.
  1835.      XACT-11C can determine  the  factors  for  the equation Y= MX + B
  1836.      where M is  the   slope of the line and B is the Y intercept. The
  1837.      [L.R.] function key  returns  the  slope  M in the Y register and
  1838.      the intercept B in the X register.
  1839.  
  1840.      Keystroke                Display        Comment
  1841.      ================================================================
  1842.      [L.R.]                   30.7556        Y intercept
  1843.      [R|]                      0.6014        Slope
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.                                    - 33 -
  1878.      APPENDIX
  1879.  
  1880.  
  1881.  
  1882.      Error Conditions
  1883.  
  1884.      When an error  is  encountered  during  operation,  XACT-11C will
  1885.      display the word "Error" in the calculator's display, followed by
  1886.      a 1 digit  error code. These error codes are defined below:
  1887.  
  1888.      Error 0  -  Invalid math operation.  This  error  is  encountered
  1889.      when an operation attempted  division  by 0, the square root of a
  1890.      negative number, or other invalid operation.
  1891.  
  1892.      Error  1    -    Out-of-Bounds Storage register operation.   This
  1893.      happens if a storage  register  operation  overflows the range of
  1894.      the calculator.
  1895.  
  1896.      Error 2  -  Invalid Statistical operation.    This  happens  if a
  1897.      statistical operation cannot be performed or is out of range, for
  1898.      instance taking the mean of 0 numbers.
  1899.  
  1900.      Error 3  -  Invalid Register.  An attempt was  made  to  access a
  1901.      label or line number that is out of range.
  1902.  
  1903.      Error 4  -  Invalid label or line number.  An attempt was made to
  1904.      access a label or line number that is out of range.
  1905.  
  1906.      Error 5  -  Invalid subroutine nesting.  A subroutine  was nested
  1907.      more than 4 levels deep.
  1908.  
  1909.      Error 6  -  Invalid flag accessed. An invalid flag  was accessed,
  1910.      valid flags are 0 and 1.
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.                                    - 34 -