Hi! I think than the function result is returned in AX (not pushed onto the stack) even when not using "fastcall"... Am I right? ---MagerValp wrote: > > Since Uz is out of town: > > Arguments are pushed on the stack in left to right > order. If you're > using __fastcall__ the last argument is instead > put in A (lo) and X > (hi). You can access args with lda (sp),y. When > returning, you must > have pulled everything off (jsr incspX, where X is > the number of > bytes you want to increase the pointer with), and > pushed your return > value. If you're using __fastcall__ the return > value is instead > returned in A/X, as above. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Sep 3 16:27:39 2004
This archive was generated by hypermail 2.1.8 : 2004-09-03 16:27:48 CEST