1 /** Test register bank allocation for the "using" keyword.
2 using: no_proto, impl, both
8 #if defined (__SDCC_mcs51) && defined (__SDCC_MODEL_SMALL)
12 void my_isr (void) __interrupt (1) __using (1);
14 void my_isr (void) __interrupt (1);
21 my_isr (void) __interrupt (1) __using (1)
23 array
[array
[0]] = 1; //generate some register pressure
31 #if defined (__SDCC_mcs51) && defined (__SDCC_MODEL_SMALL)
32 ASSERT ((unsigned char)(&array
[0]) >= 0x10);
33 ASSERT ((unsigned char)&__numTests
>= 0x10);