P-System Editors Pascal Assembler
Total Page:16
File Type:pdf, Size:1020Kb
COMPUTER TECHNOLOGY p-System Editors Pascal Assembler 35 NORTH EDISON WAY, SUITE 4· RENO, NEVADA 89502· (702) 322-6868 Contributors at SofTech Microsystems: Software Development: Mark Allen, Gail Anderson, David Berger, Barry Demchak, William Franks, Rich Gleaves, Dean Jacobs, Richard Kaufmann, Stephen Koehler, Mark Overgaard, Stan Stringfellow. Documentation: Randy Clark, Barry Demchak, Rich Gleaves, C.A. Irvine, Bruce Sherman, Stan Stringfellow. End-user Support: H. Blake Berry, Jr., David Barto, Carolyn Chase, Randy Clark, Karen Fraser, Nancy Lanning, Bruce Sherman, George Symons, John Tennant. And thanks too to all the people not named here, at SofTech Microsystems or elsewhere, including the people at Courseware who prepared the illustrations. · DISCLAIMER: These documents and the software they describe are subject to change without notice. No warranty express or implied covers their use. Neither the manufacturer nor the seller is responsible or liable for any consequences of their use. SofTech Microsystems provides telephone and mail support for those users who have purchased their system from either SofTech Microsystems or UCSD (version 1.5 or later). This includes users who purchased their system from retail outlets of SofTech Microsystems. All other users of UCSD Pascal or the UCSD p-System should <;ontact their supplier for support. SofTech Microsystems does not have the resources to support users who purchased their software from other vendors. ACKNOWLEDGEMENTS: The UCSD Pascal project was initiated and guided by the director of the Institute for Information Systems, Professor Kenneth L. Bowles. While at UCSD, the project was supported by a variety of generous contributions, both of money and personal time. Development has continued at SofTech Microsystems under the leadership of Mark Overgaard. This document was collected, edited, and contributed to by Keith Shillington and Gillian Ackland at UCSD. Randy Clark has continued their work at SofTech Microsystems. A signi ficant part of the project has always been its user support. Special thanks are due Tracy Barrett at UCSD. More complete acknowledgements appear on the following two pages. Contributors at UCSD: Software Development: Mark Allen, Lucia A. Bennett, David Berger, Marc Bernard, J. Greg Davidson, Barry Demchak, Gary J. Dismukes, William P. Franks, Julie E. Erwin, Rich Gleaves, Robert J. Hofkin, Albert A. Hoffman, Richard S. Kaufmann, Peter A .. Lawrence, Joel J. McCormack, Robert A. Nance, Mark D. Overgaard, David A. Reisner, Keith A. Shillington, David M. Steinore, Roger T. Sumner, Steven S. Thompson, David B. Wollner. Documentation: Gillian M. Ackland, S. Dale Ander, Lucia A. Bennett, Raymond S. Causey, Charles "Chip" Chapin, J. Greg Davidson, Gary J. Dismukes, Julie E. Erwin, Shawn M. Fanning, Mary K. Landauer, J. Raoul Ludwig, Joel J. McCormack, Mark D. Overgaard, Keith A. Shillington, David A. Smith, Roger T. Sumner, Dennis J. Volper. Gifts of Equipment, Funds, and Time: United States Navy Personnel Research and Development Center, Sperry Univac Minicomputer Operations, EDUCOM, Digital Equipment Corporation, Processor Technology, Inc., Springer-Verlag, Terak Corporation, General Automatio,? Corporation, The UCSD Computer Center, grants from the University of Californi~ Instructional Improvement Program, Tektronix Corporation, Micropolis, Inc., Philips Research Labs, Lawrence Livermore Labs, Pascal Computing. DISCLAIMER: ~~ This document and the software it describes are subject to change without notice. No warranty expressed or implied covers their use. Neither the manufacturer nor the seller is responsible or liable for any consequences of their use. ACKNOWLEDGEMENTS: This document was written by Stan Stringfellow at SofTech Microsystems. Special thanks are due to Dan LaDage of LaDage Computer Systems, as well as Gail Anderson, Blake Berry, and Randy Clark of SofTech Microsystems, for providing information and assistance. Also, thanks are due to Texas Instruments Incorporated, for providing useful information. iii PREFACE "Toto, I've a feeling we're not in Kansas any more." -- The Wizard of Oz The many incarnations of the "1st edition" of this manual reflect the growth of the UCSD p-System. In this edition, we have tried to unify the material, to motivate it and supply some background, to be a bit more supportive of the novice user. At the same time, we have tried to be as concise as possible. Our various aims have sometimes been in conflict, and we have resolved them as best we could. It is our hope that this new manual is much clearer and more usable than its predecessors. IV.O itself is a unified version of our System -- somewhat simpler, and a great de al more powerful. Separate compilation is easier than before, and concurrent processes are now a reality. Watching IV.O develop has been enjoyable; hopefully this manual does it justice. This is a Users' manu ale Internal information has been banished to a different document. That should make it easier to use for the majority of users; systems users will benefit from the greater detail included in the Internal Architecture Guide. A lot of things have been maturing: this book, the System, the community of Pascal and p-System users, the international standards for Pascal. Even though the task is endless, the creators of this system and this document will attempt to keep pace with all of these things. In this light, our System and its documentation are one half of an ongoing dialog -- your response is the other half; your opinions are ~ not only welcome but needed. We are no longer where we were when we started. Thank you for joining us in our ventures and explorations, and thank you for contributing your own time and your own discoveries. R.C. San Diego 4 November 1980 v T ABLE OF CONTENTS SECTION PAGE PREFACE . .. v INTRODUCTION 1 How to Use this Manual · · 1 2 Overview. · · · · · · · · · · · 3 1 System ·Rationale · · · · and · Organization.· · · · · · · · 3 2 File Organization. 7 1 System Files · · · · · · · · · · 7 2 User Files. · · · · · · · · · 9 3 The Workfile· · · · · · · · · · · · 10 3 Device and Volume· ·Organization · · · · · · · · · 12 4 Program and Library Organization · · · · · · · · · 16 3 A Note on Bug Reporting · · · · · · · · 20 II THE SYSTEM COMMANDS 1 Promptlines · · . · 24 2 Disk Swapping. · · . · · 26 3 Execution Option Strings • · · · · · · · · · 27 1 Alternate Prefixes and Libraries · · · · 28 2 Redirection · · · · · · · · · · · · · · · · · · · . 29 1 Individual Commands Alphabetically. · · · · · · · · 32 0 Prompts for Filenames. · · · · · · . · 32 1 ASSEMBLE · · · · · · · · . · · · · · · · · 33 2 COMPILE · · · . · · · · . 34 3 EDIT. · · · . · · · . · · . · 35 4 FILE. · · · · · · · . · · 36 5 HALT · . · . 37 6 INITIALIZE · · · · 38 7 LINK. · . · · . · · 39 8 MONITOR · · · · . · · · . 40 9 RUN. · . · · 41 10 USER RESTART · · · · . · · · · · 42 11 EXECUTE · · · · · · · · 43 vii HI FILES AND FILE HANDLING 1 Types of Files 45 2 File Formats. 45 3 Volumes 46 4 The Workfile. 47 5 Filenames 48 6 Using the Filer 51 1 Prompts in the Filer • • • • • 51 2 Names of Files 52 1 General Filename Syntax 52 2 Wildcards 52 3 Filer Commands 55 1 B(ad blocks • • • • • • 56 2 C(hange. 57 3 D(ate 60 4 E(xtended list. 61 5 G(et ••• 62 6 K(runch 63 7 LOst directory 64 8 M(ake •••••• 67 9 N(ew. 68 10 P(refix 69 11 Q(uit •••••• 70 12 R(emove. 71 13 S(ave ••• 73 14 T(ransfer 74 15 V(olumes. 79 16 W(hat 80 17 eX(amine 81 18 Z(ero ••• 82 4 Recovering Lost Files 84 1 Lost Directories 86 viii IV THE SCREEN ORIENTED EDITOR o Introduction •••••••••• 89 1 The Concept of a Window into the File • 89 2 The Cursor • • • • • • 89 3 The Promptline • • • • • • • • • • 90 4 Notation Conventions. • • • • • • 90 5 The Editing Environment Options. 90 1 Get ting Started • • • • • • • • • • • • • 91 1 Entering the Work file and Getting a Program. 91 2 Moving the Cursor 92 3 Using Insert • • • • • • • • • • 93 4 Using Delete 95 5 Leaving the Editor and Updating the Workfile 96 2 Using the Editor 97 1 Command Hierarchy •••••• 97 2 Repeat Factors 97 3 The Cursor 98 4 Direction 98 5 Moving the Cursor 98 6 Entering Strings in FOnd and R(eplace. 100 3 Screen Oriented Editor Commands 101 1 A(djust •• 102 2 C(opy 103 3 D(eIete •• 105 4 FOnd. 107 5 l(nsert..... 109 6 J(ump 112 7 K(olumn 113 8 M(argin ••••••••• 114 9 P(age ••• 116 10 Q(uit ••• 117 11 R(eplace •• 119 12 S(et..... 121 I} V(eri fy • • • 124 14 eX(change 125 15 Z(ap 126 V Y ALOE -- YET ANOTHER LINE ORIENTED EDITOR ("yah-loo-ee") 1 Special Key Commands · . · · · · · . 128 2 Command Arguments • · . · . 130 3 Command Strings · · · 131 4 The Text Buffer. · · · · · · 132 5 The Cursor. · · . · · · · . · · . 133 6 Input/Output Commands · · . · . · · . 134 7 Cursor Relocation Commands · · · · . 136 8 Text Modification Commands · · · . 138 9 Other Commands . · · . · · · · · · . 140 ix VI THE UCSD PASCAL LANGUAGE 1 The UCSD Pascal Implementation ••.•.•••••••••• 143 1 An Introduction to the UCSD Implementation •••••••• 144 2 Differences between UCSD' Pascal and Standard Pascal 145 1 Strings....... • • • • • • 145 2 I/O Intrinsics • • • • • • • • • 149 1 End of File -- EOF • • 150 2 End of Line -- EOLN • • 151 3 Files ••••••••• 152 1 Interacti ve Files. • • • • • • • 152 2 Untyped Files • • • • 154 3 Random Access of Files • • • • 155 4 Files as Elements of Records or Arrays •••• 157 4 READ and READLN. • • • • • • • • • • • • • • 158 5 RESET •••••••••• 160 6 REWRITE ••••••••• 161 7 WRITE and WRITELN • • 162 3 Separate Compilation and Memory Management 163 1 Memory Allocation