Path: utzoo!utgpu!attcan!uunet!mcvax!enea!tut!santra!jmunkki From: jmunkki@santra.HUT.FI (Juri Munkki) Newsgroups: comp.sys.mac.programmer Subject: Re: Register saving conventions Message-ID: <15055@santra.UUCP> Date: 6 Aug 88 12:41:36 GMT References: <664@iraun1.ira.uka.de> <1133@lzsc.ATT.COM> Sender: jmunkki@santra.UUCP Reply-To: jmunkki@santra.UUCP (Juri Munkki) Organization: Helsinki University of Technology, Finland Lines: 20 In article <1133@lzsc.ATT.COM> mkg@lzsc.ATT.COM (Marsh Gosnell) writes: >When I patch traps I make it a point to save/restore everything (D0-D7/A0-A4). >No telling what assumptions the ROM makes or, worse yet, what assumptions >some other programmer who patches the same trap as you made (or forgot to). > Marsh Gosnell Ithink we should program according to apple documentation. Since register- saving is one of the most time-consuming things that can be done on a 68000, it should avoided when possible. Maybe someone could write a "register scramble" function for TMON. It would trash any registers that can be theoretically trashed when a trap is called. All apple code _should_ be able to survive this mode (probably wouldn't at first). Juri Munkki jmunkki@santra.hut.fi jmunkki@fingate.bitnet P.S. When is there going to be a 020 and 881 compatible TMON??