← Apple II Users Guide For Apple II Plus and Apple IIe 1985

Apple II Users Guide For Apple II Plus and Apple IIe 1985

From the originals

13 scans

Machine-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 USER'S GUIDE

Osborne McGraw-Hill APPLE II USER'S GUIDE For APPLE II Plus and APPLE IIe THIRD EDITION Lon Poole Martin McNiff Steven Cook

A book cover with a green background featuring multicolored striped apple silhouettes, a yellow title panel with red bold lettering, and a red band reading THIRD EDITION.

Reading notes: Publisher name 'Osborne McGraw-Hill' is set in small text at top left and is legible. Author names are set in white text at lower left over the striped apple graphics and are legible.

Printed product names
Apple II · Apple II Plus · Apple IIe
Languages
English
PDF page 1

APPLE II USER'S GUIDE

Osborne McGraw-Hill APPLE® II USER'S GUIDE For APPLE® II Plus and APPLE® IIe THIRD EDITION Lon Poole Martin McNiff Steven Cook

A book cover with a green background featuring rows of striped, multicolored apple silhouettes, a yellow title panel with large red capitals, and a red band reading THIRD EDITION.

Reading notes: Title lettering is rendered in large stylized type; the apostrophe in USER'S and the registered-trademark symbols are reproduced as seen but may vary slightly.

Printed product names
Apple II · Apple II Plus · Apple IIe
Languages
English
PDF page 2

APPLE® II USER'S GUIDE

APPLE® II USER'S GUIDE THIRD EDITION By Lon Poole with Martin McNiff and Steven Cook Osborne McGraw-Hill Berkeley, Californi a I \

Reading notes: Supplied copy shows spacing artifacts, including 'Californi a' split across characters and a stray 'I \' fragment at the end, which may be extraction noise. Reading order follows the supplied copy; the visual layout and any artwork could not be verified from it.

Printed product names
APPLE® II
Languages
English
PDF page 3

/ Published by Osborne McGraw-Hill 2600 Tenth Street Berkeley, California 94710 U.S.A. For information on translations and book distributors outside of the U.S.A., please write to Osborne McGraw-Hill at the above address. Apple, the Apple logo, and ProDOS are registered trademarks of Apple Computer, Inc. Apple® II User's Guide Third Edition Copyright c 1985 by McGraw-H ill, Inc. All rights r eserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publica- tion may be reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior written permission of the publ isher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. 1234567890 DODO 898765 ISBN 0-07-881176-7 Cindy Hudson, Acquisitions Editor Jon Erickson, Technical Editor Erfert Nielson, Copy Editor Cheryl Creager, Composition Yashi Okita, Cover Design

Reading notes: Primary heading 'Apple® II User's Guide Third Edition' treated as product name; no separate headline identified.

Printed product names
Apple II User's Guide
Printed dates
1985 · 1976
Languages
English
PDF page 4

Contents Chapter 1: Chapter 2: Chapter 3: Introduction xiii Presenting the Apple II 1 The Apple II Console The Keyboard The Display Screen Cassette Recorder Disks and Disk Drives Printers Modems Hand-Held controls Software Getting Started 23 Starting the Apple II Using Programs Starting Programs From Disk Starting Programs From Cassette Using a Printer Resetting the Apple II Organizing ProDOS Disks 45 ProDOS Disk Organization Starting the STARTUP Program The ProDOS Filer DOS 3.3-ProDOS Conversion Reviewing Slot Assignments Setting the Time and Date

Printed product names
Apple II · ProDOS · DOS 3.3
Languages
English
PDF page 5

Quitting the STARTUP Program for BASIC

Quitting the STARTUP Program for BASIC Chapter 4: Organizing DOS 3.3 Disks 71 DOS 3.3 Disk Organization Duplicating Disks The FILEM and FID Programs Chapter 5: Fundamentals of BASIC Programming 81 Programming Languages Starting BASIC Typing Commands Immediate Mode Commands Editing Command Lines Programmed Mode Statements Editing BASIC Programs Ending BASIC Chapter 6: BASIC Programs on Disk and Cassette 111 ProDOS Commands DOS 3.3 Commands BASIC Programs on Cassette Chapter 7: Using Strings and Numbers 125 Strings Numbers Variables Arrays Expressions Assigning Values Displaying Values Inputting Values Functions Chapter 8: Program Organization and Control 161 Branching Loops Subroutines Conditional Execution

