Pascal_MTplus_Language_Programmers_Guide_1983_Digital_Research.pdf
(
4107 KB
)
Pobierz
Pascal/MT+
™
Language
Programmer's Guide
for the
CP/ M® Family of Operating Systems
Copyr ight ©1983
Digital Research
P.O. Box 579
160 Central. Avenue
Pacific Grove, . CA 93950
(408) 649-3896
TWX 910 360 5001
All Rights Reserved
COPYRIGHT
Copyright
©
1983 by Digital Research.
All rights
reserved.
No part of this publication may be
,reproduced, transmitted, transcribed, stored in a
retrieval system, or translated into any language or
computer language, in any form or by any means,
electronic, mechanical, magnetic, optical, chemical,
manual or otherwise, without the prior written
permission of Digital Research, Post Office Box 579,
Pacific Grove, California, 93950.
This manual is, however, tutorial in nature. Thus,
the reader is granted permission to include the
example programs, either in whole or in part, in his
or her own programs.
DISCLAIMER
Digital Research makes no representations or
warranties with respect to the contents hereof and
specifically disclaims any ·implied w'lrranties of
merchantability or fitness for any particular
purpose.
Further, Dig i tal Research reserves the
right to revise this publication and to make changes
from time to time in the· content hereof without
obligation of Digital Research to notify any person
of such revision or changes.
TRADEMARKS
CP/M is a registered trademark of Digital Research.
Pascal/MT+, DIS8080, LIBMT+, LINK/MT+, LINK-80,
RMAC, and SID are trademarks of Digital Research.
Intel is a reg istered trademark of Intel
··Corporation.
Intel SBC-80/10 is a trademark of
Intel Corporation.
Microsoft is a registered
trademark of Microsoft Corporation. UCSD Pascal is
a trademark of the Regents of the Unive.rsity Of
California. Z80 is a registered trademark of Zilog,
Inc.
The Pascal/MT+ Language
CP/M Family of Operating
th~
Digital Research TEX
in the United
Stat~s
of
Programmer's Guide for the
Systems was prepared uoing
Text Formatter and printed
America.
.
***********************************
*
First Edition: March 1983
**************~****.********.******
*
Foreword
The Pascal/MT+™ language is a full implementation of standard
Pascal as set forth in the International Standards Organization
(ISO) standard DPS/7185. Pascal/MT+ also has several additions to
standard Pascal that increase its power to develop high quality,
efficiently maintainable software for microprocessors. Pascal/MT+
is useful for both data processing applications and for real-time
control applications.
The Pascal/MT+ system, which includes a compiler, linker, and
programming tools, is implemented on a variety of operating systems
and microprocessors. Because the language is consistent among the
var ious implementations, Pascal/MT+ programs are easily
transportable between target processors and operating systems. The
Pascal/MT+ system can also generate software for use in a ROM-based
environment, to operate with or without an operating system.
This manual describes the Pascal/MT+ system, which runs under
any of the CP/M® family of operating systems on an 8080, 8085, or
Z80® -based microcomputer with at least 48K bytes of memory. The
manual tells you how to use the compiler, linker, and the other
Pascal/MT+ programming tools. Also included are topics related to
the operating system for your particular implementation.
For information about the Pascal/MT+ language, refer to the
Pascal/MT+ Languag"e Reference Manual.
iii
Table of Contents
1
Getting Started with Pascal/MT+
1.1
1.2
1.3
2
Pascal/MT+ Distribution Disks
Installing Pascal/MT+
Compiling and Linking a Simple Program.
1-2
1-7
1-8
Compiling and Linking
2.1
2.2
Compiler Organization
Invoking the Compiler
2.2.1
2.2.2
Compilation Data
Compiler Errors • •
Command Line Options
Source Code Options •
2-1
2-1
2-2
2-3
2-3
2-5
• • 2-10
• 2-11
2-15
• 2-16
0
2.2.3
2.2.4
2.3
Using the Linker • • • • • • •
2.3.1
2.~.2
2.3.3
2.4
3
Linker Options • • • •
Required Relocatable Files
Linker Error Messages •
•
'
•
Using Other Linkers
2-16
Seg.ented Prograas
3.1
3.2
Modules
Overlays •
3.2.1
3-1
3-5
3.2.2
3.2.3
3.2.4
3.2.5
3.3
4
Pascal/MT+ Overlay System •
• • • .
3-5
Using Overlays • • • • • • • • • • • •
3-6
Linking Programs with Overlays
3-7
Overlay Error Messages
3-11
Example
. • • 3-11
o
Chaining • • • •
• • 3-14
Run-tiaelnterface
4.1
Run-time Environment
4.1.1
4.1.2
Stack •
Program Structure
4-1
4-2
4-3
v
Table of Contents
( continued)
4.2
Assembly Language Routines •
4.2.1
4.2.2
4.2.3
4.2.4
4.3
·
.
.
4-3
4-4
4-4
4-7
4-8
4-9
4-10
4-12
4-14
Accessing
Variab~es
and Routines
Data Allocation • •
Parameter Passing •
• • • •
Assembly Language Interface Example
Pascal/MT+ Interface Features
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
Direct Operating System Access • • • •
INLINE • • • • • • •
• • •
Absolute Variables • • • • • • • •
•
Interrupt Procedures
·
Heap Management • •
••••••
4-15
4-17
4.4
4.5
4.6
Recursion and Nonrecursion •
Stand-alone Operation
Error and Range Checking • •
4.6.1
4.6:2
4.6.3
4.6.4
Range Checking
Exception Checking •
User-supplied Handlers
I/O Error Handling
• • • 4-18
• • • 4-19
• 4-20
• •
~
4-21
• • • 4-21
• • • 4-22
4-22
5
Pascal/MT+ Progra.aing Tools
5.1
5.2
DIS8080, the Disassembler
The Debugger
5.2.1
5.2.2
5.3
Debugging Programs
Debugger Commands ••
5-1
5-2
5-3
5:...4
5-7
5-7
LIBMT+, the Software Librarian.
5.3.1
5.3.2
Searching a Library • • •
• • • •
LIBMT+ as
a
Converter to L80 Format
5-8
vi
Plik z chomika:
sdfg_ds
Inne pliki z tego folderu:
PASCAL_User_Manual_and_Report_1974_Jensen_Wirth.pdf
(6393 KB)
Pascal_ISO_7185_1990.pdf
(3976 KB)
A_Collection_of_Pascal_Programs_1979_Wirth.pdf
(1744 KB)
The_Programming_Language_Pascal_1970_Wirth.pdf
(2083 KB)
The_Programming_Language_Pascal_Revised_Report_1973_Wirth.pdf
(1931 KB)
Inne foldery tego chomika:
Algorithms
Artificial Intelligence
C
Compilers
Concurrency
Zgłoś jeśli
naruszono regulamin