# Apple Pascal Language Reference Manual — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-c1e0a9784e48308fa08cbd7ccf5d350bccb542ee7392f4df3e8b36a8f6375452)

Transcribed text:

Apple II
Apple Pascal
Language Reference Manual

Image description: A book cover with a rainbow Apple logo in the upper right, title text at top on a cream background, and a large dark brown panel below showing an isometric flowchart-like diagram of orange arrows connecting purple and red rounded blocks.

Printed product names: Apple II · Apple Pascal

Languages: English

[Original Image 1](https://www.vintageapple.net/files/efc3fb0f040e8731457fd944fab4677fb79722b805efa66857922cca127158e1/f3451d44fdb458954f15af30.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-920c60698b24ae21df967ee5ebe4a5e552e918a2652d561f0fd2bf1dc8bf1cbd)

Transcribed text:

Apple II

Apple Pascal

Language Reference Manual

Image description: A book cover with a beige background, an Apple logo in the upper right, and a dark brown illustrated panel showing colorful three-dimensional flowchart-style blocks (purple, red, and pink) connected by orange arrows.

Printed product names: Apple II · Apple Pascal

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-27f4773aa32ad092a1d4c2e29ab057b4d7c3319a00a85f36260d2d9d1e4fe25f)

Transcribed text:

NOTICE
Apple Computer Inc.   reserves   the right   to   make improvements in the
product described in this manual at   any   time and without notice.
DISCLAIMER   OF   ALL   WARRANTIES   AND   LIABILITY
APPLE   COMPUTER   INC.   MAKES   NO   WARRANTIES,   EITHER   EXPRESS   OR   IMPLIED,
WITH   RESPECT   TO   THIS   MANUAL   OR   WITH   RESPECT   TO   THE   SOFTWARE   DESCRIBED
IN   THIS   MANUAL,   ITS   QUALITY,   PERFORMANCE,   MERCHANTABILITY,   OR   FITNESS
FOR   ANY   PARTICULAR   PURPOSE.   APPLE   COMPUTER   INC.   SOFTWARE   IS   SOLD   OR
LICENSED   "AS   IS".   THE   ENTIRE   RISK   AS   TO   ITS   QUALITY   AND   PERFORMANCE   IS
WITH   THE   BUYER.   SHOULD   THE   PROGRAMS   PROVE   DEFECTIVE   FOLLOWING   THEIR
PURCHASE,   THE   BUYER   (AND   NOT   APPLE   COMPUTER   INC.,   ITS   DISTRIBUTOR,   OR
ITS   RETAILER)   ASSUMES   THE   ENTIRE   COST   OF   ALL   NECESSARY   SERVICING,
REPAIR,   OR   CORRECTION   AND   ANY   INCIDENTAL   OR   CONSEQUENTIAL   DAMAGES.   IN
NO   EVENT   WILL   APPLE   COMPUTER   INC.   BE   LIABLE   FOR DIRECT,   INDIRECT,
INCIDENTAL,   OR   CONSEQUENTIAL   DAMAGES   RESULTING   FROM   ANY   DEFECT   IN   THE
SOFTWARE,   EVEN   IF   APPLE   COMPUTER   INC.   HAS   BEEN   ADVISED   OF   THE
POSSIBILITY   OF   SUCH   DAMAGES.   SOME   STATES   DO   NOT   ALLOW   THE   EXCLUSION   OR
LIMITATION   OF   IMPLIED   WARRANTIES   OR   LIABILITY   FOR-INCIDENTAL   OR
CONSEQUENTIAL   DAMAGES,   SO   THE   ABOVE   LIMITATION   OR   EXCLUSION   MAY   NOT
APPLY   TO   YOU.
This   manual is   copyrighted.   All   rights are reserved.   This   document
may not, in whole or part,   be   copied,   photocopied,   reproduced,
translated or   reduced to any electronic medium or machine readable   form
without prior consent, in writing,   from Apple   Computer Inc.
©   1980   by   APPLE   COMPUTER   INC.
10260   Bandley Drive
Cupertino, California   95014
(408)   996-HH0
The word   APPLE   and   the Apple logo are registered   trademarks   of
APPLE   COMPUTER   INC.
APPLE Product   #A2L0027
(030-0101-00)
:

