[comp.sys.mac.programmer] MPW Asm/C question

tracyn@dgp.toronto.edu (Tracy Narine) (09/25/90)

I am trying to write an INIT in MPW Asm and C.  I would like to have the main
program in Asm and the subroutines in C.  The reason for this is, I can
retrieve A0 which is a pointer to my INIT, Recover the Handle, and then
Detach the Resource.  To me, this is simpler than having two inits, where
the first init, retrieves the other, locks the resource and then calls the
second init via a (**secondINIT)().     

In my MPW makefile I have specifed that the Assemlber main is the actual main
for the init. I also include(IMPORT) the routine that I call from the main
assembler into main procedure.  But when I compile, I get "entry point-errors."
This means I have unresolved variables.

I know I have not provided any code, but if anyone sees a mistake in what I havedone or what I have failed to do, please let me know.  Or if anyone has done
this before and would not mind sending me sample code, I would really 
appreciate it.

thanks in advance

tracy