← Inside The Apple IIe 1985

Inside The 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

INSIDE THE APPLE IIe

INSIDE THE APPLE IIe Brady Gary B. Little apple® computer AUX. CONNECTOR C64 MMU C65 IOU 344-0020 C66 C67 E.T. C82 C84 C85 C86 C87 4 5 6 7 8 9

A book cover showing a green Apple IIe circuit board with chips, capacitors and labeled connectors overlaid with red, blue and white lightning-like electrical arcs, with a keyboard partly visible at the bottom.

Reading notes: Small circuit-board labels such as C64, C65, C66, C82 and C84 through C87 are partly legible and may be imprecise. Chip markings and the small text on the chips are illegible and omitted. The partial text at the left edge (e.g., C77, C37, 31) is cut off and uncertain. Keyboard key legends at bottom are partly visible and not transcribed. The Apple logo text 'apple® computer' is cut off at the right edge, so the final letters are uncertain.

Printed product names
Apple IIe
Languages
English
PDF page 1

INSIDE THE APPLE IIe Brady Gary B. Little apple computer C64, C66, C82, C84, C85, C86, C87 (circuit board labels) 344-0020 4 5 6 7 8 9 (board numbering)

A book cover with large cream-colored stylized title letters over a photograph of a green Apple computer circuit board with integrated chips, resistors, and red and blue electrical arcs, with a keyboard visible at the bottom.

Reading notes: Small circuit board labels such as MAIN CONNECTOR, MMU, IOU, RP3, and chip markings are only partly legible and were not fully transcribed. The publisher name Brady and author name Gary B. Little are read from the cover art. Keyboard key legends at bottom are partly visible and uncertain.

Printed product names
Apple IIe · Apple Computer
Languages
English
PDF page 2

Inside the Apple lie Gary '3. Little Brady Communications Company, Inc. A Prentice-Hall Publishing Company Bowie, MD 20715 -/'JQ \,- ' '--j I I ' I__...._

Reading notes: Supplied copy is fragmentary, with words split across lines (e.g., 'Inside the Apple lie' and 'Gary 3. Little') and reading order uncertain. 'Gary '3.' is unclear and may be a garbled name or OCR error. The final garbled lines ('-/'JQ \,- ' '--j I' and 'I ' I__...._') could not be read and may be marks rather than text. No headline, product names, prices, or dates could be confidently identified from the supplied copy.

Languages
English
PDF page 3

Inside the Apple lie Copyright © 1985 by Brady Communications Company, Inc. All rights reserved. No part of this publication may be reproduced or trans- mitted in any form or by any means, electronic or mechanical, including photocopying and recording, or by any information storage and retrieval system, without permission in writing from the publisher. For information, address Brady Communications Company, Inc., Bowie, Maryland 20715. Library of Congress Cataloging in Publication Data Little, Gary B., 1954- Inside the Apple Ile. Title appears on t.p. as: Inside the Apple lie. Includes bibliographies and index. 1. Apple Ile (Computer) I. Title. QA76.8A6623L38 1984 001.64 84-12461 ISBN 0-89303-551-3 Prentice-Hall International, Inc., London Prentice-Hall Canada, Inc., Scarborough, Ontario Prentice-Hall of Australia, Pty ., Ltd., Sydney Prentice-Hall of India Private Limited, New Delhi Prentice-Hall of Japan, Inc., Tokyo Prentice-Hall of Southeast Asia Pte. Ltd., Singapore Whitehall Books, Limited, Petone, New Zealand Editora Prentice-Hall Do Brasil LTDA., Rio de Janeiro Printed in the United States of America 85 86 87 88 89 90 91 92 93 94 95 Publishing Director: David Culverwcll Acquisitions Editor: Chris Williams Production Editorffext Designer: Michael J. Rogers Art Director: Don Sellers Assistant Art Director: Bernard Vervin Cover Design: George Dodson Manufacturing Director: John A. Komsa Copy Editor: Keith R. Tidman 345678910 Photo of protoboard and DIP jumper cable: Tony Szary Typesetting: Electronic Publishing Services, Baltimore, MD Printing: Fairfield Graphics, Fairfield, PA Typefaces: Eurostile (display), Aster (text), and Uniwrsal Monotype #3 H-P (computer programs)

Reading notes: Title is printed as "Inside the Apple lie" in the copyright page text; "lie" is likely an OCR misreading of "IIe" Catalog data includes "Apple Ile" and "Apple Ile" OCR variants that may be damaged characters

Printed dates
1985 · 1984 · 1954
Languages
English
PDF page 4

