home *** CD-ROM | disk | FTP | other *** search
- Invoking FORTRAN-80 and MACRO-80
- FORTRAN-80 Compilation Switches
- FORTRAN-80 Library Subroutines
- FORTRAN-80 Logical Device Assignments
- Invoking LINK-80
- LINK-80 Switches
- Creating a FORTRAN-80 .COM File
- :Invoking FORTRAN-80 and MACRO-80
- Thσ FORTRAN-8░ compile≥ anΣ thσ MACRO-8░ assembler¼á nameΣ F8░ anΣ M8░ ì
- respectively¼ arσ invokeΣ iε ß simila≥ fashion« Iε botΦ cases¼ thσ namσ oµ ì
- thσá prograφ i≤ giveε followeΣ b∙ aε argumen⌠ list«á Thi≤ argumen⌠ lis⌠ i≤ ì
- of the general form --
- obj-dev:filename.ext,list-dev:filename.ext=
- source-dev:filename.ext
- These symbols are defined as follows --
- obj-dev: The device on which the object program is to be written.
- list-dev: The device on which the program listing is written.
- source-dev║á Thσá devicσ froφ whicΦ thσ sourcσá prograφá inpu⌠á t∩ ì
- FORTRAN-80 or MACRO-80 is obtained.
- filename.ext║á Thσá filenamσ anΣ filenamσ extensioε oµ thσá objec⌠ ì
- prograφ file¼á thσ listinτ file¼á anΣ thσ sourcσ prograφ file«
-
- Thσ defaul⌠ extensions are --
-
- FOR FORTRAN-80 Source File
- MAC MACRO-80 Source File
- PRN Print (Listing) File
- REL Relocatable Object File
- COM Absolute Object File ORGed to 100H
-
- Thσ specification≤ fo≥ eithe≥ thσ objec⌠ file¼á thσ listinτá file¼á o≥ ì
- botΦá ma∙á bσá omitted«á Iµ neithe≥ ß listinτ filσ no≥ aε objec⌠á filσá i≤ ì
- desired¼ placσ onl∙ ß commß t∩ thσ lef⌠ oµ thσ equa∞ sign« Iµ thσ name≤ oµ ì
- thσ objec⌠ filσ anΣ thσ listinτ filσ arσ omitted¼á thσ defaul⌠ i≤ thσá namσ ì
- of the source file. Logical CP/M devices may be specified as follows --
-
- A:, B: Disk Drives (Only A: or B:)
- HSR: High Speed Reader
- LST: Line Printer
- TTY: Teletype or CRT
-
- Examples --
- A>F80
- *=TEST
- Compile the program TEST.FOR and place the object in TEST.REL
- *,TTY:=TEST
- Compilσá thσá prograφá TEST.FO╥á anΣá lis⌠á thσá prograφá oεá thσ ì
- terminal. No object is generated.
- *TESTOBJ=TEST.FOR
- Compile the program TEST.FOR and put object in TESTOBJ.REL
- *TEST,TEST=TEST
- Compilσá TEST.FOR¼á anΣá pu⌠á objec⌠ iε TEST.RE╠ anΣá listinτá iε ì
- TEST.PRN
- *,=TEST.FOR
- Compilσ TEST.FO╥ bu⌠ producσ n∩ objec⌠ o≥ listinτá file«á Usefu∞ ì
- for checking for errors.
-
- Iεá al∞á cases¼á thσá ¬ i≤ thσ promp⌠ froφá FORTRAN-80«á Thσá indicateΣ ì
- operation≤á ma∙ als∩ bσ performeΣ b∙ typinτ 'F80º followeΣ b∙á thσá option¼ ì
- like 'F80 =TEST'.
- Refer to the 'FORTRAN-80 User's Manual', Copyright 1977, by Microsoft.
- :FORTRAN-80: FORTRAN-80 Compilation Switches
- ┴ numbe≥ oµ differen⌠ switche≤ ma∙ bσ giveε iε thσ commanΣ strinτ tha⌠ ì
- wil∞ affec⌠ thσ forma⌠ oµ thσ listinτ file« EacΦ switcΦ shoulΣ bσ precedeΣ ì
- by a slash (/):
-
- Switch Function
- ------ --------
- O Print all listing addresses in octal
- H Print all listing addresses in hexadecimal (default)
- N Do not list generated code
- R Force generation of an object file
- L Force generation of a listing file
- P Each /P allocates an extra 100 bytes of runtime stack space
- ═á Specifie≤ t∩ thσ compile≥ tha⌠ thσ generateΣ codσ shoulΣ bσ iε a
- form which can be loaded into ROM.
-
- :FORTRAN-80: FORTRAN-80 Library Subroutines
- Thσá standarΣ librar∙ (FORLIB.REL⌐ include≤ thσ followinτá subroutine≤ ì
- and functions --
-
- ABS IABS DABS AINT INT IDINT
- AMOD MOD AMAX0 AMAX1 MAX0 MAX1
- DMAX1 AMIN0 AMIN1 MIN0 MIN1 DMIN1
- FLOAT IFIX SIGN ISIGN DSIGN DIM
- IDIM SNGL DBLE EXP DEXP ALOG
- DLOG ALOG10 DLOG10 SIN DSIN COS
- DCOS TANH SQRT DSQRT ATAN DATAN
- ATAN2 DATAN2 DMOD PEEK POKE INP
- OUT
-
- :FORTRAN-80: FORTRAN-80 Logical Device Assignments
-
- LUN* Device
- ---- ------è 1,3,4,5 Preassigned to CON:
- 2 Preassigned to LST:
- 6-10 Preassigned to Disk Files (Reassignable)
- 11-255 User-Assignable
-
- * LUN = Logical Unit Number
- :LINK-80: Invoking LINK-80
- EacΦ commanΣ t∩ LINK-8░ consist≤ oµ ß numbe≥ oµ filename≤ anΣ switche≤ ì
- separated by commas --
- obj-dev1:filename.ext/sw1,obj-dev2:filename.ext, ...
- Iµá thσá inpu⌠á devicσá fo≥ ß filσ i≤á omitted¼á thσá defaul⌠á i≤á thσ ì
- currentl∙ loggeΣ disk«á Iµ thσ extensioε oµ ß filσ i≤ omitted¼ thσ defaul⌠ ì
- i≤á .REL«á Afte≥á eacΦá linσ i≤ typed¼á LINK-8░ wil∞ loaΣá o≥á searcΦá thσ ì
- specifieΣ files¼á and¼á wheε finished¼ i⌠ wil∞ lis⌠ al∞ symbol≤ tha⌠ remaiε ì
- undefineΣ followeΣ b∙ aε asterisk«á LINK-8░ i≤ invokeΣ b∙ thσ prograφ namσ ì
- 'L80'.
- LINK-8░á caε bσ useΣ t∩ generatσ ß .CO═ filσ oµ ß FORTRAN-8░á program« ì
- This can be done by typing --
- L80 program/E
- LINK-80 will respond with a string of the form --
- [aaaa bbbb nn]
- The user may then create the .COM file by typing --
- SAVE nn program.COM
- :LINK-80: LINK-80 Switches
- Thσ followinτ arσ thσ switche≤ fo≥ LINK-80«á A≤ fo≥ FORTRAN-80¼ thesσ ì
- switches are preceeded by a slash (/).
-
- Switch Function
- ------ --------
- R Reset. Initialize loader.
- E,E:namσá Exi⌠ LINK-80«á FORLIB.RE╠ wil∞ bσ searcheΣ t∩ satisf∙á existinτ ì
- undefineΣ references«á Iµ 'nameº i≤ specified¼ thσ valuσ oµ thi≤ ì
- symbol is used as the start address of the program.
- G,G:namσ Go«á Star⌠ executioε oµ program« FORLIB.RE╠ wil∞ bσ searcheΣ t∩ ì
- satisfy any existing undefined references.
- U List all undefined references.
- ═ Map« Lis⌠ al∞ defineΣ reference≤ anΣ thei≥ values╗ al∞ undefineΣ ì
- references are followed by an asterisk.
- ╙ Search«á SearcΦ thσ filσ specifieΣ beforσ thi≤ switcΦ t∩ satisf∙ ì
- references.
- ╬ Iµ ß filename/╬ i≤ specified¼á thσ prograφ wil∞ bσ saveΣ oεá disδ ì
- under the selected name with a default extension of .COM.
- P and D See Addenda to Section 2 of documentation.
-
- Threσ number≤ arσ specifieΣ afte≥ thσ /┼ anΣ /╟ switche≤ arσ executed« ì
- They are given in the form --
- [aaaa bbbb nn]
- aaaa - start address of program
- bbbb - address of next available byte
- nn - number of 256-byte pages used
- :Creating a FORTRAN-80 .COM File
- Therσá arσá tw∩á basiπá way≤ t∩ creatσ ß .CO═á filσá oµá ßá FORTRAN-8░ ì
- program«á Fo≥ example¼á t∩ generatσ PROG.CO═ froφ PROG.FOR¼ proceeΣ iε onσ ì
- of the following ways --
-
- I. Using SAVE
- F80 =PROG
- L80 PROG/E
- [aaaa bbbb nn] -- response from LINK-80 (necessary data)
- SAVE nn PROG.COM
-
- II. Using /N LINK-80 Switch
- F80 =PROG
- L80 PROG/E,PROG/N