3 A bug in __naked __sdcccall(N) functions (as opposed to __sdcccall(0) __naked, which worked)
8 #pragma disable_warning 85
10 #if defined(__SDCC_stm8) || defined(__SDCC_z80) || defined(__SDCC_z180) || defined(__SDCC_z80n) || defined(__SDCC_sm83)
12 #define SDCCCALL0 __sdcccall(0)
18 static unsigned char test_2(const unsigned char foo
) NAKED SDCCCALL0
{
19 #if defined(__SDCC_stm8) && defined(__SDCC_MODEL_MEDIUM)
25 #elif defined(__SDCC_stm8) && defined(__SDCC_MODEL_LARGE)
31 #elif defined(__SDCC_z80) || defined(__SDCC_z180) || defined(__SDCC_z80n)
39 #elif defined(__SDCC_sm83)
52 volatile unsigned char bar
= test_2(23);