home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / sys / amiga / demos / 1588 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.8 KB  |  50 lines

  1. Nntp-Posting-Host: holmenkollen.ifi.uio.no
  2. Newsgroups: alt.sys.amiga.demos
  3. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!larshaug
  4. From: larshaug@ifi.uio.no (Lars Haugseth)
  5. Subject: Re: Writing a StarField. Which method is best?
  6. Message-ID: <1992Nov13.124320.12360@ifi.uio.no>
  7. Sender: larshaug@ifi.uio.no (Lars Haugseth)
  8. Organization: Dept. of Informatics, University of Oslo, Norway
  9. References: <1992Nov7.104910.60476@cc.usu.edu> <1992Nov11.131803.1276@ifi.uio.no> <1948@lysator.liu.se>
  10. Date: Fri, 13 Nov 1992 12:43:20 GMT
  11. Lines: 36
  12. Originator: larshaug@holmenkollen.ifi.uio.no
  13.  
  14.  
  15. In article <1948@lysator.liu.se>, marvil@lysator.liu.se (Martin Vilcans) writes:
  16. > larshaug@ifi.uio.no (Lars Haugseth) writes:
  17. > >    move.l    a7,SAVEA7
  18. > >    lea    $1000.w,a7
  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. >     move.l a7,savea7
  22. >     lea    stacke,a7
  23. >     .
  24. >     .
  25. >     .
  26. >     section stack,data
  27. > stack:
  28. >     ds.b    stacksize    ;A few hundred bytes is more than enough for
  29. >                 ;assembler programs
  30. > stacke:
  31.  
  32. Before you start flaming me, you should have taken a better
  33. look at the source! I don't use my own stack, but I simply
  34. use add.w a7,d0 instead of add.w #$1000,d0 because it is
  35. much faster (every cycle counts).
  36.  
  37. +-----------------------------------------------------------+
  38. | Lars Haugseth                                             +-+
  39. | Dept. of Informatics,               <larshaug@ifi.uio.no> | |
  40. | University of Oslo, Norway                                | |
  41. |                                                           | |
  42. |          If idiots could fly, this would be an airport... | |
  43. +-+---------------------------------------------------------+ |
  44.   +-----------------------------------------------------------+
  45.  
  46.