The image is a entirely blank white portrait-oriented page with no visible artwork, layout, or text.

Reading notes: No visible text or imagery is present in the scan, so the transcript is empty.

PDF page 5

Limits of Liability and Disclaimer of Warranty The author and publisher of this book have used their best efforts in preparing this book and programs contained in it. These efforts include the development, research, and testing of the programs to determine their effectiveness. The author and the publisher make no warranty of any kind, expressed or implied, with regard to these programs, the text, or the documentation contained in this book. The author and the publisher shall not be liable in any event for claims of incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of the text or the programs. The programs contained in this book are intended for the use of the original purchaser. Trademarks of Material Mentioned in This Text Apple lie, Applesoft, Apple II, Apple II Plus, Apple lie, Apple I, Integer BASIC, DOS 3.3, Lisa, Macintosh, and ProDOS are trade- marks of Apple Computer, Inc. Note to Authors Do you have a manuscript or software program related to per- sonal computers? Do you have an idea for developing such a proj- ect? If so, we would like to hear from you. The Brady Company produces a complete range of books and applications software for the personal computer market. We invite you to write to David Culverwell, Publishing Director, Brady Communications Com- pany, Inc., Bowie, MD 20715.

Reading notes: Trademark list reads 'Apple lie' and 'Apple lie' where OCR spacing suggests 'Apple IIc' or 'Apple IIe' ambiguity Primary heading uncertain; no clear standalone headline identified

Printed product names
Apple lie · Applesoft · Apple II · Apple II Plus · Apple I · Integer BASIC · DOS 3.3 · Lisa · Macintosh · ProDOS
Languages
English
PDF page 6

CONTENTS Preface I xiii 1 Introduction to Apple and the Apple //e I 1 A Condensed History of Apple Computer, Inc. I 1 1976 I 2 1977 I 3 1978 I 4 1979 I 4 1980-1982 I 5 1983 I 6 1984 I 7 Under the Hood of the Apple lie I 7 Learning the Fundamentals I 8 Numbering Systems I 8 Bit Numbering and "Significance" I 9 Pointers and Vectors I 18 Control Characters I 11 6502 Assembly Language I 11 Running Assembly-Language Programs I 13 What Won't Be Covered I 14 Using the Optional Diskette I 14 Further Reading for Chapter 1 I 15 2 The 6582 Microprocessor I 17 Important 6502 Concepts I 17 Zero Page and the Stack I 18 6502 Instruction Set I 19 6502 Registers I 21 The Accumulator-A I 26 The Index Registers-X and Y I 27 The Processor Status Register-P I 28 Carry Flag (C) I 29 Zero Flag (Z) I 38 Interrupt Disable Flag (I) I 38 Decimal Mode Flag (D) I 38 Break Flag (B) I 31 Overflow Flag (V) I 31 Negative Flag (N) I 31 The Stack Pointer-S I 32 The Program Counter-PC I 33 6502 Addressing Modes I 33 Immediate I 34 Absolute I 35 v

Reading notes: Page numbers and index separators are ambiguous due to OCR-style spacing (e.g., 'I' used as separator).

Printed product names
Apple //e · Apple Computer, Inc.
Printed dates
1976 · 1977 · 1978 · 1979 · 1980-1982 · 1983 · 1984
Languages
English
PDF page 7

vi C=:J Inside the Apple //e ------------------- Accumulator I 36 Implied I 36 Indexed Indirect I 36 Indirect Indexed I 37 Absolute Indexed I 37 Relative I 38 Indirect I 38 6502 Input/Output Handling I 39 6502 Interrupts I 49 Reset Interrupt I 41 Non-Maskable Interrupt (NMI) I 42 Interrupt Request (IRQ) I 43 The BRK Instruction I 44 The 6502 Memory Space on the lie I 45 RAM Memory I 46 Input/Output (110) Memory I 48 ROM Memory I 49 Further Reading for Chapter 2 I 59 3 The System Monitor I 53 The System Monitor Commands I 54 The DISPLAY Command: Displaying the Contents of Memory I 55 The STORE Command: Changing the Contents of Memory I 57 The MOVE Command: Copying the Contents of Memory I 69 The VERIFY Command: Comparing Ranges of Memory I 62 The EXAMINE Command: Examining the 6502's Registers I 62 The GO Command: Running a Program I 63 The LIST Command: Disassembling Assembly-Language Programs I 64 The NORMAL and INVERSE Commands: Changing Video Display Modes I 66 The ADD and SUBTRACT Commands: Simple Arithmetic I 66 The BASIC and CONTINUE BASIC Commands: Entering Applesoft I 66 The USER Command: User-Defined Commands I 68 The READ and WRITE Commands: Cassette Tape 1/0 Commands I 69 The KEYBOARD and PRINTER Commands: Redirecting Input and Output I 79 Multiple Commands on One Line I 71 System Monitor Subroutines I 72 Further Reading for Chapter 3 I 76 4 Applesoft BASIC I 77 Applesoft Memory Map I 78

