DataMuseum.dk

Presents historical artifacts from the history of:

Bogika Butler

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Bogika Butler

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦c5b137986⟧ TextFile

    Length: 3584 (0xe00)
    Types: TextFile
    Names: »READ.ME«

Derivation

└─⟦314366c8f⟧ Bits:30009789/_.ft.Ibm2.50006598.imd Mogens Pelles Zilog 80,000 / EOS projekt
    └─⟦this⟧ »READ.ME« 
└─⟦977c9bad1⟧ Bits:30009789/_.ft.Ibm2.50006590.imd Mogens Pelles Zilog 80,000 / EOS projekt
    └─⟦this⟧ »READ.ME« 

TextFile

Pro Pascal Version zz 2.17  -  extra remarks
--------------------------------------------


Additional sample programs
--------------------------

This disc includes four source (.PAS) files containing  sample  Pascal
programs not listed in the manual.


1.   EASTER.PAS

As supplied, this program calculates and prints the date of Easter for
the years 1976 to 2000.  The  procedure  "dateofeaster"  contains  the
algorithm for the calculation, and  the  main  program  calls  it  and
displays the  result.   The  range  of  dates  is  determined  by  the
constants fyr and lyr at the head of the program.


2.   PRIMES.PAS

This program derives the prime numbers in  a  given  range  using  the
"sieve of Eratosthenes".  The statement in line 41 which displays  the
prime values may be commented out (by placing  comment  brackets  æ  å
around it) to allow timing of the calculation.


3.   LIFE.PAS

A program to play the "game of life".  There are two points to note.

   (1). It contains a reference to the function RAND, which is in  the
   standard library but has to be declared before  use  (see   section
   9.3 in Part II of the manual).  As a consequence,  the  compilation
   does not continue automatically into the link phase, and the latter
   must be invoked separately by e.g:
       PROLINK B:LIFE,PASLIB/S

   (2). More significantly, the program makes  use  of  direct  screen
   addressing for the display.  As coded, the operations are  for  the
   Lear Siegler ADM 3A, and the procedures  "print"  at  line  49  and
   "clearscreen" at line 59 may have to be amended for other devices.


4.   FIGURES.PAS

This is a short program to illustrate  random-access  reading  from  a
file.  A workfile is written with the values 'zero' to  'nineteen'  in
character form in the appropriate records;  the file  is  then  reset,
and is accessed to retrieve the records  randomly  on  request.   Exit
from the program is by entering a negative value.



Security of discs
_________________

The Pro Pascal software is normally supplied on write-protected discs.
Do not write-permit the master copy or execute the compiler  from  it.
Copy the files from the supplied disc(s) onto one of your  own  discs.
You may then verify that the working copy is correct (see below),  and
go on to compile, link, and run your own programs as described in Part
III of the User Manual.



Checking validity of files
__________________________

The programs PROPAS, PROLINK and PROLIB (files PROPAS.COM, PROLINK.COM
and  PROLIB.COM)  incorporate  sumchecks.   If  through  transcription
errors or other causes the files are altered, the message "Bad copy of
program" is displayed when the program is invoked.

The program PCHECK is supplied to guard against copying errors in  the
other files.   It  tests  the  files  on  the  default  drive  against
information recorded within itself.  When the Pro Pascal  software  is
accommodated on one disc, simply place the copy to be  tested  on  the
default drive and invoke PCHECK.  If the software is distributed  over
two discs, they are tested separately, by (for example):

         >a:
        A>pcheck              ætests the files on Aå
            .
            .                 æoutput from pcheck programå
            .
        A>b:
        B>a:pcheck            ætests the files on Bå
            .
            .                 æoutput from programå
            .
        B>

«eof»