13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A Complex Sample ProgramThis appendix shows how you use the Apple II Pascal system to create acomplex program. It shows the procedures for compiling, assembling,linking, and using the Librarian to put together a sample program with aRegular Unit, Intrinsic Units, and external procedures. The sample programincludes the use of .PUBLIC, .PRIVATE, and .CONST directives to accessdata structures from assembly-language routines. This example assumesthat you are using the 128K Pascal system and a recommended systemconfiguration.In creating the sample program, you will use features of the Pascal systemdescribed in this Part and in Part III. These features are not described here.You should read the appropriate sections of the <strong>manual</strong> and study the othersample programs before you try to create the complex sample program.Figure 2C-1 illustrates the different program sections and the sequence ofoperations required to put together the sample program.The text of each program section is given below. You should use the Editorand type each one, then save it with the filename given. The proceduresused in creating the program are given in the last section of this appendix.For this example, the system files are on two disks. Here, all programtextfiles and codefiles are on APPLEl: in the startup drive. The Assembler,Compiler, Linker, and Librarian programs are all on APPLE2: in drive #5:.11-272Appendix 2C: Overview of Program Preparation Stages

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!