Intel a Guide to Intellec Series III Microcomputer
Total Page:16
File Type:pdf, Size:1020Kb
SYSTEMS intJ ~. Aguideto INrELLEC® SERIES III MICROCOMPUTER DEVELOPMENT SYSTEMS 121632-001 Copyright © 1981 Intel Corporation Intel Corporation, 3065 Bowers Avenue, Santa Clara, California 95051 Additional copies of this manual or other Intel literature may be obtained from: Literature Department Intel Corporation 3065 Bowers Avenue Santa Clara, CA 95051 The information in this document is subject to change without notice. Intel Corporation makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Intel Corporation assumes no responsibility for any errors that may appear in this document. Intel Corporation makes no commitment to update nor to keep current the information contained in this document. Intel Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in an Intel product. No other circuit patent licenses are implied. Intel software products are copyrighted by and shall remain' the property of Intel Corporation. Use, duplication or disclosure is subject to restrictions stated in Intel's software license, or as defined in ASPR 7-104.9(a)(9). No part of this document may be copied 'or reproduced in any form or by any means without the prior written consent oflntel Corporation. The following are trademarks of Intel Corporation and its affiliates and may be used only to identify Intel products: BXP intel Megachassis CREDIT In television Micromap i Intellec Multibus ICE iRMX Multimodule iCS iSBC PROMPT im iSBX Promware lnsite Library Manager RMX/SO Intel MCS System 2000 UPI ~Scope and the combination of ICE, iCS, iRMX, iSBC, iSBX, MCS, or RMX and a numerical suffix. ii PREFACE This book is a welcome mat for the Intellec Series III Microcomputer Development System. It is also an introduction to the world of software development for micro-applications. We assume that you have some basic knowledge of microprocessors and their applications, but few demands are made on that knowledge. We do not assume that you have had exposure to any particular programming language. This book can be useful to beginners, and even sophisticated readers should find it rewarding to skim through. This book is a tutorial for using the Series III system, especially the "8086 side" of it (the 8086 execution environment). The "8085 side" is similar to a Series II system, which is described in A Guide to /ntel/ec Microcomputer Deve/opment SystemS by Daniel McCracken. We lead you through a typical software development process by providing an example of a micro-application: a climate control system for a building. To keep the example easy to understand, we only describe the software development effort, assuming that the hardware for the climate system is being developed simultaneously. In fact, we illustrate some typical prob lems in software development that occur as a result of changing hardware designs. Chapter 1 gives an overall view of the Series III system and the application example. It also describes top-down design, stepwise refinement, modular programming, design considera tions, and how to choose the proper software language for each module. Chapter 2 is a step-by-step tutorial on the Series III operating system, showing typical operations. Chapter 3 is a step-by-step tutorial on CREDIT, and it incidently shows the process of stepwise refinement of the application's main control algorithm. Chapter 4 describes Pascal-86 programming, structured and modular design, parameter pass ing, data typing, and the Pascal-86 compiler. Chapter 5 describes PLlM-86 programming, and it shows a sample PLlM-86 routine used in the application. It also briefly describes the PLI M-86 compiler and the 8086/8087/8088 Macro Assembler. Chapter 7 describes program debugging with DEBUG-86 and hardware emulation with the ICE-88 emulator. There is also a bibliography of related material, and a list of Intel manuals supplied with the Intellec Series III Microcomputer Development System. iii CONTENTS Page CHAPTER 1: THE SOFTWARE DEVELOPMENT PROCESS............................. 1 Defining the Product's Software ....................................................... 3 Choosing the Software Development Tools ............................................. 5 Languages ........................................................................... 5 Modular Programming ................................................................ 6 Debugging and In-Circuit Emulation .................................................... 7 Using Your Final Product .............................................................. 8 CHAPTER 2: OPERATING THE SERIES III SYSTEM ................................. .. 9 Turning On Your System ............................................................. 9 The Directory Listing ................................................................. 10 Formatting Disks .................................................................... 13 Hard Disk Subsystem Users ........................................................ 13 Flexible Disk Users ................................................................ 14 Filenames, Path names, and File Attributes ............................................ 15 Renaming and Deleting Files ... _..................................................... 18 Copying Files to Disks and Devices ................................................... 19 Executing Commands and Programs .................................................. 22 Summary of the Series III Operating System ........................................... 25 CHAPTER 3: TEXT EDITING ........................................................ 27 Creating a Text File and Inserting Text ................................................ 28 Moving Around in the Text File ........................................................ 32 Finding Old Text and Substituting New Text ........................................... 33 Macros and Command Iteration ....................................................... 36 Ending a Text Editing Session and Managing Backup Files ............................. 38 Displaying and Printing Text Files .............................. " ..................... 39 From Text to Program ................................................................ 39 CHAPTER 4: PROGRAMMING IN PASCAL-S6 ........................................ 41 Translating Pidgin Pascal to Pascal-86 ................................................. 41 Pascal-86 Data Types ................................................................ 45 Another Look at Modularizing.and Hiding Information .................................. 46 Passing Data to Other Modules-Parameter Passing Techniques ....................... 48 The Interface Specification ........................................................... 49 Test Version of the Climate Control System ............................................ 49 The Pascal-86 Compiler .............................................................. 55 Summary ........................................................................... 61 CHAPTER 5: PROGRAMMING IN OTHER LANGUAGES ............................. .. 63 Another Look at Choosing Languages for Modules ..................................... 63 Programming in PLlM-86 ............................................................. 64 Programming in 8086/8087/8088 Assembly Language ................................... 69 Programming For the Series III Environment ........................................... 70 v CONTENTS (Cont'd.) PAGE CHAPTER 6: USING UTILITIES TO PREPARE EXECUTABLE PROGRAMS .............. 75 Preparing a Library of Program Modules ................................................ 76 Linking Modules to Form a Locatable Program .......................................... 77 Locating and Running Programs ....................................................... 78 CHAPTER 7: DEBUGGING AND EXECUTING PROGRAMS ............................ 81 Using DEBUG-86 For Symbolic Debugging ............................................. 82 Using ICE-88, an In-Circuit Emulator .................................................... 92 Execution Environments .............................................................. 95 BIBLIOGRAPHY .. .................................................................... 97 INDEX ............................................................................... 99 THE INTELLEC® SERIES III PUBLICATIONS LIBRARY ILLUSTRATIONS FIGURE TITLE PAGE 1-1 Developing Software on the Series III System ................................ 2 1-2 Block Diagram of Our Climate Control System ................................ 3 1-3 Nassi-Schneiderman Chart for Our Climate Control Software .................. 4 3-1 The CREDIT Video Display .................................................. 28 3-2 The Series III Keyboard ..................................................... 29 4-1 Algorithm for the Climate Control Main Module ............................... 42 4-2 First Try at Coding the Main Program ........................................ 43 4-3 Second Try at Coding the Main Program ..................................... 47 4-4 The Interface Specification ................................................. 50 4-5 Test Version of Our Climate Control System .................................. 51 4-6 Lisings of Our Test Modules ................................................ 57 5-1 The PLlM-86 Typed Procedure THERMOSTAT$SETTING$FROM$PORTS ....... 64 5-2 The PLI M-86 Typed Procedures