Reading notes: Table-of-contents style listing with page numbers; reading order is a list of section titles rather than running prose.

Printed product names
Apple //e
Languages
English
PDF page 8

----------------------Contents C=:J vii Tokenization of Applesoft Programs I 83 Keyword Tokens I 84 Storage of Applesoft Variables I 88 Storage of Simple Variables I 89 The Name Header I 91 The Data Field I 91 End of Simple Variables I 93 Storage of Array Variables I 93 The Name Header I 94 Dimensioning Bytes I 95 The Data Field I 95 End of Array Variables I 96 Representation of Integer Numbers I 96 Representation of Real Numbers I 98 Number Theory I 98 Binary Floating-Point Format I 98 How an Applesoft Program Runs I 181 The CHARGET Subroutine I 112 Changing Program Flow I 114 Finding Line Numbers I 185 Linking Applesoft to Assembly-Language Subroutines I 115 The CALL Command I 116 The & Command I 117 The USR Function I 118 Applesoft's Built-In Subroutines I 119 Using Applesoft's Built-In Subroutines I 116 Locating Variables I 116 Evaluating Formulas I 121 Converting Numbers I 121 Further Reading for Chapter 4 I 125 5 Disk Operating System I 127 The Internal Structure of DOS 3 .3 I 128 DOS 3 .3 Memory Map I 128 DOS 3 .3 Page 3 Vectors I 129 Volume Table of Contents (VTOC) I 129 Diskette Catalog I 133 File Types I 135 Track/Sector List (TSL) I 135 Storing File Data I 136 RWTS-Accessing the Diskette Directly I 137 DOS 3.3 READ SECTOR Program I 147 The Internal Structure of ProDOS I 148 ProDOS Memory Map I 151 ProDOS Page 3 Vectors I 151

Reading notes: Source appears to be a table of contents with page numbers that may be misread; no headline is printed.

Languages
English
PDF page 9

viii c:::J Inside the Apple lie------------------ Volume Bit Map I 152 Diskette Directory I 153 11 Protecting" Files I 157 Storing File Data I 158 MU-Accessing the Diskette Directly I 168 ProDOS READ.BLOCK Program I 162 Further Reading for Chapter 5 I 166 6 Character Input and the Keyboard I 169 Standard Character Input Subroutines I 173 Reading One Character I 174 RDKEY ($FD0C) I 174 Keyboard Input (80-Column Firmware Off) I 177 Keyboard Input (80-Column Firmware On) I 177 Escape Sequences I 178 RDCHAR ($FD35) I 188 Reading a Line of Characters I 188 Changing Input Devices: The Input Link I 182 How About Output? I 183 Designing a KSW Input Subroutine I 184 Replacing the Keyboard Input Subroutine I 184 DOS 3.3, ProDOS, and the Input Link I 187 The Keyboard I 191 Encoding of Keyboard Characters I 191 Special Keys I 192 The 11 Apple" Keys I 192 Keyboard 110 Locations I 193 Modifying the Keyboard Input Subroutine I 195 Keyboard Auto-Repeat I 282 Keyboard Type-Ahead I 285 Potential Problems with SOFTWARE TYPE-AHEAD I 217 Resetting the Apple lie I 218 Special RESET Procedures I 218 Trapping "Soft" RESETs I 218 Trapping RESET from Assembly Language I 228 Trapping RESET from Applesoft I 221 Further Reading for Chapter 6 I 226 7 Character and Graphic Output and Video Display Modes I 227 Text Mode I 228 Turning on the Text Display I 229 Text Mode Memory Mapping I 232 40-Column Text Mode I 233 80-Column Text Mode I 236 Using Page2 of Text I 237 Video Display Attributes: Normal, Inverse, Flash I 239

Reading notes: Table of contents format with page numbers rendered as 'I' and 'c:::J' characters, possibly OCR artifacts. Model name rendered inconsistently as 'lie' and 'IIe' in the source text.

Printed product names
Apple
Languages
English
PDF page 10

