gilham@Portia.Stanford.EDU (fred gilham) (03/16/89)
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.