Internal compiler error:
app.c:46: error 9: FATAL Compiler Internal Error in file '/home/sdcc-builder/build/sdcc-build/orig/sdcc/src/z80/gen.c' line number '4517' : Unimplemented __z88dk_callee support on callee side
Contact Author with source code
compiling:
void cp(unsigned char *dst, unsigned short len, unsigned char *src) __z88dk_callee
{
dst; len; src;
// de bc hl
__asm
pop iy
pop de
pop bc
pop hl
push iy
ldir
__endasm;
}
works with 3.5.0 and 3.6.0, doesn't work with any of the recent versions (tried 3.7.2 which is the oldest snapshot available, as well as the most recent one).
IMO, the error message is correct, as SDCC cannot generate code for __z88dk_callee on the callee side.
If you want to implement it all yourself, like in your example, you should also use __naked and then add the ret in the asm.
Philipp