home *** CD-ROM | disk | FTP | other *** search
- Nntp-Posting-Host: holmenkollen.ifi.uio.no
- Newsgroups: alt.sys.amiga.demos
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!larshaug
- From: larshaug@ifi.uio.no (Lars Haugseth)
- Subject: Re: Writing a StarField. Which method is best?
- Message-ID: <1992Nov13.124320.12360@ifi.uio.no>
- Sender: larshaug@ifi.uio.no (Lars Haugseth)
- Organization: Dept. of Informatics, University of Oslo, Norway
- References: <1992Nov7.104910.60476@cc.usu.edu> <1992Nov11.131803.1276@ifi.uio.no> <1948@lysator.liu.se>
- Date: Fri, 13 Nov 1992 12:43:20 GMT
- Lines: 36
- Originator: larshaug@holmenkollen.ifi.uio.no
-
-
- In article <1948@lysator.liu.se>, marvil@lysator.liu.se (Martin Vilcans) writes:
- > larshaug@ifi.uio.no (Lars Haugseth) writes:
- >
- >
- > > move.l a7,SAVEA7
- > > lea $1000.w,a7
- >
- > Hey, DON'T DO THAT! You will probably destroy some OS structures or buffers.
- > If you really want to create your own stack for some reason, do it like this:
- >
- > move.l a7,savea7
- > lea stacke,a7
- > .
- > .
- > .
- > section stack,data
- > stack:
- > ds.b stacksize ;A few hundred bytes is more than enough for
- > ;assembler programs
- > stacke:
-
- Before you start flaming me, you should have taken a better
- look at the source! I don't use my own stack, but I simply
- use add.w a7,d0 instead of add.w #$1000,d0 because it is
- much faster (every cycle counts).
-
- +-----------------------------------------------------------+
- | Lars Haugseth +-+
- | Dept. of Informatics, <larshaug@ifi.uio.no> | |
- | University of Oslo, Norway | |
- | | |
- | If idiots could fly, this would be an airport... | |
- +-+---------------------------------------------------------+ |
- +-----------------------------------------------------------+
-
-