Reading notes: Transcript intentionally left empty per instructions; the supplied extracted copy was used only for the other fields. The phone number '(408) 996-HH0' looks like a possible OCR error and may be a different digit sequence. The supplied copy is a manual notice rather than an advertisement, so no advertised product names or prices were found. 'FOR-INCIDENTAL' in the liability paragraph has an unusual hyphen that may be a line-break artifact. Trailing ':' and the part number '(030-0101-00)' appear at the end of the copy and their placement is uncertain. Extra spacing in the source copy (for example 'reserves   the right') may reflect justified layout rather than original spelling.

Printed dates: 1980

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-892f3e310141c170d61055df226dadb5604b0952cae1b34223f806c51d364d4c)

Transcribed text:

Apple II
Apple Pascal
Language Reference Manual

Image description: A plain white cover page with the right-aligned text 'Apple II' above a bold black 'Apple Pascal' title framed by two horizontal green rules, with 'Language Reference Manual' in smaller black type below.

Printed product names: Apple II · Apple Pascal

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-5f0af8dfeec0fa4edef0df689cfb2d79ae497d56f97d20f895fc2ce0596d9b00)

Transcribed text:

ACKNOWLEDGEMENTS
The Apple   Pascal™   system incorporates   UCSD   Pascal'M   and Apple
extensions for   graphics   and other functions.   UCSD   Pascal   was   developed
largely   by the Institute for   Information   Science   at   the   University   of
California   at   San   Diego,   under   the direction of Kenneth L.   Bowles.
"UCSD   PASCAL"   is   a   trademark of   The Regents   of   The   University   of
California.   Use   thereof   in conjunction with   any   goods   or services is
authorized by specific license only and is   an indication that   the
associated product or service has   met quality assurance standards
prescribed by   the   University.   Any unauthorized   use   thereof is   contrary
to the   laws of   the   State   of   California.
APPLE PASCAL LANGUAGE

Printed product names: Apple Pascal · UCSD Pascal · Apple Pascal Language

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-9027315bc636a1e6dfa2b8dda4c8ce8a74a8a46574fe1a43fdd8e6976efe23bd)

TABLE OF CONTENTS

Transcribed text:

TABLE   OF   CONTENTS
CHAPTER   1
INTRODUCTION   1
2   Getting Started
2   Scope   of This   Document
2   How to   Use   This   Document
3   Organization
4   Notation   Used   in This   Manual
4   Differences   Between Apple   and Standard   Pascal
4   Predefined Variable Types
4   Built-In Procedures   and Functions
5   Breaking Programs Into   Pieces
5   Special   Units   for   the Apple
CHAPTER   2
PREDEFINED TYPES
8   The   STRING   Type
11   The   FILE Types
11   A Note   on Terminology
11   INTERACTIVE Files
12   Untyped   Files
12   Predefined Files
12   Textfiles
14   The   SET   Types
15   Packed   Variables
15   PACK   and   UNPACK
15   Packed   Files
15   Packed   Arrays
17   Packed   Records
18   Using   Packed   Variables   as Parameters
19   The   LONG   INTEGER Type
7
APPLE   PASCAL   LANGUAGE

Reading notes: Page numbers and section entries are interleaved, so the mapping of some entries to pages is uncertain.

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-c5ac77802f0ced030d01e07e6e1c8b6e73cd7c5eb14b8b95b00f26741d9969c5)

Transcribed text:

