[comp.sys.mac.programmer] Assembly language - A5 Globals, What's the trick?

BRBOYER@MTUS5.CTS.MTU.EDU (Rucell) (05/13/91)

   Hello....  I have been able to learn quite a lot about dealing with
interface (etc.) using the 680xx series assembler, but I still have many
questions left that I hope someone can answer.  I haven't been able to get a
straight explaination out of the Inside Macintosh (1-5) for this so here goes.
In what way are A5 globals declared, used and how do I set the memory space? 
I have been able to get local variables to work very well, but in many cases,
global variables are the only way.  Does anyone have experience using Global
variables in assy?

   Bradley R. Boyer     ##### #   #  ###    BRBOYER@mtus5.cts.mtu.edu
                          #   #  #  #   #   BRBOYER%MTUS5.BITNET
 |"How could it have |   # #  ###   #####
 | been me?  I wasn't|    #   #  #  #   #   Phi Kappa Theta - Michigan Chi Rho
 | even there!"      |  ##### #   #  ###    Michigan Technological University

------ Posted using NetFeed, THE Macintosh <====> UseNet Interface Program ----

sjhg9320@uxa.cso.uiuc.edu (Maximum Slackness ) (05/13/91)

This doesn't directly answer your Question, but run down to the store
and grab a copy of 'How to Write Macintosh Software', by Scott Knaster.

It claims that it is a debugging reference, but it explains things
like creating stack frames, fun with setting and restoring A5, and calling
toolbox routines better than any Assembly Language Reference I have read.

(And the author is very funny as well...)
--
______________________________________________________________________________
==============================================================================