z80 interrupt doesn't include ei before reti/retn
_naked interrupt on z80 includes reti/retn when docs
say user must provide reti/retn.
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.4.8 #967 (Mar 6 2005) (MINGW32)
void our_isr (void) interrupt _naked
{
/* _asm
ei
reti
_endasm;*/
}
000B 131 _our_isr_start::
000B 132 _our_isr:
133 ;main.c:77: }
134 ; genLabel
000B 135 00101$:
136 ; genEndFunction
000B ED 4D 137 reti
000D 138 _our_isr_end::
Logged In: YES
user_id=755263
i'v posted a patch for the critical keyword that fixes the
ei problem see patch 1120823 but nobody seems
interested since it's not applied to the code base.
Logged In: YES
user_id=888171
Fixed in SDCC 2.5.5 #1229.