[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The Internet-enabled Contiki Desktop OS



>>>>> "MWM" == Matthew W Miller <mwmiller@columbus.rr.com> writes:

MWM> Wow. I'm curious about what degree cc65 can be mixed with
MWM> assembler...

You can either inline short routines in the C source with __asm__(),
or you can link asm routines and call them from the C code. The asm
routine will need to pick up the arguments from the stack, but that
can be sped up with __fastcall__ which puts the last arg in A/X. Check
out the library sources in the distro and all should come clear.

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/