Reading notes: Table of contents format; chapter page numbers are not clearly associated with each heading

Languages
English
PDF page 6

Halting and Resuming Execution Direct Access and Control Debugging: Tracing Execution Chapter 9: Screen Output and Data Entry 183 Formatted Output Cursor Control Special Effects Controlling Keyboard Input Programming the Mouse II Chapter 10: Printer Output 241 Programming Printer Output Printer Command Characters Chapter 11. Programming Disk Data Files 265 Sequential-Access Files Using Sequential-Access Files The EXEC Command Random-Access Files Using Random-Access Files Machine Language (Binary Image) Disk Files The ProDOS Smart Run Command The DOS 3.3 MAXFILES Command The DOS 3.3 MON and NOMON Commands Chapter 12: Graphics 331 Display Modes Low-Resolution Graphics High-Resolution Graphics High-Resolution Shapes Manipulating Shapes Double High-Resolution Graphics Chapter 13: Sound 375 Programming the Speaker in BASIC

Reading notes: Table of contents layout with chapter numbers and page references; reading order may be unclear

Languages
English
PDF page 7

Programming the Speaker in Machine Language Music

Programming the Speaker in Machine Language Music Chapter 14: Machine Language Monitor 391 Examining Memory Examining the Microprocessor Registers Altering Memory Altering the Microprocessor Registers Storing Memory Contents on Disk And Tape Moving and Comparing Blocks of Memory The Go Command Using the Printer The Keyboard Command Changing Display Style Hexadecimal Arithmetic in the Machine Language Monitor User-Definable Machine Language Monitor Command The Mini-Assembler Using the Mini-Assembler Disassembled Listings Combining Machine Language and BASIC Appendix ft\. Summary of Commands, Statements, and Functions 419 Editing Commands Commands and Statements Functions Derived Numeric Functions Reserved Words Appendix B: Messages 513 Applesoft Error Messages Integer BASIC Error Messages

Reading notes: Table of contents entries contain OCR-like damage such as 'ft\.' in the appendix heading Reading order of contents entries is uncertain

Languages
English
PDF page 8

ProDOS Error Messages DOS 3.3 Error Messages Appendix C: Program Optimization 523 Faster Programs Compact Programs Appendix 0:- Comparing Apple II Models 527 External Physical Features Internal Physical Features Input and Output Microprocessor and Memory Software Appendix E: Character Codes and Applesoft Tokens 533 Appendix F: Useful PEEK and POKE Locations 539 Text Window and Cursor Control Locations Error Handling Locations Keyboard LOcations Speaker Output Locations Display Switches Vertical Blanking Interval Game Control Locations Appendix G: Built-In Subroutines 551 Appendix H: Conversion Tables 561 Appendix I: Screen Display Forms 569 Index 573

Reading notes: Source is a table of contents rather than advertising copy; no headline or product content is present. Some line breaks and hyphenation in the extracted text are uncertain.

Languages
English
PDF page 9

Preface In the two years since I last revised this book, Apple has made some important changes to the Apple II computer, introduced some new accessories for it, and switched to a new operating sys- tem program. The Apple Ile was introduced in April 1984, and is the subject of another book, Apple Ile User's Guide. The improve- ments built into it were added to the Apple Ile about a year later and are covered in this book. The mouse and Imagewriter printer, both made popular by the Apple Macintosh computer, now can also be used on an Apple II. This edition shows how to use them in BASIC programs. This book also now describes both the ProDOS and DOS 3.3 operating systems. ProDOS replaced DOS 3.3 in January 1984 as the preferred operating system for BASIC programming on the Apple II. In addition to covering the new Apple II developments, I have once again reorganized parts of the book. Disk and cassette commands now appear in their own chapter. The examples in the screen output and keyboard entry chapter have been reworked to incorporate more up-to-date programming methods. All the authors thank Robert Thomson, who did the original research for much of the material now covered in Appendix A. I wish to thank my wife Karin for her unflagging support and encouragement. L. P.

