
unsigned char myfunc(unsigned char x) <i>_naked</i>
{
  _asm
  mov a,dpl         ; pass the parameter
  <i>lcall</i> MY_FUNCTION ; better use call if you want to come back
  mov dpl,a         ; put my return value where SDCC expects it
  <i>ret</i>               ; must insert ret for naked functions too
  _endasm;
}