Olivetti M20 Manuale utente

M
20
PERsoNmCOMPUTER
PASCAL
Language
User
Guide

PREFACE
This manual is produced for programmers
using the M20 to create PASCAL language
programs. The PASCAL language avail-
able on the M20 is the MS-PASCAL
developed by "Microsoft Corporation",
and which isdescribed in the "M20 PAS-
CAL Language Reference Manual". The
reference manual gives the complete
instruction set and explains other fun-
damental principles of PASCAL program-
ming.
It
is assumed that the reader of
this User Guide has a working knowledge
of both The PASCAL language and PCOS.
This User Guide explains how to use the
PASCAL compiler and the linker to pro-
duce executable program files for PCOS
release 3.0, and supplies further
information concerning this particular
PASCAL implementation.
This User Guide is divided in two
parts:
Part
I
-
describes how to create an
executable program file
starting from a PASCAL
language source file.
Part
11
-
details the functions and
procedures (contained in
two library files) avail-
able on the M20.
The following are trademarks of Ing. C. Olivetti
&
C.. S.p.A.:
OLICOM. GTL. OLITERM. OLIWORD, OLINUM. OLISTAT. OLITUTOR.
OLIENTRY. OLISORT. OLIMASTER.
MULTIPLAN is a registered trademark of MICROSOFI Inc.
MS-DOS is a trademark of MICROSOFI' Inc.
CPIM and CPIM-86 are registered trademarks of Digital Research
Inc.
CBASIC-86 is a trademark of Digital Research Inc.
Copyright
O
by
Olivetti. 1983.
al1 rights rese~ed.
REFERENCES:
PASCAL Language Reference Manual
(Code 3987710
Q
(O))
PCOS (Professional Computer
Operating System) User Guide
(Code 3985280
D
(O)
I/0 with External Peripherals
User Guide
(Code 3982300
N
(2)
)
Assembler User Guide
(Code 3987670 L
(1
)
)
M20 Hardware Architecture and
Functions
(Code 4100630
W
(O)
)
DISTRIBUTION
:
Genera1 (6)
EDITION:
July 1983
RELEASE:
3.0
PUBLICATION ISSUED BY:
Ing.
C.
Olivetti
8
C.,
S.p.A.
Direzione Documentazione
77, Via Jervis
-
10015 IVREA (Italy)

PREFACE
This manual is produced for programmers
using the M20 to create PASCAL language
programs. The PASCAL
.
language avail-
able on the M20 is the MS-PASCAL
developed by "Microsoft Corporation",
and which is described in the "M20 PAS-
CAL Language Reference Manual". The
reference manual gives the complete
instruction set and explains other fun-
damental principles of PASCAL program-
ming.
It
is assumed that the reader of
this User Guide has a working knowledge
of both The PASCAL language and PCOS.
This User Guide explains how to use the
PASCAL compiler and the linker to pro-
duce executable program files for PCOS
release 3.0,- and supplies further
information concerning this particular
PASCAL implementation.
This User Guide is divided in two
parts:
Part
I
-
describes how to create an
executable program file
starting from a PASCAL
language source file.
Part
Il
-
details the functions and
procedures (contained in
two library files) avail-
able on the M20.
The following are trademarks of Ing. C. Oliveiii
&
C.. S.p.A.:
OLICOM. GTL, OLITERM. OLIWORD. OLINUM, OLISTAT, OLITUTOR.
OLIENTRY. OLISORT. OLIMASTER.
MULTIPLAN is a registered trademark of MICROSOFT Inc.
MS-OOS is a trademark of MICROSOFI Inc.
CPIM and CPIM-86 are registered trademarks of Digital Research
Inc.
CBASIC-86 is a trademark of Digital Research Inc
Copyright
O
by Olivetti. 1983.
al1 rights reserved.
REFERENCES:
'
I)
PASCAL Language Reference Manual
(Code 3987710
Q
(O))
PCOS (Professional Computer
Operating System) User Guide
(Code 3985280
D
(O)
210 with External Peripherals
User Guide
(Code 3982300
N
(2))
Assembler User Guide
(Code 3987670 L (1
)
M20 Hardware Architecture and
Functions
(Code 4100630
W
(O)
)
DZSTRIBUTZON
:
Genera1 (G)
EDZTZON:
July 1983
RELEASE:
3.0
Ing.
C.
Olivetti
&
C-,
S.p.A.
Direzione Documentazione
77, Via Jervis
-
10015 IVREA (Italy)

CONTENTS
PART
I
1.
TNTRODUCTION
PROGRAMMING IN PASCAL
ON THE M20
THE M20 PASCAL PACKAGE
SYSTEM REQUIREMENTS
ABOUT THIS .MANUAL
NOTATION CONVENTION
2. PROGRAM DEVELOPMENT
CREATING AN EXECUTABLE FILE
PROGRAM DEVELOPMENT
SAMPLE SESSION
CREATING AN M20 PASCAL
SOURCE PROGRAM
COMPILING YOUR M20
PASCAL PROGRAM
LINKING YOUR M20
PASCAL PROGRAM
EXECUTING YOUR M20
PASCAL PROGRAM
SAMPLE SESSION LOG
3.
THE PASCAL COMPILER
INTRODUCTION
COMPILER ACTION
PASl
PARAME'TER SPECIFICATION
PASl COMPZLER SWITCHES
ERRORS AND WARNINGS
PAS2
PAS3
DISK SPACE
4.
'
THE LINK COMMAND
INTRODUCTION
USING
"~asìnk"
THE LINK COMMAND 4-2
COMMENTS 4-4
MINIMUM COMMAND ELEMENTS 4-5
THE KEYWORDS 4-6
MULTI-FILE KEYWORDS
FILE KEYWORDS
VALUE KEYWORDS
STRING KEYWORDS
SIMPLE KEYWORDS
BLOCK KEYWORDS
KEYWORD ORDER
ERRORS
ALTERNATE STACK/HEAP SEGMENTS
PLOADING PASCAL PROGRAMS
5. LIBRARIES
INTRODUCTION
MLIB
M20 LIBRARIES
iii

USING THE M20 PASCAL LIBRARY 5-4
USING GRA.PHICS 5-4
PART
11
6. INTRODUCTION T0 THE M20 PASCAL
LZBRARY
INTRODUCTION
FUNCTION RESULTS
FUNCTIONAL GROUPS 6-1
BYTESTREAM 1/0 FUNCTIONS 6-2
BLOCK TRANSFER FUNCTIONS 6-3
STORAGE ALLOCATION FUNCTIONS 6-3
dhexlong
dhexword
directory
diskfree
dlong
dnurnw
dstring
error
getbyte
getdate
getlen
TIME AND DATE FUNCTIONS ,6-3
getposition
IEEE-488 FUNCTIONS
ERROR PROCEDURE
MISCELLANEOUS FUNCTIONS 6-5
7.
THE M20 PASCAL LIBRARY
!
bclear
bmove
bootsys
bset
bwset
checkvol
closedevice
closefile
crlf
dhexdbyte
getstatus
gettirne
getvol
ilninput
ipoll
iprint
ireset
iset
isrq0
isrql
iwrite
lookbyte

maxsize
newabsanyseg
newabsolute
newlargestblock
newsameseg
opendevice
openfile
parsename
pdispose
peof
pnew
pseek
putbyte
readbytes
readline
remove
rename
resetbyte
sdevtab
search
setcontrol
setdate
setsysseg
settirne
setvol
stickynew
stringlen
writebytes
8.
INTRODUCTION T0 GRAPHICS
INTRODUCTION
SUMMARY OF FEATURES
CONCEPTS
FLINCTIONAL GROUPS
ERRORS
DEFAULT CONDITIONS
9.
THE M20 PASCAL GRAPHICS
LIBRARY
CloseGraphics
CloseViewTrans
Escape
GDP
GraphCursorRel
GraphPosAbs
GraphPosRel

InqGraphCursor
InqGraphPos
InqPixel
1nqPixelArray
InqPixelCoords
InqTextCursor
1nqViewArea
InqWorldCoordSpace
LineAbs
LineRel
MarkerAbs
MarkerRel
OpenGraphics
PixelArray
Polyline
Polymarker
SelectCursor
SelectGrColour
SelectTxColour
SelectViewTrans
SelectColourLogic
SetColourRep
SetGrCsrBlinkrate
.
SetGrCsrShape
SetLineClass
SetTextLine
SetTxCsfBlinkrate
SetTxCsrShape
SetWorldCoordSpace
TextCursor
A. ZMPLEMENTATION CHARACTERISTICS
INTRODUCTION
ZMPLEMENTATION ADDITIONS
IMPLEMENTATION RESTRICTIONS
B. THE M20 PASCAL LIBRARY
-
FUNCTIONAL LIST
BYTESTREAM
1/O
FUNCTIONS
BLOCK TRANSFER FUNCTIONS
STORAGE ALLOCATION FUNCTIONS
TIME AND DATE FUNCTIONS
IEEE-488 FUNCTlONS
ERROR PROCEDURE
MISCELLANEOUS FUNCTIONS
C.
M20 PASCAL GRAPHICS LIBRARY
-
FUNCTIONAL LIST
TRANSFORMATION AND CONTROL
GRAPHICS OUTPUT
GRAPHICS ATTRIBUTES
D. SYSTEM ERRORS

E. M20
-
RS-232-C DEVICE
PARAMETER TABLE
F.
DEVZCE 1D (DID) ASSIGNMENTS
G.
VOCABULARY
H.
ASC11 CODE
vii


1.
INTRODUCTION
Altri manuali per M20
1
Indice
Altri manuali Olivetti Scrivania





