CHAPTER 3
BUILT-IN   PROCEDURES   AND   FUNCTIONS
22   String Built-Ins
22   The   LENGTH Function
23   The   POS   Function
23   The   CONCAT   Function
24   The   COPY   Function
24   The   DELETE Procedure
25   The   INSERT Procedure
25   The   STR   Procedure
26   Input   and   Output   Built-Ins
26   Overview of Apple   Pascal   I/O   Facilities
27   The   REWRITE Procedure
27   The   RESET   Procedure
28   The   CLOSE   Procedure
29   The   EOF   Function
30   The   EOLN   Function
30   The   GET and   PUT   Procedures
32   The   IORESULT   Function
32   Introduction to   Text   I/O
33   The   READ Procedure
34   READ With a   CHAR Variable
34   READ With   a.   Numeric Variable
35   The   READLN Procedure
36   The   WRITE and   lvRITELN   Procedures
39   The   PAGE   Procedure
39   The   SEEK   Procedure
41   The   UNITREAD   and   UNITWRITE   Procedures
42   The   UNITBUSY   Function
42   The   UNITWAIT   Procedure
43   The   UNITCLEAR   Procedure
43   The   BLOCKREAD   and   BLOCKWRITE   Functions
45   Miscellaneous Built-Ins
45   The   ATAN Function
45   The   LOG Function
45   The   TRUNC   Function
45   The   PWROFTEN   Function
46   The   MARK and   RELEASE Procedures
48   The   HALT Procedure
48   The   EXIT Procedure
48   The   MEMAVAIL Function
49   The   GOTOXY   Procedure
49   The   TREESEARCH Function
51   Byte-Oriented Built-Ins
51   The   SIZEOF   Function
51   The   SCAN   Function
52   The   MOVELEFT   and   MOVERIGHT   Procedures
53   The   FILLCHAR Procedure
54   Summary
APPLE PASCAL LANGUAGE

Reading notes: Table of contents with irregular spacing and OCR-style characters such as 'lvRITELN' and 'a.' in entries

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-107284e7f13bb9f00a463d3cad6c70d513c84fb93048f740f8581825c065f06b)

CHAPTER 4 THE PASCAL COMPILER

Transcribed text:

CHAPTER 4
THE   PASCAL   COMPILER   57
58   Introduction
58   Diskette Files Needed
59   Using the Compiler
61   The Compiler Options
61   Compiler Option   Syntax
62   The   "Comment" Option
62   The   "GOTO   Statements"   Option
63   The   "IO   Check" Option
63   The "Include   File"   Option
64   The   "Listing"   Option
66   The   ''Noload" Option
66   The   "Page"   Option
66   The   "Quiet   Compile" Option
66   The   "Range Check" Option
67   The "Resident" Option
67   The   "Swapping"   Option
68   The   "User   Program" Option
68   The   "Use   Library"   Option
70   Compiler Option   Summary
CHAPTER 5
PROGRAMS   IN   PIECES   71
72   Introduction
74   SEGMENT   Procedures   and Functions
74   Requirements   and Limitations
75   Libraries   and UNITs
75   UNITs   and   USES
76   Regular   UNITs
76   Intrinsic UNITs
77   The   INTERFACE Part of a UNIT
78   The   IMPLEMENTATION Part of   a   ID~IT
78   The Initialization Part of   a UNIT
78   An   Example   UNIT
79   Using the   Example UNIT
80   Nesting UNITs
81   Changing a UNIT or its Host Program
82   EXTERNAL Procedures   and Functions
APPLE   PASCAL   LANGUAGE

Reading notes: Table of contents page numbers and some spacing irregularities in the extracted text Heading reads 'CHAPTER 4 THE PASCAL COMPILER' with page number 57 following

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-d4684e3ff5590bb8addcdbc5566c1c35f185e7ca80121436b87a693ac6dd7261)

Transcribed text:

CHAPTER 6
OTHER   DIFFERENCES
84   Identifiers
84   CASE   Statements
Comments
GOTO
Program Headings
Size Limits
Extended Comparisons
84
85
85
85
85
86
86
86
Procedures   and Functions   as Parameters
RECORD   Types
The   ORD   Function
CHAPTER 7
SPECIAL   UNITS   FOR   THE   APPLE
90   Apple Graphics:   The   TURTLEGRAPHICS   UNIT
90   The Apple Screen
90   The   INITTURTLE Procedure
91   The   GRAFHODE   Procedure
91   The   TEXTMODE   Procedure
91   The   VIEWPORT   Procedure
92   Using   Color:   PENCOLOR
93   More   Color:   FILLSCREEN
94   Turtle Graphic Procedures:   TURNTO,   TURN,   and   MOVE
95   Turtle Graphic Functions:   TURTLEX,   TURTLEY,   TURTLEANG,
and   SCREENBIT
95   Cartesian Graphics:   The   HOVETO   Procedure
96   Graphic Arrays:   The   DRAWBLOCK   Procedure
98   Text   as Graphics:   WCHAR,   WSTRING,   and   CHARTYPE
101   Other   Special Apple Features:   The   APPLESTUFF   UNIT
101   The   RANDOM   Function
102   The   RANDOMIZE   Procedure
102   The   KEYPRESS   Function
103   PADDLE,   BUTTON,   and   TTLOUT
104   ~laking   Husic:   The   NOTE   Procedure
105   Transcendental Functions:   The   TRANSCEND   UNIT
APPLE PASCAL LANGUAGE
83
89

