home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19222 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!ukma!gatech!news.byu.edu!ux1!fcom.cc.utah.edu!val
  3. From: val@news.ccutah.edu (Val Kartchner)
  4. Subject: 680x0 register usage on Amiga?
  5. Message-ID: <1993Jan27.214002.23569@fcom.cc.utah.edu>
  6. Summary: Question: What are (preallocated) purposes of 680x0 registers on Amiga?
  7. Sender: news@fcom.cc.utah.edu
  8. Organization: University of Utah Computer Center
  9. X-Newsreader: Tin 1.1 PL3
  10. Date: Wed, 27 Jan 93 21:40:02 GMT
  11. Lines: 29
  12.  
  13.  
  14. I usually program the Amiga in C.  When I want to get the maximum speed in
  15. a core routine, I go to assembly language.  However, I'm not sure which
  16. CPU registers are allocated and which are free for me to use when programming.
  17. Here is the list as I understand it:
  18.  
  19.         D0     Integer return value
  20.         D1     Scratch register (need not be restored)
  21.         D2-D7  Static registers (restore to values at entry)
  22.         A0     Address return value
  23.         A1     Scratch register
  24.         A2-A3  Static registers
  25.         A4     Base pointer (Points to base of global data)
  26.         A5     Frame pointer (Contains old stack pointer)
  27.         A6     Library base pointer (MUST be set to base of library
  28.                when calling library routines)
  29.         A7     Stack pointer
  30.         CCR    Scratch register (Condition Code Register is not restored)
  31.  
  32. Is this correct?  Please correct any terminology misusages that I may have
  33. made.
  34.  
  35.             Thanks in advance,
  36.                 -=:[ VAL ]:=-
  37. --
  38. |================== #include <disclaimer.h> ==================///=============|
  39. | "AMIGA: The computer for the creative mind" (tm) Commodore /// Weber State  |
  40. | "Macintosh: The computer for the rest of us"(tm) Apple \\\///   University  |
  41. |== "I think, therefore I AMiga" -- val@csulx.weber.edu ==\///= Ogden UT USA =|
  42.