Menu

#893 z80 interrupt issues

closed-fixed
z80 port (189)
5
2013-05-25
2005-03-10
Anonymous
No

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::

Discussion

  • Willy De la Court

    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.

     
  • Maarten Brock

    Maarten Brock - 2006-03-23
    • assigned_to: nobody --> maartenbrock
     
  • Maarten Brock

    Maarten Brock - 2006-03-24

    Logged In: YES
    user_id=888171

    Fixed in SDCC 2.5.5 #1229.

     
  • Maarten Brock

    Maarten Brock - 2006-03-24
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.