Re: [cc65] function pointer to __fastcall__ function

From: Greg King <greg.king41verizon.net>
Date: 2012-02-18 11:09:31
From: "Per Olofsson"; on Friday, February 17, 2012; at 08:48 PM -0500
>
> This code crashes after string_resources[i].load_func(num,
> string_resources[i].ptr) if get_string_resource_ptrs is declared as
> __fastcall__, as ptr_tab isn't pushed on the stack.
> 
>   http://dl.dropbox.com/u/839742/resources.c
>   http://dl.dropbox.com/u/839742/resources.s
>   http://dl.dropbox.com/u/839742/resources_fastcall.s

It is because you did not declare "*load_func" as fastcall.

----------------------------------------------------------------------
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 Feb 18 12:09:53 2012

This archive was generated by hypermail 2.1.8 : 2012-02-18 12:09:57 CET