← Macintosh Assembly Language

Macintosh Assembly Language

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.

PDF page 12

xii MACINTOSH ASSEMBLY LANGUAGE: AN INTRODUCTION Chapter 2 presents technical background information. This includes a look at the binary, octal and hexadecimal numbering systems, the architecture of the Macintosh's microprocessor (in particular, its registers), how the Macintosh uses its available RAM (including the stack), and addressing memory from assembly language. Chapter 3 contains a short assembly language program to type in. This will provide practice in using the Macintosh 68000 Development System. Working through the exercise early in the course will make it easier for students to concen- trate on programming without worrying about how to use the Editor, Assembler, and Linker. Chapters 4 and 5 present an introduction to the assembly language instruc- tions that form the backbone of a Macintosh assembly language program. This chapter has numerous blocks of sample code, each of which is to be inserted into a ToolBox "shell" that is created out of the program in Chapter 3. Although this book deals with assembly language, ifs a fact of life that access to ToolBox and operating system routines is based in Pascal. If people are going to be able to read the documentation of those routines in Inside Macintosh, they must understand Pascal data types, data structures, and procedures and functions. Therefore, Chapter 6 reviews the necessary Pascal concepts. It also describes the structure of the ToolBox and operating system routines and how an assembly language program gains access to them. The remainder of the book deals with the ToolBox and operating system routines that are needed to create a Macintosh assembly language application. Chapter 7 dicussses setting up the desktop (managing windows and pull-down menus). Chapter 8 discusses managing program operation by monitoring the keyboard and mouse. Chapter 9 handles entering and editing text. Printing from an application (tedious but not difficult) is presented in Chapter 10. File liO (not as complicated as it looks) is discussed in Chapter 11. Chapter 12 discusses floating point arithmetic. Even if an application does no significant amount of math, it will at least need to use the routines that convert a string of numeric characters into a binary number and a binary number to a string of characters for numeric 1/0. The Video Tape Index Program . The major application that is developed throughout most of the book is a video tape index. The program is a specialized database system that could be used in a home to catalog which program has been recorded on which video tape or in a video rental outletfor inventory control. The video tape index program first appears in Chapter 5 in the discussion of handling arrays in main memory and is used to explore sorting and searching techniques for such arrays. It is presented in bits and pieces throughout the book. Complete source code for the program can be found in Appendix A.

Reading notes: Printed text reads 'dicussses' and 'liO' (likely OCR/typo of 'discusses' and 'I/O'); preserved as printed. Heading 'The Video Tape Index Program' is a section title rather than a primary headline; headline set to null.

Languages
English