Mac Assembly Language A Guide For Programmers 1986
From the originals
13 scansMachine-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
MAC ASSEMBLY LANGUAGE
Brady GARY B. LITTLE Author of Inside the Apple IIe and Apple Pro DOS: Advanced Features for Programmers MAC ASSEMBLY LANGUAGE A GUIDE FOR PROGRAMMERS COVERS MDS 2.0
A book cover with a gray upper area, large dark blue block letters spelling MAC ASSEMBLY LANGUAGE, a blue halftone dot-pattern band across the middle and bottom, and a blue lower panel with the text COVERS MDS 2.0 in gray.
Reading notes: The 'Brady' publisher logo at top left is partially cropped at the edge of the image. The reading order of the author line and italicized titles is inferred from layout.
- Printed product names
- Inside the Apple IIe · Apple Pro DOS: Advanced Features for Programmers
- Languages
- English
PDF page 1
MAC ASSEMBLY LANGUAGE
Brady GARY B. LITTLE Author of Inside the Apple IIe and Apple Pro DOS: Advanced Features for Programmers MAC ASSEMBLY LANGUAGE A GUIDE FOR PROGRAMMERS COVERS MDS 2.0
A book cover with a gray upper field, large dark blue block letters spelling MAC ASSEMBLY LANGUAGE, a blue dot-pattern halftone graphic fading across the middle and lower section, and a solid blue band at the bottom with gray text COVERS MDS 2.0.
Reading notes: The 'Brady' publisher mark at the top left is partially cropped at the edge of the image. The bottom 'COVERS MDS 2.0' text is printed in gray on blue and is legible but reads as stylized block letters. Reading order for the author credit line and subtitle is inferred from layout.
- Printed product names
- Inside the Apple IIe · Apple Pro DOS: Advanced Features for Programmers
- Languages
- English
PDF page 2
The image is a entirely blank white page with no visible artwork, layout elements, or text.
Reading notes: No visible text or graphics appear anywhere on the page, so the transcript is empty.
PDF page 3
Apple ProDOS: Advanced Features for Programmers
Other Brady Books by Gary B. Little Inside the Apple lie Inside the Apple lie Apple ProDOS: Advanced Features for Programmers
Reading notes: Source text contains fragmented and repeated lines ("Inside the Apple lie"), making the reading order uncertain. Primary heading inferred from the final line of the supplied copy.
- Printed product names
- Apple ProDOS
- Languages
- English
PDF page 4
MAC ASSEMBLY LANGUAGE
MAC ASSEMBLY LANGUAGE A Guide for Programmers Gary B. Little A Brady Book Published by Prentice Hall Press New York, NY 10023
- Languages
- English
PDF page 5
Copyright © 1986 by Gary B. Little All rights reserved, including the right of reproduction in whole or in part in any form A Brady Book Published by Prentice Hall Press A Division of Simon & Schuster, Inc. Gulf + Western Building One Gulf + Western Plaza New York, New York 10023 PRENTICE HALL PRESS is a trademark of Simon & Schuster, Inc. Manufactured in the United States of America 12345678910 Library of Congress Cataloging-in-Publication Data Little. Gary B., 1954-- Mac Assembly Language. "A Brady book." Bibliography: p. Includes index. 1. Macintosh (Computer)-Programming. 2. Assembler language (Computer program language) I. Title. QA76.8.M3L58 1986 005.265 86-25980 ISBN 0-13-541434-2
Reading notes: Library of Congress card number '86-25980' and ISBN '0-13-541434-2' are catalog identifiers rather than dates; 'Little. Gary B., 1954--' contains a possibly misprinted punctuation mark.
- Printed product names
- Macintosh
- Printed dates
- 1986 · 1954 · 86-25980
- Languages
- English
PDF page 6
The image is a entirely blank white page with no visible artwork, layout, or markings.
PDF page 7
Chapter I: INSIDE THE 68000 MICROPROCESSOR
Contents Preface Chapter I: INSIDE THE 68000 MICROPROCESSOR I The 68000 Instruction Set 2 Programmer's Model 6 Address Registers 8 Data Registers 10 The Status Register 10 The System Byte 11 T-Trace Mode 11 5--Supervisor State 1 2 I-Interrupt Mask 12 The User Byte 13 The Extend Flag 13 The Negative Flag 14 The Zero Flag 14 The Overflow Flag 14 The Carry Flag 15 The Program Counter 15 The Addressing Modes 16 Implicit Mode 18 Immediate Mode 19 Data Register Direct Mode 20 Address Register Direct Mode 21 Address Register Indirect Mode 21 Address Register Indirect with Post-Increment Mode 23 Address Register Indirect with Pre-Decrement Mode 24 Address Register Indirect with Displacement Mode 25 Address Register Indirect with Index Mode 27 vi
Reading notes: Table of contents page numbers and some line breaks appear irregular due to extraction
- Printed product names
- 68000
- Languages
- English
PDF page 8
Contents Absolute Modes Program Counter with Displacement Mode Program Counter with Index Mode The Stack Exceptions The Reset Exception The Internally Generated Exceptions The Externally Generated Exceptions The Exceptions Caused by Instructions Unconditional Traps Conditional Traps Chapter 2: ASSEMBLER TOOLS The Editor The Assembler Source Code Format The Label Field The Instruction Field The Operand Field The Comment Field Assembler Directives Symbol Definition Directives Data Allocation Directives Assembly Control Directives Linker Control Directives Printing Control Directives The Linker Linker Code Modules File Type and Creator Code Output File Bundle Bit Starting Location Linker Resource Modules End of File The Resource Compiler Using the RMaker Resource Compiler Name of Output File vii 28 29 31 32 35 37 38 39 41 41 43. 44 46 46 48 48 49 49 50 50 51 53 56 62 63 64 65 66 67 68 68 68 69 69 72 73
Reading notes: Page numbers appear detached from their entries in the extracted sequence, so the entry-to-page alignment is uncertain.
- Languages
- English
PDF page 9
viii Mac Assembly Language Including Other Resource Files TYPE Statements The Executive Program Search Paths Equate, Trap, and Macro Files The Pascal Connection Stack-Based Subroutines Register-Based Subroutines Putting It All Together Alternative Application Development Techniques Creating a Separate Resource File The Standard Program Header Applications and the Finder Version Data Resource Icon List Resource File Reference Resource Bundle Resource 73 74 77 78 80 82 84 88 89 97 98 99 100 101 101 102 Chapter 5: THE 68000 INSTRUCTION SET 107 Data Movement Instructions Clearing to Zero Moving to Address Registers Quick Moves Moving Multiple Registers Swapping Data Register Halves Exchanging Registers Linking and Unlinking the Stack Moving Data to and from Peripherals Program Control Instructions Unconditional Jumps and Branches Conditional Branches Looping Arithmetic Instructions Unsigned and Signed Binary Numbers 108 110 110 110 111 112 112 112 114 115 115 117 120 122 123
- Languages
- English
PDF page 10
Contents BCD Numbers Binary Addition, Subtraction, and Negation BCD Addition, Subtraction, and Negation Multiplication and Division Sign Extension Comparing Testing Bit Manipulation Instructions Logical Instructions Shift and Rotate Instructions Arithmetic Shift Instructions Logical Shift Instructions Rotate Instructions System Control Instructions Status Register Control Instructions Trap Instructions Processor Control ·Instructions Chapter 4: MEMORY MANAGEMENT Macintosh Memory Map Exception Vectors System Global Variables Trap Dispatch Table System Heap Application Heap Stack Application Global Space Screen Buffer System Error Handler Buffer Sound Buffer Expansion RAM ROM Memory-Mapped 1/0 Space Data Storage in the Application Heap Pointers Handles Deallocation Allocation Tips ix 125 125 126 128 128 129 130 131 134 139 142 142 142 144 146 147 148 176 176 178 178 178 179 179 179 179 180 181 181 181 181 181 182 184 185 188 188
Reading notes: Source is a table of contents listing chapter and section titles with page numbers only; no headline or advertised products are present. Page-number column is detached from its entries in the supplied text, so reading order between titles and numbers is uncertain.
- Languages
- English
PDF page 11
x Mac Assembly Language Data Storage on the Stack LINK and UNLK Data Storage Within the Application Global Space Data Storage Within the Application Code Chapter 5: EVENTS AND INPUT/OUTPUT OPERATIONS The Event Manager Getting an Event Dealing With an Event Keyboard Events Mouse Events Window Events Disk-Inserted Events Monitoring the Mouse Button Keyboard Input The Mouse Position and Cursors The Cursor Instructions Cursor Visibility The Speaker The System Clock Reading the Time of Day and Date Chapter 6: WINDOWS AND VIDEO OUTPUT Introduction to Windows QuickDraw Global Variables The Parts of a Window Coordinate Systems Creating Windows Destroying Windows Reacting to Window-Related Events Update Events 189 190 191 193 195 201 203 207 213 214 214 215 216 216 220 222 224 225 226 227 230 230 237 238 240 243 251 251 252
- Languages
- English