Re: [cc65] parameter and assembly precedures

Date view Thread view Subject view

From: stefan (carlosofcascade_at_gmx.net)
Date: 2003-02-09 02:36:22


hello ulrich,

of course i used __fastcall__ because the value is passed in accu. but in
hurry i forgot ;)

> If the function is declared __fastcall__, the last parameter (par3) is passed
> in the primary register (which is just A in case of a char). Apart from this,
> the access code is correct.
> 

i thought i need both inc and decsp, because sp must have the same value
like on entrance of the procedure.
i need a decsp2 at the beginning, cause i don't have negative indices, and i
must do a incsp2 at the end.

> .import         incsp3, decsp3
> 
> (why do you need decsp3?)
> 

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-02-09 03:37:33 CET