home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20576 < prev    next >
Encoding:
Text File  |  1993-01-03  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!paladin.american.edu!gatech!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!alexia!cole
  3. From: cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole)
  4. Subject: Re: using the A5 register (help wanted)
  5. References: <1993Jan3.180416.2891@mnemosyne.cs.du.edu>
  6. Message-ID: <C0B4CL.LK@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Mon, 4 Jan 1993 02:02:44 GMT
  10. Keywords: Help wanted
  11. Lines: 21
  12.  
  13. In <1993Jan3.180416.2891@mnemosyne.cs.du.edu> rduta@nyx.cs.du.edu (Radu) 
  14. writes:
  15.  
  16. >I was wandering if someone could explain to me how the A5 register works.
  17. >And as logn as we are on the subject, what is the purpose for SetUpA5 & 
  18. >RestoreA5, and when are they used.  
  19.  
  20. A5 is used as a base to reference all of an application's global variables. If
  21. you are programming in a high-level language, you usually never need to be 
  22. concerned with this fact, as long as you are writing an application with no 
  23. interrupt-driven code. THAT sort of code (like VBL routines that run every time
  24. the hardware draws the screen and some other types of code that might be 
  25. running wt a time when the system has moved another application's value into 
  26. A5) needs to get access to application globals and can do so by using the 
  27. SetUpA5 and RestoreA5 routines. The details on these is to be found in IM VI or
  28. in the tech notes.
  29.  
  30. >If someone could direct me to a FTP site that caries info files, I'd apreciate
  31. >that also.
  32.  
  33. ftp.apple.com. Apple's ftp site. for tech notes, check dts/mac/tn
  34.