Article View: comp.sys.amiga.tech
Article #11841DoCollision call
From: fred gilham
Date: Wed, 15 Mar 1989 20:56
Date: Wed, 15 Mar 1989 20:56
18 lines
1521 bytes
1521 bytes
I am writing a program in assembly which uses bobs. I want to do collision detection. The documentation (RKM 1.1) says that when I call DoCollision and a collision is present, my collision routine will be called with arguments saying what collided etc. My question is, are these arguments passed in registers or on the stack? The example in C seems to imply that the C calling conventions are used. If so, where on the stack do I find these things. Also, do I need to fix the stack pointer before I return? I don't know too much about the C calling conventions....If the arguments are passed in registers, which registers are used. DoCollision calls the appropriate routines using different arguments depending on whether the collision is with the border or another bob. So I guess I need the above information for both cases. Thanks for the help. -Fred Gilham gilham@portia.stanford.edu ps. If you email me directly with the info, I would appreciate it.
Technical Details
Message-ID:
<922@Portia.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tank!eecae!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!labrea!Portia!gilhamShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tank!eecae!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!labrea!Portia!gilham From: gilham@Portia.Stanford.EDU (fred gilham) Newsgroups: comp.sys.amiga.tech Subject: DoCollision call Summary: Doing it in assembly Keywords: DoCollision, assembly language Message-ID: <922@Portia.Stanford.EDU> Date: 15 Mar 89 20:56:08 GMT Sender: fred gilham <gilham@Portia.stanford.edu> Reply-To: gilham@Portia.UUCP (fred gilham) Distribution: comp.sys.amiga.tech Organization: Stanford University Lines: 18