home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsstand.cit.cornell.edu!vax5.cit.cornell.edu!tcd
- From: tcd@vax5.cit.cornell.edu
- Newsgroups: comp.sys.mac.programmer
- Subject: Using/restoring A5 okay?
- Message-ID: <1992Jul21.144352.13883@vax5.cit.cornell.edu>
- Date: 21 Jul 92 14:43:52 EDT
- Distribution: comp
- Organization: Cornell University
- Lines: 9
-
- From what I gather, code that executes during interupts cannot assume
- that A5 is valid. From this, I assume that it's okay for a subroutine
- that doesn't call anything else, to use A5 as a scratch register, as
- long as it restores A5 on exit. Is this correct? The subroutine in
- question just moves some bits around and it would be nice to have another
- address register to work with. Is there any problem with using A5?
- Thanks,
- Tim Dorcey
- tcd@cornellc.cit.cornell.edu
-