Oliver Schmidt wrote:
Being processed by the optimizer pretty much rules out using inline assembly I fear, ...Not really. cc65 supports a pragma to control optimization on a function level granularity. Something like this works nicely and is used successfully i.e. in the Contiki sources. #pragma optimize(push, off) void foo(void) { asm("..."); asm("..."); } #pragma optimize(pop)
Thanks. I've already settled on a separate assembly file though. Everything works just great. Thanks for all the people who helped.
-- Linards Ticmanis