Reading notes: Preface text references an earlier edition and an appendix without visible headline

Printed product names
Apple II · Apple Ile · Apple Macintosh · Imagewriter · Apple Ile User's Guide · ProDOS · DOS 3.3 · BASIC
Printed dates
April 1984 · January 1984
Languages
English
PDF page 10

Introduction The Apple II User's Guide, Third Edition is your guide to the Apple II computer. It describes the Apple II itself along with the common· accessories such as disk drives and printers. For those who aren't interested in programming the computer themselves, the book explains how to use programs that can be bought off the shelf. For those who do want to learn how to write their own pro- grams, the book provides detailed lessons with lots of examples. This book covers all models of the Apple II except the Apple Ile, which is covered in the companion Apple Ile User's Guide. This book puts special emphasis on the Apple Ile, both in the original version first delivered in 1983, and in the enhanced ver- sion first delivered in 1985. If you have an Apple II Plus or a standard Apple II, much of the material here still applies, although the part that pertains strictly to the Apple Ile will be superfluous. The first four chapters answer two important questions: "What is an Apple II personal computer?" and "How do you make it work?" Chapter 1 tells you what the various components of the Apple II are and what they do. Chapter 2 explains how to get a program started and how to use the printer. Chapters 3 and 4 tell you how to get the most from disks. The information in the first four chapters prepares you to use any of the ready-to-run pro- grams that are widely available for word processing, design, planning, information management, problem solving, financial analysis, bookkeeping, education, and entertainment. The next nine chapters teach you how to write your own pro- grams using the BASIC programming language. Chapter 5 be- xi

Reading notes: Apple Ile may be a damaged rendering of Apple IIe in the source text

Printed product names
Apple II · Apple Ile · Apple II Plus · Apple II User's Guide, Third Edition · Apple Ile User's Guide · BASIC
Printed dates
1983 · 1985
Languages
English
PDF page 11

xii I Apple II User's Guide gins with a tutorial ~J!proach to the fundamentals of both versions of BASIC available on the Apple II, Applesoft and Integer BASIC. Chapter 6 explains how to use disks and cassettes for storing the programs you writb, whether you use the Pro DOS operating system or the DOS 3.3 operating system. Chapter 7 discusses the role that character strings and numbers play in programs. It explains how to store them in variables and arrays, manipulate them with expressions and functions, enter them from the keyboard, and display them on the screen. In Chapter 8, you learn how to control the order in which pro- gram instructions are executed. Topics include branching, loops, subroutines, decision-making, and halting and resuming execu- tion. You'll also learn how to access the Apple II memory directly and thereby control some special Apple II features. Chapter 9 explains how to control where things appear and what they look like on the display screen. The chapter discusses how a carefully designed screen display can keep keyboard entry errors down. You'll also learn how to program the mouse. Chapter 10 tells you how to switch output from the display screen to the printer and how to format printed output. The chap- ter explains how you can activate the alternate type styles and other features available on many printers. In Chapter 11, you learn how to store and retrieve data on disk files. The chapter explains file structure and the different methods of accessing files. It illustrates these with two versions of a working mailing-list program. Chapter 12 covers graphics. You'll learn about graphics modes, color selection, point plotting, line drawing, circle drawing, shape drawing, and shape manipulation. Program examples show how to draw scatter graphs, line graphs, bar graphs, pie charts, and graphics designs. Chapter 13 explains how to program the built-in speaker to produce sounds and play music. It includes a program that plays a minuet by J .S. Bach and another program that lets you com- pose your own music. The last chapter in the book, Chapter 14, tells you how to use the built-in Machine Language Monitor program to directly view and change the contents of memory locations. It also describes how to use the Mini-Assembler to write short programs in assembly language.

Reading notes: Hyphenation and broken characters appear in several lines (e.g., 'writb,' and 'J!proach'), so some words may be misread. Reading order of the page fragment is uncertain because the text begins mid-page with a running header.

Printed product names
Apple II · Applesoft · Integer BASIC · Pro DOS · DOS 3.3 · Machine Language Monitor · Mini-Assembler
Languages
English