# Mac Assembly Language A Guide For Programmers 1986 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-f5acfe559a4a594020b6b606fb3b7582e8841183d58b82cb3e4023bc7a784070)

MAC ASSEMBLY LANGUAGE

Transcribed text:

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

Image description: 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

[Original Image 1](https://www.vintageapple.net/files/168c1e1edc6c43c29a0a1b7f7da1fd0c764c105e6d71d4ef9cb1c68ac54cef29/0f7a93f5cee4e1e4dfc9242c.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-85d7e1c581817b68e92e1cd16e849e8cd73fa57656231c616207af92885b7dba)

MAC ASSEMBLY LANGUAGE

Transcribed text:

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

Image description: 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

[Original PDF page 1](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-eddcbf422cd46148480b7c01be9a6591a97da0b8a320bb3ae31f58bbebe3701f)

Image description: 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.

[Original PDF page 2](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-898422dfb99087086de337f05b5281d2807861b365711033c9e482d727f1a961)

Apple ProDOS: Advanced Features for Programmers

Transcribed text:

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

[Original PDF page 3](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-a82c8615e5dde4173747778da595cfd5b60720e7e9db30a86835fe68279a5146)

MAC ASSEMBLY LANGUAGE

Transcribed text:

MAC ASSEMBLY
LANGUAGE
A Guide for
Programmers
Gary   B. Little
A Brady Book
Published by Prentice Hall   Press
New York, NY   10023

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-dbd045c201dcaef25bdd5c8e5b8beecb891f569d869aa732454cdabdd2828f17)

Transcribed text:

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

[Original PDF page 5](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-bb3c8a9f98a16bcf51ac7c14f18100b59d1c59cac760e7265dfaf00e05d0d4f8)

Image description: The image is a entirely blank white page with no visible artwork, layout, or markings.

[Original PDF page 6](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-dad3c9a0d625713b89c8e9cd10305a292b205349e491c6488473571f42660e82)

Chapter I: INSIDE THE 68000 MICROPROCESSOR

Transcribed text:

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

[Original PDF page 7](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-517b495e8e8a214343a30c0d1123c9b9e52445a4ed6b78ae6c33e6c29688bd32)

Transcribed text:

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

[Original PDF page 8](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-4bc3a0977443927016eecc23dc6f184bea61ac01e9cdd04fb215f4ac2baa549f)

Transcribed text:

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

[Original PDF page 9](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-b9876f9464a97733a7d7045d774e3e2441723508816694c0fb40488608a04c4b)

Transcribed text:

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

[Original PDF page 10](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/1#scan-a5b4d9d76b096113d5e2ca3cbfb79996bb288880ce79d1fe2ecb6ef363c0ead1)

Transcribed text:

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

[Original PDF page 11](https://www.vintageapple.net/files/d27aa6494fd3c72fedf82c6e7b5ec9e735193226a2c87e81bd4d2ee35b6a3a81/Mac_Assembly_Language_A_Guide_For_Programmers_1986.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-mac-assembly-language-a-guide-for-programmers-1986-10847c/2.md)
