Yes, I'm ussing stormc v3, the version that I have.
But I found the method to include asm.
Adding files whit .s extension, and ussing the next format you can call functions from c.
machine 68000
section function_name,code
xdef _function_name
....
code
....
to call from c you need to do the next:
void function_name(register __d0 type, register __a0 type, ....)
It worked with compiler of stormc v3.
Thanks for your help.
No worries. I would suggest that you write your code so that so that you can switch between compilers without needing to edit your source. If you have a header file that has something like:
#ifdef _DCC /* DICE */
#define REG(x) __ ## x
#define ASM
#define SAVEDS __geta4
#elif defined(__SASC) /* SAS/C */
#define REG(x) register __ ## x
#define ASM __asm
#define SAVEDS __saveds
#elif defined(__GNUC__) /* GCC */
#define REG(x) register __ ## x
#define ASM
#define SAVEDS
#elif defined(__STORM__)
#define REG(x) register __ ## x
#define ASM
#define SAVEDS __saveds
#endif
and then define your function as
SAVEDS ASM LONG DroppedFile (REG(a2) APTR object_p, REG(a1) struct AppMessage **msg_pp);
then you shouldn't need to worry about changing your compiler at any point.
cheers
billy