Structure of This Manual
Total Page:16
File Type:pdf, Size:1020Kb
LOGITECH SOFIWARE ENGINEERING LIBRARY MODUlA-2/86 USER'S MANUAL Third Edition March 1986 Copyright (C) 1984, 1985, 1986 LOGITECH, Inc. All Rights Reserved. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of LOGITECH, Inc. MODULA-2/86 and MODULA-21VX86 are trademarks of LOGITECH, Inc. Microsoft is a registered trademark of Microsoft Corporation. MS-DOS is a trademark of Microsoft Corporation. Intel is a registered trademark of Intel Corporation. IBM is a registered trademark ofInternational Business Machines Corporation. LOGITECH, Inc. makes no warranties with respect to this documentation and disclaims any implied warranties of merchantability and fitness for a particular purpose. The information in this document is subject to change without notice. LOGITECH, Inc. assumes no responsibility for any errors that may appear in this document. From time to time changes may occur in the filenames and in the files actually included on the distribution disks. LOGITECH, Inc. makes no warranties that such files or facilities as mentioned in this documentation exist on the distribution disks or as part of the materials distributed. LU-GU101-3 Initial issue: February 1984 Current revision: April 1986 This edition applies to Release 2.00 of the software. Printed: April 1986 iii Preface MODULA-2/86 LOGITECH'S poucms AND SERVICES Congratulations on the purchase of your LOGITECH MODULA-2/86 Software Development System. Please refer to the following information for details about LOGITECH's policies and services. We feel that effective communication with our customers is the key to quality service. Therefore we have designed a bulletin board, the LOGlTECH MODULA-2 Information Service, so you can contact us directly and conveniently. You can contact the LOGITECH MIS simply by dialing (415) 364-7057 using a 1200 or 300 baud modem. You log in by typing modula2. The menu with available options is self explanatory and allows you to: • order a MODULA-2 product • report a bug • access MODULA-2 source files for downloading • read about recent LOGITECH developments and other interesting information tv MODULA-2/86 Preface If you are an Independent Software Vendor, we encourage you to join the impressive list of developers who have used LOGITECH MODULA-2 products to design their own applications. For all LOGITECH MODULA-2 users, including ISVs, we have formed a LOGITECH MODULA-2 User Group. LOGIMUG publishes a newsletter and provides a forum through which LOGITECH MODULA-2 users can exchange ideas and information. LOGITECH is committed to customer support. Whether you are an individual or part of a large organization, we offer a support plan designed to meet your needs. The Modula-2 User Association is another important source of information about the Modula-2 language, as well as a forum for Modula-2 users to exchange ideas and to share pertinent technical tips. LOGITECH is an active corporate member of this association. We encourage you to contact MODUS at: MODUS P.O BOX 51778 PALO ALTO, CALIFORNIA 94303 (415) 322-0547 For those of you who would like to keep up with current MODULA-2/86 developments and communicate electronically with us, LOGITECH sponsors a conference on the BYfE Information Exchange (BIX). BIX is an electronic conferencing system that allows you to communicate with other MODULA-2/86 users about technical problems, language issues, third-party software developments, and any other topics that interest you. In addition to the LOGITECH conference, BIX offers conferences on a vast range of other subjects including computers, operating systems, applications, chips, AI, and up-to-date information from industry leaders on new technolgy. To join BIX contact: BYTE INFORMATION EXCHANGE ONE PHOENIX MILL LANE PETERBOROUGH, NH 03458 (603) 924-9281 We look forward to hearing from you on BIX! v Preface MODULA-2/86 This manual is designed to meet your particular needs, depending upon your level of programming experience. Although the manual assumes you are familiar with basic programming concepts, it provides an overview of the Modula-2language and a bibliography of relevant texts for more detailed information. For novice programmers this manual may be used as an introduction to the Modula-2 language and eventually as a step-by-step guide to the specific implementation of LOGlTECH MODULA-2/86. For more experienced programmers, especially those familiar with Modula-2's predecessor, Pascal, it may be used as an introduction to the implementation specific features of MODULA-2/86 and later as a reference manual for specific problems or questions which may arise. As illustrated in the following diagram, this manual contains five kinds of information: • Introductory and general reference information, including system requirements, installation instructions, and a global index which lists all key concepts and words you may need for future reference. • A step-by-step tutorial to guide you through the LOGITECH MODULA-2/86 world, focusing on the Mod Editor as the thread which joins, and the point from which you can control, the various components of your system. • An overview of the Modula-2 language which explains how Modula-2 differs from, and is similar to, Pascal, in addition to describing the primary features of the language. • A section which describes the implementation features of MODULA-2/86. • A reference section which explains the details of the various components of LOGITECH MODULA-2/86, including the Compiler, Linker, Debuggers, Utilities, and Library. If you are an inexperienced programmer, you can follow the manual sequentially -- working through the tutorial to familiarize yourself with the LOGITECH MODULA-2/86 system, and then reading the overview of Modula-2 to better understand the language. Experienced programmers can skim the introduction to the Modula-2 language and should concentrate on the tutorial and the system dependent facilities of MODULA-2/86, eventually using the manual as a reference guide. NOTE: PLEASE REFER TO THE READ.ME FILE FOR mE IATEST INFORMATION ABOUT THE SYSTEM vi MODULA-2/86 Preface Introductory and General Reference Information LOGITECH MODULA-Z .... 86 Tutorial CHAPTER 3 A Step-By-Step Guida to MODULA-Z .... 86 Installation Modula-Z Language Information CHAPTER <I MODULA-Z/86: Implementation F ..atur .... Technical R.. f ..rence Modula-Z Tutorial for the Pascal Proflrammer STRUCTURE OF THIS Syst.. m and Lihrary Modul... MANUAL Version Checking vii Preface MODULA-2/86 The following syntactic conventions are used in this manual: • Input a user must type on the keyboard looks like this: A>m2programname <CR> • Output the program displays on the screen, for example listings, looks like this: Program Not Found • Program source code looks like this: VAR a.-ADDRESS,· w:word off,seg:CARDINAL,' • Special keys such as 'escape' and 'carriage return' are abbreviated and enclosed in brackets, for example: <ESC>, <CR>. • Control characters, characters entered while the key marked 'ctrI' is depressed, are preceeded by 'CtrI' and enclosed in brackets, for example: <CtrI-C>, <CtrI-Break>. • Alt characters, characters entered while the key marked 'Alt' is depressed, are preceeded by 'Alt' and enclosed in brackets, for example: <Alt-C>. viii TABLE OF CONTENTS Section Contents Page 1 INTRODUCTION ............................................................................................................................................... 1 1.1 System Requirements .................................................................................................................................. 2 1.2 Memory Requirements ............................................................................................................................... 2 1.3 Other Requirements .................................................................................................................................... 3 2 INSTALLATION .................................................................................................................................................. 4 2.1 Configuring Your Operating System...................................................................................................... 4 2.2 Systems Equipped with Floppy Disks Only ......................................................................................... 5 2.3 Systems Equipped with a Hard Disk ...................................................................................................... 8 3 TUTORIAL: A STEP-BY-STEP GUIDE TO MODULA-2/86 ............................................................ 11 FEATURES OF MOD ............................................................................................................................ 11 MENUS ......................................................................................................................................................... 13 BASIC COMMANDS .............................................................................................................................. 14 CUT AND PASTE .................................................................................................................................... 14 WINDOWING ............................................................................................................................................ 15 SEARCH AND REPLACE ................................................................................................................... 16 CONFIGURATION