home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / mystic.zip / PAS1.DOC < prev    next >
Text File  |  1987-08-08  |  26KB  |  778 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.             M Y S T I C   P A S C A L
  18.  
  19.                 U S E R
  20.  
  21.                   M A N U A L
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.                         Mystic Canyon Software
  52.                         P.O.Box 1010
  53.                         Pecos, New Mexico 87552
  54.                         (505) 757-6344
  55.  
  56.  
  57.  
  58.              Trust in the Lord with all your heart,
  59.                   on your own intelligence rely not;
  60.              In all your ways be mindful of him,
  61.                   and he will make straight your paths.
  62.  
  63.                                          Proverbs 3:5-6
  64.  
  65.              The beginning of wisdom is the fear of the Lord,
  66.                   and knowledge of the Holy One is understanding.
  67.  
  68.                                          Proverbs 9:10
  69.  
  70.              Toil not to gain wealth,
  71.                   cease to be concerned about it;
  72.              While your glance flits to it, it is gone!
  73.                   for assuredly it grows wings,
  74.                   like the eagle that flies toward heaven.
  75.  
  76.                                          Proverbs 23:4-5
  77.  
  78.              He who obeys the commandments he has from me
  79.                   is the man who loves me;
  80.              and he who loves me will be loved by my Father.
  81.              I too will love him and reveal myself to him.
  82.  
  83.                                          John 14:21
  84.  
  85.              No sooner had he said this than he was lifted up
  86.              before their eyes in a cloud which took him from
  87.              their sight.
  88.  
  89.                                          Acts 1:9
  90.  
  91.              From about half past ten in the evening to
  92.              about half an hour after midnight.
  93.                   Fire.
  94.              God of Abraham, God of Isaac, God of Jacob,
  95.              Not the God of philosophers and scholars.
  96.              Absolute Certainty: Beyond reason. Joy. Peace.
  97.              Forgetfulness of the world and everything but God.
  98.              The world has not known Thee, but I have known Thee.
  99.                   Joy! joy! joy! Tears of joy!
  100.  
  101.                                          Blaise Pascal
  102.                                          -- from a scrap of paper found
  103.                                             sewn up in his doublet after
  104.                                             his death.
  105.  
  106.  
  107.                                    COPYRIGHT
  108.  
  109.                       Copyright   1986  by  Mystic  Canyon Software.
  110.                       All rights reserved. Version 1.5 is released to
  111.                       shareware and may be copied and distributed,
  112.                       provided the following conditions are met:
  113.                       transcribed,  stored  in a retrieval
  114.                       system,   or  translated  into   any
  115.                       language  or computer  language,  in
  116.                       any    form   or   by   any   means,
  117.                       electronic,   mechanical,  magnetic,
  118.                       optical,    chemical,    manual   or
  119.                       otherwise, without the prior written
  120.                       permission    of    Mystic    Canyon
  121.                       Software,  P.O.Box 1010,  Pecos, New
  122.                       Mexico 87552.
  123.  
  124.  
  125.                                    DISCLAIMER
  126.  
  127.                       Mystic  Canyon  Software  makes   no
  128.                       representations  or warranties  with
  129.                       respect  to the contents hereof  and
  130.                       specifically  disclaims any  implied
  131.                       warranties   of  merchantability  or
  132.                       fitness for any particular  purpose.
  133.                       Further,   Mystic   Canyon  Software
  134.                       reserves  the right to  revise  this
  135.                       publication and to make changes from
  136.                       time  to time in the content  hereof
  137.                       without  obligation of Mystic Canyon
  138.                       Software  to  notify any  person  of
  139.                       such revision or changes.
  140.  
  141.  
  142.  
  143.                                    TRADEMARKS
  144.  
  145.                       Mystic  Pascal  is  a  trademark  of
  146.                       Mystic Canyon Software.  Wordstar is
  147.                       a  registered trademark of  MicroPro
  148.                       International Corp.
  149.  
  150.  
  151.         Mystic Pascal  User Manual                                      1
  152.  
  153.  
  154.  
  155.         1.  Introduction. . . . . . . . . . . . . . . . . . . . .   4
  156.              1.1  Overview of Mystic Pascal . . . . . . . . . . .   6
  157.              1.2  System Requirements . . . . . . . . . . . . . .   8
  158.              1.3  List of Files . . . . . . . . . . . . . . . . .   8
  159.              1.4  Replacement Disks . . . . . . . . . . . . . . .   8
  160.  
  161.         2.  Operating Mystic Pascal . . . . . . . . . . . . . . .   9
  162.              2.1  Starting Mystic Pascal. . . . . . . . . . . . .  10
  163.              2.2  Screens . . . . . . . . . . . . . . . . . . . .  11
  164.  
  165.         3.  Full Screen Editor. . . . . . . . . . . . . . . . . .  12
  166.              3.1  Loading and Saving Pascal Programs. . . . . . .  13
  167.              3.2  Entering a New Pascal Program . . . . . . . . .  13
  168.              3.3  Editing Commands. . . . . . . . . . . . . . . .  14
  169.                   3.3.1  Cursor Movement Commands . . . . . . . .  14
  170.                   3.3.2  Scroll Commands. . . . . . . . . . . . .  14
  171.                   3.3.3  Insert and Delete Commands . . . . . . .  14
  172.              3.4  Compiling a Pascal Program. . . . . . . . . . .  15
  173.              3.5  EXE File Create . . . . . . . . . . . . . . . .  15
  174.  
  175.         4.  Direct Mode . . . . . . . . . . . . . . . . . . . . .  16
  176.              4.1  Case Control. . . . . . . . . . . . . . . . . .  16
  177.              4.2  Video Snow. . . . . . . . . . . . . . . . . . .  17
  178.              4.3  Intermediate Code Listing . . . . . . . . . . .  17
  179.              4.4  Clear Screen Command. . . . . . . . . . . . . .  17
  180.  
  181.         5.  System Display. . . . . . . . . . . . . . . . . . . .  18
  182.              5.1  Storage Map . . . . . . . . . . . . . . . . . .  18
  183.              5.2  Process Control Table . . . . . . . . . . . . .  20
  184.  
  185.         6.  Help Windows. . . . . . . . . . . . . . . . . . . . .  21
  186.  
  187.         7.  Multi-tasking Support . . . . . . . . . . . . . . . .  22
  188.              7.1  Message Passing . . . . . . . . . . . . . . . .  23
  189.              7.2  START . . . . . . . . . . . . . . . . . . . . .  24
  190.              7.3  PRIORITY. . . . . . . . . . . . . . . . . . . .  25
  191.              7.4  QUEUE . . . . . . . . . . . . . . . . . . . . .  26
  192.              7.5  SEND. . . . . . . . . . . . . . . . . . . . . .  27
  193.              7.6  RECEIVE . . . . . . . . . . . . . . . . . . . .  28
  194.  
  195.         8.  Procedures and Functions. . . . . . . . . . . . . . .  29
  196.              8.1  ABS . . . . . . . . . . . . . . . . . . . . . .  30
  197.              8.2  ARCTAN. . . . . . . . . . . . . . . . . . . . .  31
  198.              8.3  CHR . . . . . . . . . . . . . . . . . . . . . .  32
  199.              8.4  COS . . . . . . . . . . . . . . . . . . . . . .  33
  200.              8.5  DISPOSE . . . . . . . . . . . . . . . . . . . .  34
  201.              8.6  EXP . . . . . . . . . . . . . . . . . . . . . .  35
  202.              8.7  FLOAT . . . . . . . . . . . . . . . . . . . . .  36
  203.              8.8  FRACTION. . . . . . . . . . . . . . . . . . . .  37
  204.  
  205.  
  206.         Table of Contents
  207.  
  208.         Mystic Pascal  User Manual                                      2
  209.  
  210.  
  211.              8.9  INTR. . . . . . . . . . . . . . . . . . . . . .  38
  212.              8.10  INTSTR . . . . . . . . . . . . . . . . . . . .  39
  213.              8.11  LN . . . . . . . . . . . . . . . . . . . . . .  40
  214.              8.12  NEW. . . . . . . . . . . . . . . . . . . . . .  41
  215.              8.13  ODD. . . . . . . . . . . . . . . . . . . . . .  43
  216.              8.14  OFFSET . . . . . . . . . . . . . . . . . . . .  44
  217.              8.15  ORD. . . . . . . . . . . . . . . . . . . . . .  45
  218.              8.16  PACK and UNPACK. . . . . . . . . . . . . . . .  46
  219.              8.17  PRED . . . . . . . . . . . . . . . . . . . . .  47
  220.              8.18  REALSTR. . . . . . . . . . . . . . . . . . . .  48
  221.              8.19  ROUND. . . . . . . . . . . . . . . . . . . . .  49
  222.              8.20  SEGMENT. . . . . . . . . . . . . . . . . . . .  50
  223.              8.21  SIN. . . . . . . . . . . . . . . . . . . . . .  51
  224.              8.22  SQR. . . . . . . . . . . . . . . . . . . . . .  52
  225.              8.23  SQRT . . . . . . . . . . . . . . . . . . . . .  53
  226.              8.24  STRINT . . . . . . . . . . . . . . . . . . . .  54
  227.              8.25  STRREAL. . . . . . . . . . . . . . . . . . . .  55
  228.              8.26  SUCC . . . . . . . . . . . . . . . . . . . . .  56
  229.              8.27  TRUNC. . . . . . . . . . . . . . . . . . . . .  57
  230.              8.28  UPCASE . . . . . . . . . . . . . . . . . . . .  58
  231.  
  232.         9.  Input/Output. . . . . . . . . . . . . . . . . . . . .  59
  233.              9.1  File Variables. . . . . . . . . . . . . . . . .  60
  234.              9.2  Standard Files. . . . . . . . . . . . . . . . .  60
  235.              9.3  How to Send Data to Your Printer. . . . . . . .  60
  236.              9.4  ASSIGN. . . . . . . . . . . . . . . . . . . . .  61
  237.              9.5  CLOSE . . . . . . . . . . . . . . . . . . . . .  62
  238.              9.6  EOF . . . . . . . . . . . . . . . . . . . . . .  63
  239.              9.7  EOLN. . . . . . . . . . . . . . . . . . . . . .  64
  240.              9.8  GET, PUT and Buffer Variables . . . . . . . . .  65
  241.              9.9  IORESULT. . . . . . . . . . . . . . . . . . . .  66
  242.              9.10  PAGE . . . . . . . . . . . . . . . . . . . . .  67
  243.              9.11  READ . . . . . . . . . . . . . . . . . . . . .  68
  244.              9.12  READLN . . . . . . . . . . . . . . . . . . . .  69
  245.              9.13  RESET. . . . . . . . . . . . . . . . . . . . .  70
  246.              9.14  REWRITE. . . . . . . . . . . . . . . . . . . .  71
  247.              9.15  SEEK . . . . . . . . . . . . . . . . . . . . .  72
  248.              9.16  WRITE. . . . . . . . . . . . . . . . . . . . .  73
  249.              9.17  WRITELN. . . . . . . . . . . . . . . . . . . .  74
  250.  
  251.         10. MYSTICIN Installation Program . . . . . . . . . . . .  75
  252.  
  253.         11. Programming Notes . . . . . . . . . . . . . . . . . .  76
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.         Table of Contents
  264.  
  265.         Mystic Pascal  User Manual                                      3
  266.  
  267.  
  268.         Appendixes
  269.  
  270.         A.  Error Messages. . . . . . . . . . . . . . . . . . . .  79
  271.  
  272.         B.  ASCII Table . . . . . . . . . . . . . . . . . . . . .  80
  273.  
  274.         C.  ISO Standard Pascal . . . . . . . . . . . . . . . . .  81
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.         Table of Contents
  321.  
  322.         Mystic Pascal  User Manual                                      4
  323.  
  324.  
  325.         1.  Introduction
  326.  
  327.              Mystic  Pascal is an integrated programming environment  for
  328.         the IBM Personal Computer and compatibles.  Mystic Pascal rigidly
  329.         follows the ISO Pascal Standard.
  330.  
  331.              Before  the IBM PC,  most personal computers were limited to
  332.         64K of main storage.   Now most machines have 256K to 640K.  Soon
  333.         most computers will have 640K or more.  Newer machines will allow
  334.         up to 16 megabytes.   (In March 1975 we purchased an Altair  8800
  335.         computer kit with 256 bytes of storage.)
  336.  
  337.              This  trend  to  larger memories permits major  advances  in
  338.         software.   Business  programs have evolved from word  processors
  339.         and spreadsheets to "integrated software systems" - single  large
  340.         programs  combining many functions.
  341.  
  342.              Mystic  Pascal  combines  editing,   compiling  and  program
  343.         testing  and debugging in one unit.   The traditional pattern  of
  344.         program  development - the edit/compile/test cycle  - is  greatly
  345.         speeded  up with an integrated programming environment.   You  do
  346.         not  need  to  return  to the operating system  and  reload  each
  347.         program  at  each  phase  of the  cycle.
  348.  
  349.              Mystic  Pascal  is an "interactive  compiler".   Mystic  can
  350.         compile entire Pascal source files like previous Pascals.  But it
  351.         also allows Pascal statements to be keyed in,  instantly compiled
  352.         and executed at the global level.   This is similar to the Direct
  353.         Mode of Basic interpreters,  with a critical difference -- Mystic
  354.         Pascal is a true object code compiler.   It is not an interpreter
  355.         or a pseudo-code compiler.
  356.  
  357.              The  Mystic  Pascal  compiler  is based on  a  new  type  of
  358.         compiler technology.   First, it is a multi-tasking compiler that
  359.         runs in the background while you are editing or doing other work.
  360.         Second,  it is an incremental compiler.   If you are working on a
  361.         5000 line program and modify 3 lines,  it only needs to recompile
  362.         those   three   lines.    If  those  lines   contained   variable
  363.         declarations,   it  will  also  recompile  lines  of  code  which
  364.         referenced  those  variables.   It keeps track of all  references
  365.         within  the  program.   Third,  Mystic Pascal  is  an  optimizing
  366.         compiler.
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.         Section 1:   Introduction
  378.  
  379.         Mystic Pascal  User Manual                                      5
  380.  
  381.  
  382.              The  highest  priority  in the design of Mystic  Pascal  was
  383.         speed  - both compilation speed and execution  speed.   Here  are
  384.         some of Mystic Pascal's major features:
  385.  
  386.         -- ISO Standard Pascal Level 0  (Mystic Pascal version 1.6)
  387.  
  388.         -- True 8086 object code compiler
  389.  
  390.         -- Two level optimization
  391.  
  392.         -- Immediate compilation and execution of global Pascal
  393.         statements
  394.  
  395.         -- Full screen editor
  396.  
  397.         -- Help windows support full Pascal language
  398.  
  399.         -- Multi-tasking support
  400.  
  401.         -- Multiple video screens are maintained
  402.  
  403.         -- Program code up to 1 megabyte
  404.  
  405.         -- Program data up to 1 megabyte
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.         Section 1:   Introduction
  435.  
  436.         Mystic Pascal  User Manual                                      6
  437.  
  438.  
  439.         1.1  Overview of Mystic Pascal
  440.  
  441.              This  is a technical overview of Mystic  Pascal.  Users  who
  442.         have  no interest in the internal structure of the system  should
  443.         skip this section.
  444.  
  445.              Mystic Pascal is an integrated programming environment.   It
  446.         has several major components:
  447.  
  448.              -- full screen editor
  449.              -- direct mode
  450.              -- system display
  451.              -- compiler
  452.              -- help facility
  453.              -- nucleus
  454.  
  455.         Nucleus
  456.  
  457.              The  nucleus is an operating system extension which adds  an
  458.         extra  layer  of functions to PC-DOS.   It does not  replace  any
  459.         existing  DOS functions.   Many nucleus functions are accessed by
  460.         interrupt vectors.  The nucleus supports these major functions:
  461.  
  462.              -- process management - multitasking
  463.              -- queue management for interprocess communication
  464.              -- dynamic storage management
  465.              -- video screen management and window support
  466.  
  467.              Each  of the major system components is a separate  process.
  468.         The components execute concurrently and may communicate with each
  469.         other  through  message queues.   Some processes have  their  own
  470.         video  screens.   The  user may switch among several screens  via
  471.         function  key 1 (F1).   The screens not currently  displayed  are
  472.         stored in buffers.
  473.  
  474.              Keyboard  input  is  routed to the  keyboard  queue  of  the
  475.         process  which  owns the currently displayed video  screen.   The
  476.         process  may  read this queue as it needs  input.   Some  special
  477.         keyboard inputs are intercepted by the nucleus and are not passed
  478.         on to active processes - F1 is one example.
  479.  
  480.         Full Screen Editor
  481.  
  482.              A  full  screen editor allows the user to enter  new  Pascal
  483.         programs and modify existing ones.  From the editor screen Pascal
  484.         source files may be loaded from and saved to disk.   The compiler
  485.         is also invoked from the editor screen via F2.
  486.  
  487.  
  488.         Compiler
  489.  
  490.  
  491.         Section 1:   Introduction
  492.  
  493.         Mystic Pascal  User Manual                                      7
  494.  
  495.  
  496.  
  497.              The  compiler  translates Pascal source programs  into  8086
  498.         object  code.   The  ISO  Standard Pascal  Level  0  language  is
  499.         supported.
  500.  
  501.              Besides compiling entire programs, single statements entered
  502.         in  the  Direct  Mode  screen may  be  compiled  and  immediately
  503.         executed.
  504.  
  505.         Direct Mode
  506.  
  507.              In the Direct Mode screen, Pascal statements may be directly
  508.         entered.   These  will be instantly compiled and executed.   This
  509.         advanced feature allows interactive or exploratory programming in
  510.         a style similar to the Lisp and Forth languages.
  511.  
  512.         System Display
  513.  
  514.              The  System  Display screen shows the current system  status
  515.         and  time of day.   A storage map and a table of process  control
  516.         blocks are formatted.   The display is updated approximately once
  517.         per second.
  518.  
  519.         Help Facility
  520.  
  521.              The  Help  facility  process  displays  the  Help  menus  in
  522.         windows and loads Help text from the system library.
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.         Section 1:   Introduction
  549.  
  550.         Mystic Pascal  User Manual                                      8
  551.  
  552.  
  553.         1.2  System Requirements
  554.  
  555.              Mystic Pascal requires 256K or more of main storage and  DOS
  556.         2.0 or higher.  Because Mystic Pascal directly accesses the video
  557.         storage  buffers,  accesses  the  ROM  BIOS,  modifies  interrupt
  558.         vectors and uses the 18 Hz timer,  it may not function  correctly
  559.         on IBM compatibles that are less than 100% compatible.
  560.  
  561.  
  562.         1.3  List of Files
  563.  
  564.              The  first thing you should do is make a backup copy of  the
  565.         master disk.  Do not use the master disk as your working disk.
  566.  
  567.              The  master  disk  does  not contain a copy  of  the  PC-DOS
  568.         operating  system which is proprietary software.   Do not try  to
  569.         boot up the master disk.
  570.  
  571.              MYSTIC.EXE     The Pascal compiler system
  572.              MYSTIC.LIB     Library of messages and help windows
  573.              MYSTICIN.EXE   System installation program
  574.              TUTOR.PAS      Mystic Pascal tutorial program
  575.              TUTOR.DOC      Instructions for running TUTOR
  576.              PROBLEM.FRM    Problem report form
  577.  
  578.  
  579.         1.4  Replacement Disks
  580.  
  581.              After receiving Mystic Pascal, the first thing you should do
  582.         is  backup the master disk.  Do not use the master disk for  your
  583.         working disk.
  584.  
  585.              If you suspect that your master disk is damaged, try to copy
  586.         the  files  to  another disk using the COPY command  rather  than
  587.         DISKCOPY.   DISKCOPY copies the entire disk and would report  all
  588.         errors  found  even  if the bad section of the disk  contains  no
  589.         files.
  590.  
  591.              If you are certain that your master disk is damaged and  not
  592.         recoverable,  we can provide a replacement.  Pack the disk up and
  593.         ship  it back to us.   We must have the original master before we
  594.         will ship the replacement.  There is no charge for replacement if
  595.         you return it within 15 days of receiving the package.   If it is
  596.         beyond 15 days, include $10.00 to cover shipping and processing.
  597.  
  598.              Also include a note indicating:
  599.  
  600.                   -- description of the problem, any error messages
  601.                   -- type of computer
  602.                   -- current shipping address
  603.  
  604.  
  605.         Section 1:   Introduction
  606.  
  607.         Mystic Pascal  User Manual                                      9
  608.  
  609.  
  610.         2.  Operating Mystic Pascal
  611.  
  612.              Mystic  Pascal  is an "integrated programming  environment."
  613.         This  means  that  it  combines  in  one  large  program  several
  614.         components  that  were generally implemented as  several  smaller
  615.         programs in earlier Pascals.
  616.  
  617.              The first component is the compiler itself which  translates
  618.         Pascal  source  programs  into  8086  object  code.   The  second
  619.         component  is  the  full screen editor which is  used  to  modify
  620.         existing Standard Pascal programs or to create new ones.
  621.  
  622.              Another  component  is the Direct Mode processor.   This  is
  623.         similar  to Direct Mode in a Basic interpreter.   You  can  enter
  624.         Pascal  statements  and  they  will  be  instantly  compiled  and
  625.         executed  and  any  output will be  displayed  immediately.   For
  626.         example,  if  your  main  Pascal program has  declared  a  global
  627.         variable X1 as an Integer, you could enter in Direct Mode:
  628.  
  629.              X1 := 75           {the value 75 is now stored in X1}
  630.  
  631.              WRITELN( SQR(X1) ) {the square of 75 is displayed   }
  632.  
  633.              READ(INFILE, VALUE);  WRITELN(VALUE)  {multiple statements}
  634.  
  635.              TUTOR              {run a main program named TUTOR}
  636.  
  637.              In  Direct Mode,  you may enter any legal Pascal  statement.
  638.         The  statement(s) you enter are inserted into a hidden  anonymous
  639.         procedure,  this  procedure  is compiled and  then  called.   The
  640.         procedure is compiled as if it were placed immediately before the
  641.         main  program BEGIN block -- you can access all global variables,
  642.         procedures  and  functions.    Local  variables,  procedures  and
  643.         functions may not be directly accessed from Direct Mode.
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.         Section 2:   Operating Mystic Pascal
  663.  
  664.         Mystic Pascal  User Manual                                      10
  665.  
  666.  
  667.         2.1  Starting Mystic Pascal
  668.  
  669.              If  you have not already done so,  you should make a  backup
  670.         copy of the Mystic Pascal master disk now.
  671.  
  672.              Mystic  Pascal  may be placed on any diskette or  hard  disk
  673.         drive.   MYSTIC.EXE is the main compiler system file.   To  start
  674.         Pascal enter:
  675.  
  676.              MYSTIC
  677.  
  678.              If MYSTIC.EXE is not on your currently logged disk, then you
  679.         must include a disk letter prefix.  For example, if MYSTIC.EXE is
  680.         on your C: disk and you are logged into the A: disk, enter:
  681.  
  682.              C:MYSTIC
  683.  
  684.              When the compiler is starting up,  it must locate the system
  685.         library file MYSTIC.LIB.  It looks for the library on the current
  686.         disk.  If it does not find it there, it asks you on which disk it
  687.         is located.
  688.  
  689.              When Mystic Pascal starts it will display the opening screen
  690.         and then go to the editor screen.  From the editor screen you can
  691.         load  a Pascal program (function key 2) or go to any other screen
  692.         (function key 1).
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.         Section 2:   Operating Mystic Pascal
  720.  
  721.         Mystic Pascal  User Manual                                      11
  722.  
  723.  
  724.         2.2  Screens
  725.  
  726.              Mystic  Pascal maintains multiple video screens.   The  term
  727.         "screen"  refers  to  a  complete video page of  25  rows  by  80
  728.         columns.   The  term  "window"  refers to a  smaller  rectangular
  729.         section of a screen.
  730.  
  731.              Some   major   components  of  the  integrated   programming
  732.         environment have their own screens.   The Editor and Direct  Mode
  733.         processor  are two examples.   If you were working in the editor,
  734.         you could switch to Direct Mode, do some work in that screen, and
  735.         then return to the editor screen.   It would appear exactly as it
  736.         did when you left it.
  737.  
  738.              Screens  which  are not currently displayed  are  stored  in
  739.         buffers in main storage.  The cursor position is also saved.
  740.  
  741.              Function key 1 (F1) is used to switch between screens.  When
  742.         you press F1,  a small menu window appears on the current screen.
  743.         The   name  of  the  current  screen  is  flashing  or  otherwise
  744.         indicated.   You  then press another function key to  select  the
  745.         screen you want to go to.  If you press any key not listed on the
  746.         menu the screen switch operation is cancelled.
  747.  
  748.                        Screen Selection
  749.  
  750.                        F1  Editor
  751.                        F2  Direct Mode
  752.                        F3  System Display
  753.                        F4  Laser Display
  754.  
  755.                        Ctrl-End   Exit
  756.  
  757.              When  the  screen selection menu is displayed you  may  also
  758.         enter  Ctrl-End  to  terminate Mystic Pascal and return  to  DOS.
  759.         Your programs and data will not be automatically saved.
  760.  
  761.              The  colors of the screens and help windows may be  modified
  762.         by the Mysticin installation program.   Also IBM Color card video
  763.         "snow" may be suppressed.
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.         Section 2:   Operating Mystic Pascal
  777.  
  778.