Can i call a fastcall function through a function pointer? The function definition is: void fastcall speedcode(uint8_t fadepos); How can i pass the adress of such a function as a parameter to another function? I came to this conclution: void fastcall createfadecode( void (*adr(uint8_t)) ); To reserve memory for the speedcode i used malloc and assigned the adress to a variable. extern uint16_t speedcodelen; void (*fadecodeadr(uint8_t fadepos)); fadecodeadr = (void fastcall(*speedcode(uint8_t))malloc(speedcodelen); This seems to be wrong, but i don't get the point. Maybe someone can help me? Thank you! Monte ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Aug 16 11:06:15 2008
This archive was generated by hypermail 2.1.8 : 2008-08-16 11:06:18 CEST