home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / sys / amiga / demos / 1550 < prev    next >
Encoding:
Text File  |  1992-11-11  |  884 b   |  32 lines

  1. Newsgroups: alt.sys.amiga.demos
  2. Path: sparky!uunet!lysator.liu.se!marvil
  3. From: marvil@lysator.liu.se (Martin Vilcans)
  4. Subject: Re: Writing a StarField. Which method is best?
  5. Message-ID: <1948@lysator.liu.se>
  6. Sender: news@lysator.liu.se
  7. Nntp-Posting-Host: robin.lysator.liu.se
  8. Organization: Lysator Academic Computer Society, Linkoping University, Sweden
  9. References: <1992Nov7.104910.60476@cc.usu.edu> <1992Nov11.131803.1276@ifi.uio.no>
  10. Date: Wed, 11 Nov 1992 19:34:13 GMT
  11. Lines: 19
  12.  
  13. larshaug@ifi.uio.no (Lars Haugseth) writes:
  14.  
  15.  
  16. >    move.l    a7,SAVEA7
  17. >    lea    $1000.w,a7
  18.  
  19. Hey, DON'T DO THAT! You will probably destroy some OS structures or buffers.
  20. If you really want to create your own stack for some reason, do it like this:
  21.  
  22.     move.l a7,savea7
  23.     lea    stacke,a7
  24.     .
  25.     .
  26.     .
  27.     section stack,data
  28. stack:
  29.     ds.b    stacksize    ;A few hundred bytes is more than enough for
  30.                 ;assembler programs
  31. stacke:
  32.