Reading notes: Table of contents layout with page numbers makes reading order partly ambiguous

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-a1af01ab4d6d1ea7985722a63af92e8f76ab4437876162dfb3009ac2d16fda7c)

Transcribed text:

APPENDIX   A
DEMONSTRATION   PROGRAMS
108   Introduction
108   A Fully Annotated Graphics   Program
120   Other   Demonstration   Programs
120   Diskette Files Needed
121   The   "TREE"   Program
123   The   "BALANCED"   Program
124   The   "CROSSREF"   Program
125   The   "SPIRODEHO"   Program
126   The   "HILBERT"   Program
126   The   "GRAFDEHO"   Program
127   The   "GRAFCHARS"   Program
128   The   ''DISKIO"   Program
APPENDIX   B
TABLES
132   Table   1:   Execution Errors
133   Table   2:   I/O   Errors   (IORESULT   Values)
134   Table 3:   Reserved Words
135   Table   4:   Predefined   Identifiers
136   Table 5:   Identifiers Declared in Supplied UNITs
137   Table 6:   Compiler Error Messages
141   Table   7:   ASCII Character   Codes
APPENDIX   C
ADDITIONAL   TEXT   1/0   DETAILS
107
131
143
APPLE   PASCAL   LANGUAGE

Reading notes: Headline not clearly identified; source is a table of contents-style appendix listing

Printed product names: APPLE PASCAL

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-bebc375f985cd0c46d6e1d74c4cc4056f0fe352931dab6f79478efb68ab96531)

Transcribed text:

APPENDIX D
ONE-DRIVE   STARTUP
148   Equipment   You Will Need
148   The Two-Step Startup
148   Step   One   of Startup
149   Step   Two   of Startup
150   Changing the Date
151   Making Backup Diskette Copies
151   Why   We Make   Backups
152   How   We Make   Backups
152   Getting   the   Big Picture
153   Formatting New Diskettes
155   Making the Actual Copies
158   Do It Again,   Sam
158   Using   the System
158   A Demonstration
160   Do It Yourself
164   What   To Leave In   the Drive
165   One-Drive   Summary
APPENDIX E
TWO-DRIVE   STARTUP
170   Equipment   You Will Need
170   More Than Two Disk Drives
171   Numbering the Disk Drives
171   Pascal In Seconds
172   Changing the Date
173   Making Backup Diskette Copies
173   Why   We Make   Backups
174   How   We Make   Backups
174   Getting   the   Big Picture
175   Formatting   New Diskettes
177   Making the Actual Copies
179   Do It Again,   Sam
180   Using   the System
180   A Demonstration
181   Do It Yourself
186   What   To Leave In the Drives
186   Using   More Than Two Drives
187   Multiple-Drive Summary
APPLE   PASCAL   LANGUAGE
147
169

Printed product names: Apple Pascal

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/1#scan-81ea0042f58bbd1152deaba83bdbf99aa3c5a3b937cec6ca0ea7ca2d59cd07ab)

Image description: The image is a entirely blank white page with no visible artwork, layout, or text.

Reading notes: No visible text found in the image; transcript and printed fields left empty.

[Original PDF page 11](https://www.vintageapple.net/files/d4ddcfebcda40e4559b7cabff6ed90e7c1cefd086ccc8e08768e62cdc9e7a669/4453ff30c2da36f3cb468578541bdbfab4ca5d5ab0431157798069165a60eb59.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-apple-pascal-1980-4453ff/2.md)
