Apple Pascal Language Reference Manual
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
Apple II Apple Pascal Language Reference Manual
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
PDF page 1
Apple II Apple Pascal Language Reference Manual
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
PDF page 2
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
PDF page 3
Apple II Apple Pascal Language Reference Manual
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
PDF page 4
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
PDF page 5
TABLE OF CONTENTS
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
PDF page 6
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
PDF page 7
CHAPTER 4 THE PASCAL COMPILER
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
PDF page 8
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
PDF page 9
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
PDF page 10
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
PDF page 11
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.