Don’t forget the wiki - there is a whole section devoted to this subject at http://www.midibox.org/dokuwiki/how_to_mix_c_and_asm. At the moment, it’s very bare, although it links to a very informative forum post. Perhaps you’ll flesh it out a little when you finish your work?
OK, I got it working. I generated a simple application sceleton which uses a c and an asm part, and links them both together. so far, only one byte is supported for parameters or return values. anybody care? I will extend it soon.
Best, ALEXander.
BTW: is SET_BSR “Set the Bank Select Register”? Took me a while to figure that one out. But now it works.