----------------------Contents t=i ix Standard Character Output Subroutines I 241 Video Output (80-Column Firmware Off) I 245 Video Output (80-Column Firmware On) I 245 Video Screen Windowing I 246 How COUTl and BASICOUT Set the Video Attribute I 248 Changing Output Devices: The OUTPUT Link I 249 Designing a CSW Output Subroutine I 258 Replacing the Video Output Subroutine I 251 DOS 3.3, ProDOS, and the Output Link I 252 Low-Resolution Graphics Mode I 253 Turning on the Low-Resolution Graphics Display I 253 Low-Resolution Graphics Screen Memory Mapping I 255 Low-Resolution Graphics Colors I 256 Double-Width Low-Resolution Graphics I 256 Turning on Double-Width Low-Resolution Graphics I 257 Double-Width Low-Resolution Graphics Screen Memory Mapping I 258 Double-Width Low-Resolution Graphics Colors I 259 Built-In Support for Low-Resolution Graphics I 268 High-Resolution Graphics Mode I 268 Turning on the High-Resolution Graphics Display I 261 High-Resolution Graphics Screen Memory Mapping I 263 High-Resolution Graphics Colors I 266 Animation with High-Resolution Graphics I 267 Double-Width High-Resolution Graphics I 269 Turning on Double-Width High-Resolution Graphics I 272 Double-Width High-Resolution Graphics Screen Memory Mapping I 273 Double-Width High-Resolution Graphics Colors I 273 Built-In Support for High-Resolution Graphics I 275 Further Reading for Chapter 7 I 277 8 Memory Management I 279 Bank-Switched ROM Areas I 288 The INTCXROM Switches: Switching the $C100 ... $CFFF Memory Space I 288 The SLOTC3ROM Switches: Switching the $C300 ... $C3FF Memory Space I 283 16K Bank-Switched RAM Areas I 284 Using Bank-Switched RAM I 285 Reading the Status of the Bank-Switched RAM Soft Switches I 286 Auxiliary Bank-Switched RAM I 288 Using Bank-Switched RAM I 289 Bank-Switched RAM and ProDOS I 291 Auxiliary RAM Memory Area I 291 Using Auxiliary Memory I 292

Reading notes: Table of contents entries include OCR-like spacing and inconsistent page-number characters (e.g., 'I 241', 'I 268' appears between 'Low-Resolution' and 'High-Resolution' entries), so page numbers may be misread.

Languages
English
PDF page 11

x CJ Inside the Apple lie------------------- The AL TZP Switch I 292 The RAMRD and RAMWRT Switches I 295 Auxiliary Memory Support Subroutines I 295 AUXMOVE ($C31 l)-Transferring data to and from auxiliary memory I 296 XFER ($C314)-Transferring control to a program from main or auxiliary memory I 318 Running Co-Resident Programs I 381 Initialization of the Auxiliary Stack I 388 Using CONCURRENT I 388 Limitations of CONCURRENT I 318 Further Reading for Chapter 8 I 311 9 The Speaker and the Cassette Port I 313 The Speaker I 313 Generating Musical Notes I 314 Genera ting Music I 317 The Cassette Port I 328 Digitizing Voice I 323 Further Reading for Chapter 9 I 333 18 The Game 1/0 Connector I 335 Game I/O Connector Experiments I 336 Game Controller Inputs I 338 Push Button Inputs I 342 Annunciator Outputs I 345 Experimenting with the Annunciators I 346 Special Use for AN3 I 348 Strobe Output I 349 Summary of Game I/O Connector Locations I 349 Further Reading for Chapter 10 I 351 11 Peripheral-Card Expansion Slots I 353 Peripheral-Card I/O Memory Locations I 353 Peripheral-Card ROM I 355 Peripheral-Card Expansion ROM I 357 Peripheral-Card Scratchpad RAM I 358 The Auxiliary Connector and Slot 3 I 359 Programming for Peripheral Cards I 368 Relocatability I 368 Software Protocols I 362 Applesoft Protocol I 362 Pascal 1 .0 Protocol I 363 Pascal 1.1 Protocol I 363 ROM Identification Bytes I 365 Further Reading for Chapter 11 I 366

Reading notes: Table of contents with garbled spacing and OCR-like artifacts in headings and page numbers Page numbers are ambiguous due to character corruption (e.g., 'I' in place of digits) Chapter 8 and 9 entries and 'Genera ting Music' spacing uncertain

Printed product names
AL TZP · CONCURRENT · Pascal 1.0 · Pascal 1.1 · Applesoft
Languages
English